Skip to content

Commit 0de4596

Browse files
committed
concurrently build incrementally
1 parent 9b24d04 commit 0de4596

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ We are using [SideeX](http://sideex.org/) as a start point. The SideeX team was
3737
`yarn` or if using Node 10 `yarn --ignore-engines`
3838
- Build the extension
3939
`yarn build` and then
40-
`yarn build:webdriver` and then
41-
`yarn build:ext:prod` or `yarn build:ext` for faster development build (also includes beta features)
40+
`yarn watch` for faster incremental builds
41+
`yarn build:ext:prod` to build only the extension or `yarn build:ext` for faster development build (also includes beta features)
4242
- Install as developer on [Google Chrome](https://developer.chrome.com/extensions/getstarted#unpacked) or [Firefox](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Temporary_Installation_in_Firefox)
4343

4444
Manifest located in `<Project Directory>/packages/selenium-ide/build/manifest.json`

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"lint": "yarn lint:scripts && yarn lint:styles",
2323
"lint:scripts": "eslint \"packages/*/src/**/*.js\" \"packages/*/src/**/*.jsx\" \"packages/*/__tests__/**/*.js\" \"packages/*/tests/**/*.js\" \"packages/*/__mocks__/**/*.js\" \"website/**/*.js\" --ignore-pattern=\"extension-boilerplate\" --ignore-pattern=\"node_modules\"",
2424
"lint:styles": "stylelint \"packages/selenium-ide/src/neo/**/*.css\"",
25-
"postinstall": "lerna bootstrap"
25+
"postinstall": "lerna bootstrap",
26+
"watch": "lerna exec --no-bail --parallel yarn run build:dev"
2627
},
2728
"jest": {
2829
"testURL": "http://localhost/index.html",

packages/selenium-ide/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"start": "env NODE_ENV=test webpack-dev-server --hot",
99
"build": "rm -rf build && env NODE_ENV=production webpack",
10-
"build-dev": "webpack",
10+
"build:dev": "webpack -w",
1111
"build-chrome": "./build.sh build ../../selenium-ide.pem 1>/dev/null && mkdir -p dist && mv build.crx dist/selenium-ide.crx && echo \"Wrote dist/selenium-ide.crx\"",
1212
"build-firefox": "web-ext sign -s build -a dist --api-key=$AMO_JWT_ISSUER --api-secret=$AMO_JWT_SECRET --id=$(cat ../../.web-extension-id)",
1313
"version": "node scripts/version.js && git add src/manifest.json",

packages/selenium-side-runner/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"repository": "https://github.com/SeleniumHQ/selenium-ide",
66
"scripts": {
77
"build": "babel -d dist src --ignore=__test__",
8+
"build:dev": "yarn build -w",
89
"pkg": "pkg package.json --targets=node9-linux-x64,node9-macos-x64,node9-windows-x64 --out-path=dist/bin",
910
"prepublishOnly": "yarn build"
1011
},

packages/selianize/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"module": "dist/selianize.esm.js",
88
"scripts": {
99
"build": "rollup -c",
10-
"dev": "rollup -c -w",
10+
"build:dev": "yarn build -w",
1111
"prepublishOnly": "yarn build"
1212
},
1313
"engines": {

0 commit comments

Comments
 (0)