Closes nghyd#54
Showing
+26 -10
... | @@ -22,13 +22,14 @@ | ... | @@ -22,13 +22,14 @@ |
"typescript": "2.6.1" | "typescript": "2.6.1" | ||
}, | }, | ||
"scripts": { | "scripts": { | ||
"build": "./node_modules/typescript/bin/tsc --p src/tsconfig.app.json", | "build": "npm run preprocess; ./node_modules/typescript/bin/tsc --p src/tsconfig.app.json", | ||
"buildspec": "rm -rf build; ./node_modules/typescript/bin/tsc --p spec/tsconfig.spec.json", | "buildspec": "npm run preprocess; rm -rf build; ./node_modules/typescript/bin/tsc --p spec/tsconfig.spec.json", | ||
"runtestremous": "./node_modules/typescript/bin/tsc --p spec/tsconfig-remous-fenetre.spec.json && node ./build/spec/test-remous-fenetre.js", | "runtestremous": "./node_modules/typescript/bin/tsc --p spec/tsconfig-remous-fenetre.spec.json && node ./build/spec/test-remous-fenetre.js", | ||
"jasmine": "npm run buildspec && ./node_modules/.bin/jasmine", | "jasmine": "npm run buildspec && ./node_modules/.bin/jasmine", | ||
"karma": "./node_modules/typescript/bin/tsc --p spec/tsconfig.spec.json && ./node_modules/karma/bin/karma start", | "karma": "npm run preprocess; ./node_modules/typescript/bin/tsc --p spec/tsconfig.spec.json && ./node_modules/karma/bin/karma start", | ||
"lint": "./node_modules/tslint/bin/tslint -p ./tsconfig.json", | "lint": "./node_modules/tslint/bin/tslint -p ./tsconfig.json", | ||
"viz": "tsviz -recursive src/ jalhyd_class_diagram.png", | "viz": "tsviz -recursive src/ jalhyd_class_diagram.png", | ||
"package": "rm -rf build; npm run build; npm pack" | "package": "rm -rf build; npm run build; npm pack", | ||
"preprocess": "node preprocessors.js" | |||
} | } | ||
} | } |
preprocessors.js
0 → 100755
Please register or sign in to comment