Преглед изворни кода

Run build on prepublishOnly

Renée Kooi пре 7 година
родитељ
комит
719a1d26e2
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      .travis.yml
  2. 1 1
      package.json

+ 1 - 0
.travis.yml

@@ -19,6 +19,7 @@ cache:
   - website/node_modules
 script:
 - npm run web:install
+- npm run build
 - npm run test
 - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run test:acceptance; fi
 env:

+ 1 - 1
package.json

@@ -165,6 +165,6 @@
     "web:preview": "npm-run-all --parallel web:examples:watch web:bundle:update:watch web:serve",
     "web:update:frontpage:code:sample": "cd website && ./node_modules/.bin/hexo generate && cp -f public/frontpage-code-sample.html ./themes/uppy/layout/partials/frontpage-code-sample.html",
     "web": "npm-run-all web:clean web:build",
-    "prepublish": "npm-run-all clean build"
+    "prepublishOnly": "npm-run-all clean build"
   }
 }