Added build:release command
This commit is contained in:
parent
bdaf4ed2f7
commit
0b86d6a09d
2 changed files with 10 additions and 1 deletions
|
@ -16,9 +16,17 @@ npm install
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
|
Debug mode:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
npm run build
|
npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Release mode:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
npm run build:release
|
||||||
|
```
|
||||||
|
|
||||||
The generated `.apk` file will be stored under `dist/`.
|
The generated `.apk` file will be stored under `dist/`.
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start:dev": "node .",
|
"start:dev": "node .",
|
||||||
"build": "androidjs build"
|
"build": "androidjs build",
|
||||||
|
"build:release": "androidjs build --release"
|
||||||
},
|
},
|
||||||
"author": "Fabio Manganiello",
|
"author": "Fabio Manganiello",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
|
Loading…
Reference in a new issue