Browse Source

Chore: bump storybook and add build script (#16340)

Dominik Prokop 6 năm trước cách đây
mục cha
commit
7764f04abf
4 tập tin đã thay đổi với 255 bổ sung344 xóa
  1. 1 0
      package.json
  2. 0 3
      packages/grafana-ui/.storybook/webpack.config.js
  3. 2 1
      packages/grafana-ui/package.json
  4. 252 340
      yarn.lock

+ 1 - 0
package.json

@@ -139,6 +139,7 @@
     "jest": "jest --notify --watch",
     "api-tests": "jest --notify --watch --config=tests/api/jest.js",
     "storybook": "cd packages/grafana-ui && yarn storybook",
+    "storybook:build": "cd packages/grafana-ui && yarn storybook:build",
     "themes:generate": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/generateSassVariableFiles.ts",
     "prettier:check": "prettier --list-different \"**/*.{ts,tsx,scss}\"",
     "gui:build": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts gui:build",

+ 0 - 3
packages/grafana-ui/.storybook/webpack.config.js

@@ -23,9 +23,6 @@ module.exports = ({config, mode}) => {
         loader: 'css-loader',
         options: {
           importLoaders: 2,
-          // url: false,
-          // sourceMap: false,
-          // minimize: false,
         },
       },
       {

+ 2 - 1
packages/grafana-ui/package.json

@@ -11,7 +11,8 @@
   "scripts": {
     "tslint": "tslint -c tslint.json --project tsconfig.json",
     "typecheck": "tsc --noEmit",
-    "storybook": "start-storybook -p 9001 -c .storybook -s ../../public",
+    "storybook": "start-storybook -p 9001 -c .storybook",
+    "storybook:build": "build-storybook -o ./dist/storybook -c .storybook",
     "clean": "rimraf ./dist ./compiled",
     "build": "rollup -c rollup.config.ts"
   },

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 252 - 340
yarn.lock


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác