Skip to content

Commit

Permalink
add demo test check
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Aug 17, 2017
1 parent 748ae85 commit 779ad06
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions clean-scripts.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ module.exports = {
test: [
'tsc -p spec',
'jasmine',
{
default: 'node ./dist/index.js demo/cases.ts --json demo/ --debug demo/debug.json --protobuf demo/cases.proto',
logTool: 'node ./dist/index.js demo/log-tool/types.ts --json demo/log-tool/ --debug demo/log-tool/debug.json --protobuf demo/log-tool/protocol.proto',
matchCalculator: 'node ./dist/index.js demo/match-calculator/types.ts --json demo/match-calculator/ --debug demo/match-calculator/debug.json',
baogame: 'node ./dist/index.js demo/baogame/common.ts --protobuf demo/baogame/protocol.proto --debug demo/baogame/debug.json'
},
() => new Promise((resolve, reject) => {
childProcess.exec('git status -s', (error, stdout, stderr) => {
if (error) {
Expand Down Expand Up @@ -48,11 +54,5 @@ module.exports = {
clean: `rimraf online/*.bundle-*.js online/*.bundle-*.css`
},
`rev-static --config online/rev-static.config.js`
],
demo: {
default: 'node ./dist/index.js demo/cases.ts --json demo/ --debug demo/debug.json --protobuf demo/cases.proto',
logTool: 'node ./dist/index.js demo/log-tool/types.ts --json demo/log-tool/ --debug demo/log-tool/debug.json --protobuf demo/log-tool/protocol.proto',
matchCalculator: 'node ./dist/index.js demo/match-calculator/types.ts --json demo/match-calculator/ --debug demo/match-calculator/debug.json',
baogame: 'node ./dist/index.js demo/baogame/common.ts --protobuf demo/baogame/protocol.proto --debug demo/baogame/debug.json'
}
]
}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"description": "Genetate json scheme or protobuf file from types.",
"main": "index.js",
"scripts": {
"demo.default": "clean-scripts demo.default",
"demo.logTool": "clean-scripts demo.logTool",
"demo.matchCalculator": "clean-scripts demo.matchCalculator",
"demo.baogame": "clean-scripts demo.baogame",
"demo": "clean-scripts demo",
"demo.default": "clean-scripts test[2].default",
"demo.logTool": "clean-scripts test[2].logTool",
"demo.matchCalculator": "clean-scripts test[2].matchCalculator",
"demo.baogame": "clean-scripts test[2].baogame",
"demo": "clean-scripts test[2]",
"build": "clean-scripts build",
"lint": "clean-scripts lint",
"test": "clean-scripts test",
Expand All @@ -32,7 +32,7 @@
"@types/node": "8.0.17",
"clean-css-cli": "4.1.6",
"clean-release": "1.3.2",
"clean-scripts": "1.2.1",
"clean-scripts": "1.2.3",
"file2variable-cli": "1.4.1",
"github-fork-ribbon-css": "0.2.1",
"jasmine": "2.7.0",
Expand Down

0 comments on commit 779ad06

Please sign in to comment.