Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
shenyunjie committed Nov 21, 2017
1 parent 8a5703c commit 774857a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
10 changes: 10 additions & 0 deletions cmd/git.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// git add . && git commit -am \"Auto update\" && git push
const path = require('path');
const { compile } = require('../config/util');
const argv = process.argv;
const msg = argv[2];

(async () => {
await compile(`git add . && git commit -am "${msg}" && git push`, path.resolve(__dirname, '..'));
process.exit(0);
})();
12 changes: 12 additions & 0 deletions cmd/lazy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const path = require('path');
const { compile } = require('../config/util');
const argv = process.argv;
const msg = argv[2];

(async () => {
await compile(
`npm run version && npm run noistanbul && npm run build && npm run hasistanbul && npm run git ${msg}`,
path.resolve(__dirname, '..')
);
process.exit(0);
})();
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"post": "node cmd/publish.js",
"del": "rm -rf build/",
"dep": "node cmd/dep.js",
"git": "git add . && git commit -am \"Auto update\" && git push",
"lazy": "npm run version && npm run noistanbul && npm run build && npm run hasistanbul && npm run git && npm run post",
"git": "node cmd/git.js",
"lazy": "node cmd/lazy.js",
"ssr": "NODE_ENV=dev node ssr/index.js",
"ssr:debug": "NODE_ENV=production node ssr/index.js",
"ssr:build": "npm run ssr:client:build && npm run ssr:server:build",
Expand Down

0 comments on commit 774857a

Please sign in to comment.