diff --git a/neon/build.sh b/neon/build.sh new file mode 100755 index 0000000000000000000000000000000000000000..f12cd426d7233172a27bfb8fc08d7da5a4c61893 --- /dev/null +++ b/neon/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +cd neon + +if [ "${NODE_ENV}" = "production" ] +then + neon build --release +else + neon build +fi + +cd .. \ No newline at end of file diff --git a/neon/native/artifacts.json b/neon/native/artifacts.json index 3f346e098060aa63ab49162d2e1b63335e8b2b02..837b6fb098085aa2c03e9f16f2d3012e99586b67 100644 --- a/neon/native/artifacts.json +++ b/neon/native/artifacts.json @@ -1 +1 @@ -{"active":"release","targets":{"debug":{"rustc":"","env":{"npm_config_target":null,"npm_config_arch":null,"npm_config_target_arch":null,"npm_config_disturl":null,"npm_config_runtime":null,"npm_config_build_from_source":null,"npm_config_devdir":null}},"release":{"rustc":"","env":{"npm_config_target":null,"npm_config_arch":null,"npm_config_target_arch":null,"npm_config_disturl":null,"npm_config_runtime":null,"npm_config_build_from_source":null,"npm_config_devdir":null}}}} \ No newline at end of file +{"active":"debug","targets":{"debug":{"rustc":"","env":{"npm_config_target":null,"npm_config_arch":null,"npm_config_target_arch":null,"npm_config_disturl":null,"npm_config_runtime":null,"npm_config_build_from_source":null,"npm_config_devdir":null}},"release":{"rustc":"","env":{"npm_config_target":null,"npm_config_arch":null,"npm_config_target_arch":null,"npm_config_disturl":null,"npm_config_runtime":null,"npm_config_build_from_source":null,"npm_config_devdir":null}}}} \ No newline at end of file diff --git a/package.json b/package.json index b73e9bf37b6ae57dfbda53fb5ae4ecce08fff04d..bb61389a3fe0445949d1cb5d7563c191643771b9 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,8 @@ "doc": "typedoc --out typedoc/ index.ts app/ --mode file --readme README.md --includeDeclarations --sourcefile-url-prefix \"https://git.duniter.org/nodes/typescript/duniter/blob/loki/\"", "test": "nyc --reporter html mocha", "start": "node bin/duniter start", - "build": "cd neon && neon build --release && cd.. && tsc && cd \"../node_modules/duniter-ui\" && npm install && npm run build", - "install": "cd neon && neon build --release", + "build": "./neon/build.sh && cd.. && tsc && cd \"../node_modules/duniter-ui\" && npm install && npm run build", + "install": "./neon/build.sh", "lint": "lint-staged", "prettier": "prettier --write app/**/*/*.ts", "reformat": "eslint --cache --fix app/**/*/*.ts",