Skip to content
Snippets Groups Projects
Commit 3f4bea9e authored by Éloïs's avatar Éloïs
Browse files

[build] create bash script to build rust code & build in debug on dev

parent dd79fa80
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
cd neon
if [ "${NODE_ENV}" = "production" ]
then
neon build --release
else
neon build
fi
cd ..
\ No newline at end of file
{"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}}}} {"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 \ No newline at end of file
...@@ -29,8 +29,8 @@ ...@@ -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/\"", "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", "test": "nyc --reporter html mocha",
"start": "node bin/duniter start", "start": "node bin/duniter start",
"build": "cd neon && neon build --release && cd.. && tsc && cd \"../node_modules/duniter-ui\" && npm install && npm run build", "build": "./neon/build.sh && cd.. && tsc && cd \"../node_modules/duniter-ui\" && npm install && npm run build",
"install": "cd neon && neon build --release", "install": "./neon/build.sh",
"lint": "lint-staged", "lint": "lint-staged",
"prettier": "prettier --write app/**/*/*.ts", "prettier": "prettier --write app/**/*/*.ts",
"reformat": "eslint --cache --fix app/**/*/*.ts", "reformat": "eslint --cache --fix app/**/*/*.ts",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment