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.
pull/2558/head
David Baker 6 years ago
parent 0441fcf3df
commit 1e2cd9c2d1
  1. 6
      .gitignore
  2. 0
      config.sample.json
  3. 10
      package.json
  4. 0
      res/media/busy.mp3
  5. 0
      res/media/busy.ogg
  6. 0
      res/media/callend.mp3
  7. 0
      res/media/callend.ogg
  8. 0
      res/media/message.mp3
  9. 0
      res/media/message.ogg
  10. 0
      res/media/ring.mp3
  11. 0
      res/media/ring.ogg
  12. 0
      res/media/ringback.mp3
  13. 0
      res/media/ringback.ogg
  14. 0
      res/vector-icons/android-chrome-144x144.png
  15. 0
      res/vector-icons/android-chrome-192x192.png
  16. 0
      res/vector-icons/android-chrome-36x36.png
  17. 0
      res/vector-icons/android-chrome-48x48.png
  18. 0
      res/vector-icons/android-chrome-72x72.png
  19. 0
      res/vector-icons/android-chrome-96x96.png
  20. 0
      res/vector-icons/apple-touch-icon-114x114.png
  21. 0
      res/vector-icons/apple-touch-icon-120x120.png
  22. 0
      res/vector-icons/apple-touch-icon-144x144.png
  23. 0
      res/vector-icons/apple-touch-icon-152x152.png
  24. 0
      res/vector-icons/apple-touch-icon-180x180.png
  25. 0
      res/vector-icons/apple-touch-icon-57x57.png
  26. 0
      res/vector-icons/apple-touch-icon-60x60.png
  27. 0
      res/vector-icons/apple-touch-icon-72x72.png
  28. 0
      res/vector-icons/apple-touch-icon-76x76.png
  29. 0
      res/vector-icons/apple-touch-icon-precomposed.png
  30. 0
      res/vector-icons/apple-touch-icon.png
  31. 0
      res/vector-icons/browserconfig.xml
  32. 0
      res/vector-icons/favicon-16x16.png
  33. 0
      res/vector-icons/favicon-32x32.png
  34. 0
      res/vector-icons/favicon-96x96.png
  35. 0
      res/vector-icons/favicon.ico
  36. 0
      res/vector-icons/manifest.json
  37. 0
      res/vector-icons/mstile-144x144.png
  38. 0
      res/vector-icons/mstile-150x150.png
  39. 0
      res/vector-icons/mstile-310x150.png
  40. 0
      res/vector-icons/mstile-310x310.png
  41. 0
      res/vector-icons/mstile-70x70.png
  42. 1
      vector/fonts
  43. 1
      vector/img

6
.gitignore vendored

@ -6,11 +6,7 @@
/lib
/node_modules
/packages/
/vector/bundle.*
/vector/emojione/
/vector/config.json
/vector/index.html
/vector/olm.*
/vector
.DS_Store
npm-debug.log
electron/dist

@ -27,6 +27,8 @@
"matrix-react-parent": "matrix-react-sdk",
"scripts": {
"reskindex": "reskindex -h src/header",
"build:res": "cpx \"{src/skins/vector/fonts,src/skins/vector/img}/**\" vector/ && cpx \"{res/media,res/vector-icons}/**\" vector/",
"build:config": "cpx config.json vector/",
"build:emojione": "cpx \"node_modules/emojione/assets/svg/*\" vector/emojione/svg/",
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
"build:css": "mkdirp build && catw \"src/skins/vector/css/**/*.css\" -o build/components.css --no-watch",
@ -34,16 +36,18 @@
"build:bundle": "NODE_ENV=production webpack -p --progress",
"build:bundle:dev": "webpack --optimize-occurence-order --progress",
"build:electron": "build -lwm",
"build": "node scripts/babelcheck.js && npm run build:emojione && npm run build:css && npm run build:bundle",
"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",
"build:dev": "npm run build:emojione && npm run build:css && npm run build:bundle:dev",
"dist": "scripts/package.sh",
"start:res": "parallelshell \"cpx -w \\\"{src/skins/vector/fonts,src/skins/vector/img}/**\\\" vector/\" \"cpx \\\"{res/media,res/vector-icons}/**\\\" vector/\"",
"start:config": "cpx -w config.json vector/",
"start:emojione": "cpx \"node_modules/emojione/assets/svg/*\" vector/emojione/svg/ -w",
"start:js": "webpack-dev-server -w --progress",
"start:js:prod": "NODE_ENV=production webpack-dev-server -w --progress",
"start:skins:css": "mkdirp build && catw \"src/skins/vector/css/**/*.css\" -o build/components.css",
"start": "node scripts/babelcheck.js && parallelshell \"npm run start:emojione\" \"npm run start:js\" \"npm run start:skins:css\"",
"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\"",
"start:prod": "parallelshell \"npm run start:emojione\" \"npm run start:js:prod\" \"npm run start:skins:css\"",
"clean": "rimraf build lib vector/olm.* vector/bundle.* vector/emojione vector/index.html",
"clean": "rimraf build lib vector",
"prepublish": "npm run build:compile",
"test": "karma start --single-run=true --autoWatch=false --browsers PhantomJS --colors=false",
"test:multi": "karma start"

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

@ -1 +0,0 @@
../src/skins/vector/fonts

@ -1 +0,0 @@
../src/skins/vector/img/
Loading…
Cancel
Save