Bladeren bron

Install the artifacts into the example projects after every build

Kevin van Zonneveld 9 jaren geleden
bovenliggende
commit
6ee50f3f00
4 gewijzigde bestanden met toevoegingen van 12 en 1 verwijderingen
  1. 4 0
      .gitignore
  2. 0 1
      .travis.yml
  3. 4 0
      bin/scripts
  4. 4 0
      bin/styles

+ 4 - 0
.gitignore

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

+ 0 - 1
.travis.yml

@@ -6,7 +6,6 @@ node_js:
 script:
   - "npm run-script build"
   - "npm run-script build:examples"
-  - "cp build/transloadit-js-client.js examples/playground/static/js/transloadit-js-client.js"
 
 after_script:
   - "echo 'Tested :)'"

+ 4 - 0
bin/scripts

@@ -6,3 +6,7 @@ TRANSFORMS="[ babelify ]"
 
 # Argument should be browserify or watchify
 $1 $ENTRY -o $OUTPUT -t $TRANSFORMS
+
+# Copy the build into all examples:
+set -x
+cp build/transloadit-js-client.js examples/playground/static/js/

+ 4 - 0
bin/styles

@@ -4,3 +4,7 @@ INPUT=src/scss/index.scss
 OUTPUT=build/transloadit-js-client.css
 
 node-sass $INPUT $OUTPUT
+
+# Copy the build into all examples:
+set -x
+cp build/transloadit-js-client.css examples/playground/static/css/