diff --git a/README.md b/README.md index 068be42d..bb99d69b 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,9 @@ Unstable testing versions of the lates builds of the configurator for most platf ### Development 1. Install node.js -2. Change to project folder and run `yarn install`. -3. Run `yarn start`. +2. Install yarn: `npm install yarn -g` +3. Change to project folder and run `yarn install`. +4. Run `yarn start`. ### Running tests @@ -56,9 +57,10 @@ Unstable testing versions of the lates builds of the configurator for most platf ### App build and release -The tasks are defined in `gulpfile.js` and can be run either `yarn gulp `: - -2. Run `yarn gulp [[platform] [platform] ...]`. +The tasks are defined in `gulpfile.js` and can be run with through yarn: +``` +yarn gulp [[platform] [platform] ...] +``` List of possible values of ``: * **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 --osx64` * **Linux** use `yarn gulp --linux64` * **Windows** use `yarn gulp --win32` +* **ChromeOS** use `yarn gulp --chromeos` You can also use multiple platforms e.g. `yarn gulp --osx64 --linux64`. diff --git a/gulpfile.js b/gulpfile.js index ba137b9c..16825763 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -228,7 +228,11 @@ function dist_src() { .pipe(gulp.src('changelog.html', { passthrougth: true })) .pipe(gulp.dest(DIST_DIR)) .pipe(install({ - yarn: '--production --ignore-scripts' + commands: { + 'package.json': 'yarn' + }, + production: true, + ignoreScripts: true })); };