瀏覽代碼

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"
   }
 }