Skip to content

Commit 1e2cd9c

Browse files
committed
Build all of the vector dir in the build process
So the whole vector/ directory can now be removed during the build process and we don't ship random files that end up in the vector directory.
1 parent 0441fcf commit 1e2cd9c

43 files changed

Lines changed: 8 additions & 10 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
/lib
77
/node_modules
88
/packages/
9-
/vector/bundle.*
10-
/vector/emojione/
11-
/vector/config.json
12-
/vector/index.html
13-
/vector/olm.*
9+
/vector
1410
.DS_Store
1511
npm-debug.log
1612
electron/dist

‎package.json‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,27 @@
2727
"matrix-react-parent": "matrix-react-sdk",
2828
"scripts": {
2929
"reskindex": "reskindex -h src/header",
30+
"build:res": "cpx \"{src/skins/vector/fonts,src/skins/vector/img}/**\" vector/ && cpx \"{res/media,res/vector-icons}/**\" vector/",
31+
"build:config": "cpx config.json vector/",
3032
"build:emojione": "cpx \"node_modules/emojione/assets/svg/*\" vector/emojione/svg/",
3133
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
3234
"build:css": "mkdirp build && catw \"src/skins/vector/css/**/*.css\" -o build/components.css --no-watch",
3335
"build:compile": "babel --source-maps -d lib src",
3436
"build:bundle": "NODE_ENV=production webpack -p --progress",
3537
"build:bundle:dev": "webpack --optimize-occurence-order --progress",
3638
"build:electron": "build -lwm",
37-
"build": "node scripts/babelcheck.js && npm run build:emojione && npm run build:css && npm run build:bundle",
39+
"build": "node scripts/babelcheck.js && npm run build:res && npm run build:config && npm run build:emojione && npm run build:css && npm run build:bundle",
3840
"build:dev": "npm run build:emojione && npm run build:css && npm run build:bundle:dev",
3941
"dist": "scripts/package.sh",
42+
"start:res": "parallelshell \"cpx -w \\\"{src/skins/vector/fonts,src/skins/vector/img}/**\\\" vector/\" \"cpx \\\"{res/media,res/vector-icons}/**\\\" vector/\"",
43+
"start:config": "cpx -w config.json vector/",
4044
"start:emojione": "cpx \"node_modules/emojione/assets/svg/*\" vector/emojione/svg/ -w",
4145
"start:js": "webpack-dev-server -w --progress",
4246
"start:js:prod": "NODE_ENV=production webpack-dev-server -w --progress",
4347
"start:skins:css": "mkdirp build && catw \"src/skins/vector/css/**/*.css\" -o build/components.css",
44-
"start": "node scripts/babelcheck.js && parallelshell \"npm run start:emojione\" \"npm run start:js\" \"npm run start:skins:css\"",
48+
"start": "node scripts/babelcheck.js && parallelshell \"npm run start:emojione\" \"npm run start:res\" \"npm run start:config\" \"npm run start:js\" \"npm run start:skins:css\"",
4549
"start:prod": "parallelshell \"npm run start:emojione\" \"npm run start:js:prod\" \"npm run start:skins:css\"",
46-
"clean": "rimraf build lib vector/olm.* vector/bundle.* vector/emojione vector/index.html",
50+
"clean": "rimraf build lib vector",
4751
"prepublish": "npm run build:compile",
4852
"test": "karma start --single-run=true --autoWatch=false --browsers PhantomJS --colors=false",
4953
"test:multi": "karma start"

0 commit comments

Comments
 (0)