mirror of https://github.com/jiahaog/Nativefier
Scripts: get rid of `dev-up` and `dev-up-win` scripts
They used to be necessary when we did OS-specific stuff in here, but we're no longer, and `foo && bar` is supported by both *nixes and Windows
This commit is contained in:
parent
292ac39328
commit
d90d9f3d7f
|
@ -2,24 +2,21 @@
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
First, clone the project
|
First, clone the project:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/nativefier/nativefier.git
|
git clone https://github.com/nativefier/nativefier.git
|
||||||
cd nativefier
|
cd nativefier
|
||||||
```
|
```
|
||||||
|
|
||||||
Install dependencies for both the CLI and the Electron app:
|
Install dependencies (for both the CLI and the Electron app):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Under Linux and macOS:
|
npm install
|
||||||
npm run dev-up
|
|
||||||
|
|
||||||
# Under Windows:
|
|
||||||
npm run dev-up-win
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Build nativefier:
|
The above `npm install` will build automatically (through the `prepare` hook).
|
||||||
|
When you need to re-build Nativefier,
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run build
|
npm run build
|
||||||
|
|
|
@ -33,8 +33,6 @@
|
||||||
"build-app-static": "ncp app/src/static/ app/lib/static/ && ncp app/dist/preload.js app/lib/preload.js && ncp app/dist/preload.js.map app/lib/preload.js.map",
|
"build-app-static": "ncp app/src/static/ app/lib/static/ && ncp app/dist/preload.js app/lib/preload.js && ncp app/dist/preload.js.map app/lib/preload.js.map",
|
||||||
"build": "npm run clean && tsc --build . app && npm run build-app && npm run build-app-static",
|
"build": "npm run clean && tsc --build . app && npm run build-app && npm run build-app-static",
|
||||||
"build:watch": "tsc --build . app --watch",
|
"build:watch": "tsc --build . app --watch",
|
||||||
"dev-up": "npm install && cd ./app && npm install && cd ..",
|
|
||||||
"dev-up-win": "npm install & cd app & npm install & cd ..",
|
|
||||||
"changelog": "./docs/generate-changelog",
|
"changelog": "./docs/generate-changelog",
|
||||||
"ci": "npm run lint && npm test",
|
"ci": "npm run lint && npm test",
|
||||||
"clean": "rimraf lib/ app/lib/ app/dist/",
|
"clean": "rimraf lib/ app/lib/ app/dist/",
|
||||||
|
@ -43,7 +41,7 @@
|
||||||
"lint:format": "prettier --write 'src/**/*.js' 'app/src/**/*.js'",
|
"lint:format": "prettier --write 'src/**/*.js' 'app/src/**/*.js'",
|
||||||
"lint": "eslint . --ext .ts",
|
"lint": "eslint . --ext .ts",
|
||||||
"list-outdated-deps": "npm out; cd app && npm out; true",
|
"list-outdated-deps": "npm out; cd app && npm out; true",
|
||||||
"prepare": "cd ./app && npm install && cd .. && npm run build",
|
"prepare": "cd app && npm install && cd .. && npm run build",
|
||||||
"test:integration": "jest --testRegex '.*integration-test.js'",
|
"test:integration": "jest --testRegex '.*integration-test.js'",
|
||||||
"test:manual": "npm run build && ./docs/manual-test",
|
"test:manual": "npm run build && ./docs/manual-test",
|
||||||
"test:unit": "jest",
|
"test:unit": "jest",
|
||||||
|
|
Loading…
Reference in New Issue