Selaa lähdekoodia

Updated examples build config

Harry Hedger 9 vuotta sitten
vanhempi
commit
3adeea07b1
5 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 1 0
      .gitignore
  2. 1 1
      .travis.yml
  3. 1 0
      examples/buildAll
  4. 1 0
      examples/playground/package.json
  5. 1 0
      package.json

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 node_modules
 build/transloadit-js-client.*
 npm-debug.log
+examples/playground/static/js/app.js

+ 1 - 1
.travis.yml

@@ -5,7 +5,7 @@ node_js:
 
 before_script:
   - "npm run-script build"
-  - "echo 'I think we need to make the build accessible to playground now?'"
+  - "npm run-script build:examples"
 
 script:
   - "echo 'Tested :)'"

+ 1 - 0
examples/buildAll

@@ -0,0 +1 @@
+./node_modules/.bin/browserify examples/playground/src/js/app.js -o examples/playground/static/js/app.js

+ 1 - 0
examples/playground/package.json

@@ -4,6 +4,7 @@
   "description": "",
   "main": "index.js",
   "scripts": {
+    "build": "../../node_modules/.bin/browserify src/js/app.js -o static/js/app.js",
     "watch": "../../node_modules/.bin/watchify src/js/app.js -o static/js/app.js",
     "test": "echo \"Error: no test specified\" && exit 1"
   },

+ 1 - 0
package.json

@@ -8,6 +8,7 @@
     "build": "npm run build:js & npm run build:css",
     "build:css": "bin/styles",
     "build:js": "bin/scripts node_modules/.bin/browserify",
+    "build:examples": "examples/buildAll",
     "clean": "rm -rf build/*.js & rm -rf build/*.css",
     "lint": "eslint src/js/lib/**/*.js",
     "phantom-test": "zuul test/spec/upload.js --phantom",