refactor: add 'npm run bootstrap', 'npm run build' (#14034)

* docs: update package.json and build docs

* fix build release

* address feedback from review

* whoops forgot one

* fix build script

* address feedback from review
This commit is contained in:
Shelley Vohr 2018-08-12 14:01:46 -07:00 committed by GitHub
parent b785f45852
commit c0959bd534
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 61 additions and 18 deletions

View file

@ -37,23 +37,36 @@ The bootstrap script will download all necessary build dependencies and create
the build project files. Notice that we're using `ninja` to build Electron so
there is no Visual Studio project generated.
To bootstrap for a static, non-developer build, run:
```powershell
$ cd electron
$ python script\bootstrap.py -v
$ npm run bootstrap
```
Or to bootstrap for a development session that builds faster by not statically linking:
```powershell
$ cd electron
$ npm run bootstrap:dev
```
## Building
Build both Release and Debug targets:
Build both `Release` and `Debug` targets:
```powershell
$ python script\build.py
$ npm run build
```
You can also only build the Debug target:
You can also build either the `Debug` or `Release` target on its own:
```powershell
$ python script\build.py -c D
$ npm run build:dev
```
```powershell
$ npm run build:release
```
After building is done, you can find `electron.exe` under `out\D` (debug