Sfoglia il codice sorgente

Update build theme config

qingwei.li 8 anni fa
parent
commit
131cc78825
3 ha cambiato i file con 4 aggiunte e 5 eliminazioni
  1. 1 1
      examples/app.vue
  2. 2 3
      package.json
  3. 1 1
      packages/theme-default

+ 1 - 1
examples/app.vue

@@ -1,5 +1,5 @@
 <style lang="css">
-  @import '../node_modules/highlight.js/styles/color-brewer.css';
+  @import 'highlight.js/styles/color-brewer.css';
   @import 'assets/styles/common.css';
   @import 'assets/styles/fonts/style.css';
 

+ 2 - 3
package.json

@@ -10,7 +10,7 @@
   ],
   "scripts": {
     "build:file": "node build/bin/iconInit.js & node build/bin/build-entry.js",
-    "dev": "npm run bootstrap && npm install && npm run build:file && cooking watch -c build/cooking.demo.js -p",
+    "dev": "npm install && npm run build:file && cooking watch -c build/cooking.demo.js -p",
     "dist": "npm run clean && npm run build:file && npm run lint && cooking build -c build/cooking.conf.js,build/cooking.common.js,build/cooking.component.js -p && npm run build:utils && npm run build:theme",
     "dist:all": "node build/bin/build-all.js && npm run build:theme",
     "build:theme": "git submodule update --remote && node build/bin/gen-cssfile && gulp build --gulpfile packages/theme-default/gulpfile.js && cp-cli packages/theme-default/lib lib/theme-default",
@@ -21,8 +21,7 @@
     "clean": "rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage",
     "lint": "eslint src/**/* test/**/* packages/**/*.{js,vue} build/**/* --quiet",
     "test:watch": "karma start test/unit/karma.conf.js",
-    "bootstrap": "cd packages/theme-default && npm i --production && cd ../..",
-    "test": "npm run bootstrap && npm run lint && CI_ENV=/dev/ karma start test/unit/karma.conf.js --single-run"
+    "test": "npm run lint && CI_ENV=/dev/ karma start test/unit/karma.conf.js --single-run"
   },
   "repository": {
     "type": "git",

+ 1 - 1
packages/theme-default

@@ -1 +1 @@
-Subproject commit 1d92c70ea7e47432fb81021d10d142b37fe3e104
+Subproject commit 543dc96689963e3f2c1d2032b547aee5a8046559