1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 12:55:14 +03:00

Fixed yarn install for production dependencies, fixed instructions for development.

This commit is contained in:
Michael Keller 2019-05-03 14:13:29 +12:00 committed by mikeller
parent de14aa50de
commit a66cf83ce4
2 changed files with 13 additions and 6 deletions

View file

@ -47,8 +47,9 @@ Unstable testing versions of the lates builds of the configurator for most platf
### Development ### Development
1. Install node.js 1. Install node.js
2. Change to project folder and run `yarn install`. 2. Install yarn: `npm install yarn -g`
3. Run `yarn start`. 3. Change to project folder and run `yarn install`.
4. Run `yarn start`.
### Running tests ### Running tests
@ -56,9 +57,10 @@ Unstable testing versions of the lates builds of the configurator for most platf
### App build and release ### App build and release
The tasks are defined in `gulpfile.js` and can be run either `yarn gulp <task-name>`: The tasks are defined in `gulpfile.js` and can be run with through yarn:
```
2. Run `yarn gulp <taskname> [[platform] [platform] ...]`. yarn gulp <taskname> [[platform] [platform] ...]
```
List of possible values of `<task-name>`: List of possible values of `<task-name>`:
* **dist** copies all the JS and CSS files in the `./dist` folder. * **dist** copies all the JS and CSS files in the `./dist` folder.
@ -75,6 +77,7 @@ If no platform is provided, all the platforms will be done in sequence.
* **MacOS** use `yarn gulp <task-name> --osx64` * **MacOS** use `yarn gulp <task-name> --osx64`
* **Linux** use `yarn gulp <task-name> --linux64` * **Linux** use `yarn gulp <task-name> --linux64`
* **Windows** use `yarn gulp <task-name> --win32` * **Windows** use `yarn gulp <task-name> --win32`
* **ChromeOS** use `yarn gulp <task-name> --chromeos`
You can also use multiple platforms e.g. `yarn gulp <taskname> --osx64 --linux64`. You can also use multiple platforms e.g. `yarn gulp <taskname> --osx64 --linux64`.

View file

@ -228,7 +228,11 @@ function dist_src() {
.pipe(gulp.src('changelog.html', { passthrougth: true })) .pipe(gulp.src('changelog.html', { passthrougth: true }))
.pipe(gulp.dest(DIST_DIR)) .pipe(gulp.dest(DIST_DIR))
.pipe(install({ .pipe(install({
yarn: '--production --ignore-scripts' commands: {
'package.json': 'yarn'
},
production: true,
ignoreScripts: true
})); }));
}; };