Skip to content

Commit 6d94f35

Browse files
author
Luke Barnard
committed
Automatically update component-index
Following changes to the react-sdk, reskindex can now be updated using the "-w" (watch) equivalent of the reskindex script. -Alter npm scripts so that reskindex is run when building once and so that reskindex:start is runwhen developing -Remove and stop tracking component-index, this will now only be created at build-time
1 parent e67e891 commit 6d94f35

3 files changed

Lines changed: 7 additions & 95 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ npm-debug.log
1414
electron/dist
1515
electron/pub
1616
/config.json
17+
/src/component-index.js

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,23 @@
2727
"matrix-react-parent": "matrix-react-sdk",
2828
"scripts": {
2929
"reskindex": "reskindex -h src/header",
30+
"reskindex:watch": "reskindex -h src/header -w",
3031
"build:res": "node scripts/copy-res.js",
3132
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
32-
"build:compile": "babel --source-maps -d lib src",
33+
"build:compile": "npm run reskindex && babel --source-maps -d lib src",
3334
"build:bundle": "cross-env NODE_ENV=production webpack -p --progress",
3435
"build:bundle:dev": "webpack --optimize-occurence-order --progress",
3536
"build:electron": "npm run clean && npm run build && build -wml --ia32 --x64",
36-
"build": "npm run build:res && npm run build:bundle",
37-
"build:dev": "npm run build:res && npm run build:bundle:dev",
37+
"build": "npm run reskindex && npm run build:res && npm run build:bundle",
38+
"build:dev": "npm run reskindex && npm run build:res && npm run build:bundle:dev",
3839
"dist": "scripts/package.sh",
3940
"install:electron": "install-app-deps",
4041
"electron": "npm run install:electron && electron .",
4142
"start:res": "node scripts/copy-res.js -w",
4243
"start:js": "webpack-dev-server --output-filename=bundles/_dev_/[name].js --output-chunk-file=bundles/_dev_/[name].js -w --progress",
4344
"start:js:prod": "cross-env NODE_ENV=production webpack-dev-server -w --progress",
44-
"start": "parallelshell \"npm run start:res\" \"npm run start:js\"",
45-
"start:prod": "parallelshell \"npm run start:res\" \"npm run start:js:prod\"",
45+
"start": "parallelshell \"npm run reskindex:watch\" \"npm run start:res\" \"npm run start:js\"",
46+
"start:prod": "parallelshell \"npm run reskindex:watch\" \"npm run start:res\" \"npm run start:js:prod\"",
4647
"lint": "eslint src/",
4748
"lintall": "eslint src/ test/",
4849
"clean": "rimraf lib webapp electron/dist",

src/component-index.js

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

0 commit comments

Comments
 (0)