-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from uglow/feature/update-readme-and-support-bl…
…ank-values chore(build): upgrade build to use latest Confit (eslint, coverage, readme)
- Loading branch information
Showing
13 changed files
with
322 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ sudo: false | |
language: node_js | ||
node_js: | ||
- "4" | ||
- "5.11.0" | ||
- "6" | ||
- "7" | ||
|
||
# Need to specify a GCC compiler now! | ||
# https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements | ||
|
@@ -18,6 +18,7 @@ addons: | |
- g++-4.8 | ||
|
||
before_install: | ||
- if [[ `npm -v` != 3* ]]; then npm i -g [email protected]; fi | ||
- npm prune | ||
- npm set progress=false | ||
|
||
|
@@ -30,6 +31,7 @@ script: | |
- npm run pre-release | ||
|
||
after_success: | ||
- npm run upload-coverage | ||
- npm run semantic-release | ||
|
||
branches: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Use JS to support loading of threshold data from external file | ||
var coverageConfig = { | ||
instrumentation: { | ||
root: 'lib/' | ||
}, | ||
check: require('./thresholds.json'), | ||
reporting: { | ||
print: 'both', | ||
dir: 'reports/coverage/', | ||
reports: [ | ||
'cobertura', | ||
'html', | ||
'lcovonly', | ||
'html', | ||
'json' | ||
], | ||
'report-config': { | ||
cobertura: { | ||
file: 'cobertura/coverage.xml' | ||
}, | ||
json: { | ||
file: 'json/coverage.json' | ||
}, | ||
lcovonly: { | ||
file: 'lcov/lcov.info' | ||
}, | ||
text: { | ||
file: null | ||
} | ||
} | ||
} | ||
}; | ||
|
||
module.exports = coverageConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"global": { | ||
"statements": 80, | ||
"branches": 80, | ||
"functions": 60, | ||
"lines": 80 | ||
}, | ||
"each": { | ||
"statements": 40, | ||
"branches": 50, | ||
"functions": 20, | ||
"lines": 40 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,59 @@ | ||
# START_CONFIT_GENERATED_CONTENT | ||
extends: defaults/configurations/google | ||
confit: | ||
extends: &confit-extends | ||
- plugin:node/recommended | ||
|
||
env: | ||
jasmine: true | ||
node: true | ||
browser: true | ||
commonjs: true # For Webpack, CommonJS | ||
protractor: true | ||
es6: true | ||
plugins: &confit-plugins | ||
- node | ||
|
||
env: &confit-env | ||
commonjs: true # For Webpack, CommonJS | ||
node: true | ||
mocha: true | ||
es6: true | ||
|
||
confit-globals: &confit-globals | ||
globals: &confit-globals {} | ||
parser: &confit-parser espree | ||
|
||
ecmaFeatures: | ||
modules: true | ||
parserOptions: &confit-parserOptions | ||
ecmaVersion: 6 | ||
sourceType: module | ||
ecmaFeatures: | ||
globalReturn: false | ||
impliedStrict: true | ||
jsx: false | ||
|
||
# END_CONFIT_GENERATED_CONTENT | ||
|
||
# Customise this section to meet your needs... | ||
|
||
extends: *confit-extends | ||
# Uncomment this next line if you need to add more items to the array, and remove the "*confit-extends" from the line above | ||
# <<: *confit-extends | ||
|
||
plugins: *confit-plugins | ||
# Uncomment this next line if you need to add more items to the array, and remove the "*confit-plugins" from the line above | ||
# <<: *confit-extends | ||
|
||
env: | ||
<<: *confit-env | ||
|
||
globals: | ||
<<: *confit-globals | ||
|
||
parser: *confit-parser | ||
|
||
parserOptions: | ||
<<: *confit-parserOptions | ||
|
||
rules: | ||
max-len: | ||
- 2 # Warning | ||
- warn | ||
- 200 # Line Length | ||
|
||
require-jsdoc: | ||
- off | ||
|
||
prefer-rest-params: #not supported on Node 4 | ||
- off |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
generator-confit: | ||
app: | ||
_version: f02196cc5cb7941ca46ec46d23bd6aef0dfcaca0 | ||
buildProfile: Latest | ||
copyrightOwner: Brett Uglow | ||
license: MIT | ||
projectType: node | ||
publicRepository: true | ||
repositoryType: GitHub | ||
paths: | ||
_version: 7f33e41600b34cd6867478d8f2b3d6b2bbd42508 | ||
config: | ||
configDir: config/ | ||
input: | ||
libDir: lib/ | ||
srcDir: lib/ | ||
unitTestDir: test/ | ||
output: | ||
prodDir: dist/ | ||
reportDir: reports/ | ||
buildJS: | ||
_version: df428a706d926204228c5d9ebdbd7b49908926d9 | ||
framework: [] | ||
frameworkScripts: [] | ||
outputFormat: ES6 | ||
sourceFormat: ES6 | ||
entryPoint: | ||
_version: de20402bf85c703080ef6daf21e35325a3b9d604 | ||
entryPoints: | ||
main: | ||
- lib/index.js | ||
testUnit: | ||
_version: 4472a6d59b434226f463992d3c1914c77a6a115d | ||
testDependencies: [] | ||
verify: | ||
_version: 30ae86c5022840a01fc08833e238a82c683fa1c7 | ||
jsCodingStandard: Google | ||
release: | ||
_version: 47f220593935b502abf17cb34a396f692e453c49 | ||
checkCodeCoverage: true | ||
commitMessageFormat: Conventional | ||
useSemantic: true | ||
sampleApp: | ||
_version: 00c0a2c6fc0ed17fcccce2d548d35896121e58ba | ||
createSampleApp: false | ||
zzfinish: {} | ||
documentation: | ||
_version: b1658da3278b16d1982212f5e8bc05348af20e0b | ||
generateDocs: false |
Oops, something went wrong.