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

Closes nghyd#54

parent 4319a4bd
......@@ -8,6 +8,7 @@
# dependencies
/node_modules
/src/date_revision.ts
# IDEs and editors
/.idea
......
......@@ -22,13 +22,14 @@
"typescript": "2.6.1"
},
"scripts": {
"build": "./node_modules/typescript/bin/tsc --p src/tsconfig.app.json",
"buildspec": "rm -rf build; ./node_modules/typescript/bin/tsc --p spec/tsconfig.spec.json",
"build": "npm run preprocess; ./node_modules/typescript/bin/tsc --p src/tsconfig.app.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",
"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",
"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";
export * from "./nub";
export * from "./nub_factory";
export * from "./session_nub";
export * from "./cond_distri";
export * from "./dichotomie";
export * from "./lechaptcalmon";
export * from "./regime_uniforme";
export * from "./remous";
export * from "./section/section_nub";
export * from "./section/section_type";
......@@ -30,8 +26,6 @@ export * from "./util/resultelement";
export * from "./util/pair";
export * from "./util/interval";
export * from "./util/observer";
export * from "./pab/pab_dimension";
export * from "./pab/pab_puissance";
export * from "./util/iterator";
export * from "./util/enum";
export * from "./structure/parallel_structure";
......@@ -41,3 +35,4 @@ export * from "./structure/structure_params";
export * from "./structure/factory_structure";
export * from "./structure/structure_props";
export * from "./jalhyd_object";
export * from "./date_revision";
Markdown is supported
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