Commit 7db012b7 authored by Dorchies David's avatar Dorchies David
Browse files

Closes nghyd#54

Showing with 26 additions and 10 deletions
+26 -10
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
# dependencies # dependencies
/node_modules /node_modules
/src/date_revision.ts
# IDEs and editors # IDEs and editors
/.idea /.idea
......
...@@ -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"
} }
} }
/*
* Définition de la date du dernier commit de ngHyd
*
*/
var fs = require('fs');
date_last_commit = require('child_process')
.execSync('git log -1 --format=%cd --date=short')
.toString().trim()
var sFileName = "src/date_revision.ts";
fs.writeFile(sFileName, `export const jalhydDateRev = "${date_last_commit}";\n`, function(err) {
if(err) {
return console.log(err);
}
console.log(`File ${sFileName} saved with date ${date_last_commit}`);
});
\ No newline at end of file
...@@ -10,10 +10,6 @@ export * from "./compute-node"; ...@@ -10,10 +10,6 @@ export * from "./compute-node";
export * from "./nub"; export * from "./nub";
export * from "./nub_factory"; export * from "./nub_factory";
export * from "./session_nub"; export * from "./session_nub";
export * from "./cond_distri";
export * from "./dichotomie";
export * from "./lechaptcalmon";
export * from "./regime_uniforme";
export * from "./remous"; export * from "./remous";
export * from "./section/section_nub"; export * from "./section/section_nub";
export * from "./section/section_type"; export * from "./section/section_type";
...@@ -30,8 +26,6 @@ export * from "./util/resultelement"; ...@@ -30,8 +26,6 @@ export * from "./util/resultelement";
export * from "./util/pair"; export * from "./util/pair";
export * from "./util/interval"; export * from "./util/interval";
export * from "./util/observer"; export * from "./util/observer";
export * from "./pab/pab_dimension";
export * from "./pab/pab_puissance";
export * from "./util/iterator"; export * from "./util/iterator";
export * from "./util/enum"; export * from "./util/enum";
export * from "./structure/parallel_structure"; export * from "./structure/parallel_structure";
...@@ -41,3 +35,4 @@ export * from "./structure/structure_params"; ...@@ -41,3 +35,4 @@ export * from "./structure/structure_params";
export * from "./structure/factory_structure"; export * from "./structure/factory_structure";
export * from "./structure/structure_props"; export * from "./structure/structure_props";
export * from "./jalhyd_object"; export * from "./jalhyd_object";
export * from "./date_revision";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment