Skip to content

Commit

Permalink
Merge c15b1cd into 48713bc
Browse files Browse the repository at this point in the history
  • Loading branch information
WindomZ committed Oct 30, 2018
2 parents 48713bc + c15b1cd commit c262b62
Show file tree
Hide file tree
Showing 5 changed files with 1,422 additions and 528 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
rules: {
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
// quotes: ['error', 'single'],
semi: ['error', 'always'],
},
};
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ os:
- osx

node_js:
- '6.0'
- '7'
- '8'
- '9'
- 'lts/*'
- 'node'

cache:
Expand Down
8 changes: 4 additions & 4 deletions ci-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const shell = require('./shell');
const pkg = require('./package.json');
prog.version(pkg.version).description(pkg.description);

prog.argument('[directory]', 'The workspace directory').action((argv, opts) => {
prog.argument('[directory]', 'The workspace directory').action(argv => {
let dir = argv['directory'] || '';

process.stdout.write('>>> ci-script start...' + os.EOL);
Expand All @@ -24,14 +24,14 @@ prog.argument('[directory]', 'The workspace directory').action((argv, opts) => {
process.stdout.write('>>> ci-script complete!' + os.EOL);
})
.catch(e => {
console.error(e.message);
process.stderr.write(e.message);
});
});

prog
.command('init', 'init...')
.argument('[directory]', 'The workspace directory', prog.STRING)
.action((argv, opts) => {
.action(argv => {
let dir = argv['directory'] || '';

process.stdout.write('>>> ci-script init start...' + os.EOL);
Expand All @@ -41,7 +41,7 @@ prog
process.stdout.write('>>> ci-script init complete!' + os.EOL);
})
.catch(e => {
console.error(e.message);
process.stderr.write(e.message);
});
});

Expand Down
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"bin": {
"ci-script": "ci-script.js"
},
"engines": {
"node": ">=8.6.0"
},
"scripts": {
"precommit": "lint-staged",
"test": "nyc --reporter=lcov --reporter=text-lcov ava"
Expand Down Expand Up @@ -34,17 +37,17 @@
"homepage": "https://github.com/WindomZ/ci-script#readme",
"dependencies": {
"caporal": "^0.10.0",
"js-yaml": "^3.10.0",
"shelljs": "^0.8.0"
"js-yaml": "^3.12.0",
"shelljs": "^0.8.2"
},
"devDependencies": {
"ava": "^0.25.0",
"coveralls": "^3.0.0",
"eslint": "^4.16.0",
"coveralls": "^3.0.2",
"eslint": "^5.8.0",
"eslint-config-prettier": "^3.0.0",
"husky": "^1.0.0",
"lint-staged": "^7.0.0",
"nyc": "^12.0.1",
"prettier": "^1.10.2"
"husky": "^1.1.2",
"lint-staged": "^8.0.2",
"nyc": "^13.1.0",
"prettier": "^1.14.3"
}
}
Loading

0 comments on commit c262b62

Please sign in to comment.