Skip to content

Commit f3d49ba

Browse files
committed
chore: update scripts
1 parent cdbcabd commit f3d49ba

8 files changed

Lines changed: 13 additions & 76 deletions

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"private": true,
33
"scripts": {
44
"bootstrap": "lerna bootstrap",
5-
"build-all": "lerna run build-all",
5+
"postinstall": "npm run bootstrap",
6+
"build": "lerna run build",
7+
"test": "npm run build && lerna run test --scope browser-sync",
68
"test:e2e": "cb cy:*"
79
},
810
"name": "browser-sync",

packages/browser-sync-client/crossbow.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/browser-sync-client/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,12 @@
2525
"node": ">=8.0.0"
2626
},
2727
"scripts": {
28-
"start": "cb dev",
29-
"test": "cb test",
30-
"build-all": "cb build-all",
31-
"prepublishOnly": "cb build-all"
28+
"build": "webpack && webpack -p --output-filename index.min.js",
29+
"prepublishOnly": "npm run build-all"
3230
},
3331
"devDependencies": {
3432
"@types/node": "^8",
3533
"awesome-typescript-loader": "^3.1.2",
36-
"crossbow": "^4.3.3",
3734
"nanologger": "^1.3.1",
3835
"socket.io-client": "^2.0.4",
3936
"typescript": "3.0.3",

packages/browser-sync-ui/.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/browser-sync-ui/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
],
1717
"license": "Apache-2.0",
1818
"scripts": {
19-
"e2e": "./test/pro.sh",
20-
"selenium": "webdriver-manager start",
21-
"test": "cb test",
22-
"build-all": "cb build-all"
19+
"build": "webpack"
2320
},
2421
"dependencies": {
2522
"async-each-series": "0.1.1",

packages/browser-sync/.prettierignore

Whitespace-only changes.

packages/browser-sync/crossbow.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

packages/browser-sync/package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@
2121
"node": ">= 8.0.0"
2222
},
2323
"scripts": {
24+
"build": "npm run build:server",
25+
"build:server": "tsc",
2426
"env": "node ./test/env.js",
25-
"test": "cb build-all && npm run env && npm run unit",
26-
"lint": "prettier 'lib/**/*' 'examples/*' 'test/specs/**/*' 'test/specs/*.js' --write --tab-width 4",
27-
"pro": "protractor test/protractor/config.single.js",
28-
"pro-local": "node test/protractor/setup.js",
29-
"unit": "mocha --recursive test/specs --timeout 10000 --bail --exit",
30-
"pre-release": "npm test && npm run pro-local && npm run pro",
3127
"lodash": "lodash include=isUndefined,isFunction,toArray,includes,union,each,isString,merge,isObject,set exports=node",
32-
"prepublishOnly": "cb build-all",
33-
"build-all": "cb build-all"
28+
"prepublishOnly": "npm run build",
29+
"prettier": "prettier 'lib/**/*' 'examples/*' 'test/specs/**/*.js' --tab-width 4",
30+
"prettier:fix": "npm run prettier -- --write",
31+
"test": "npm run build && npm run env && npm run unit",
32+
"unit": "mocha --recursive test/specs --timeout 10000 --bail --exit"
3433
},
3534
"dependencies": {
3635
"browser-sync-client": "^2.26.13",
@@ -68,7 +67,6 @@
6867
"@types/node": "^8",
6968
"chai": "^3",
7069
"chalk": "1.1.3",
71-
"crossbow": "^4.6.0",
7270
"generate-changelog": "^1.7.0",
7371
"graceful-fs": "4.1.9",
7472
"http2": "^3.3.6",

0 commit comments

Comments
 (0)