From c402be41773f63ff50bab326f11b5576715f2cba Mon Sep 17 00:00:00 2001 From: Oleg Proskurin Date: Tue, 11 Sep 2018 16:16:21 +0300 Subject: [PATCH] alpha.14 --- .babelrc | 4 ++++ .scripts/npm-prepare.js | 2 +- package.json | 9 +++++--- src/Utils/ui_package.jsx | 1 - yarn.lock | 46 ++-------------------------------------- 5 files changed, 13 insertions(+), 49 deletions(-) create mode 100644 .babelrc diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..e60d303 --- /dev/null +++ b/.babelrc @@ -0,0 +1,4 @@ +{ + "presets": ["@babel/preset-env", "@babel/preset-react"], + "plugins": ["@babel/plugin-proposal-class-properties"] +} diff --git a/.scripts/npm-prepare.js b/.scripts/npm-prepare.js index 102becd..b424819 100644 --- a/.scripts/npm-prepare.js +++ b/.scripts/npm-prepare.js @@ -6,7 +6,7 @@ var babel = ['node_modules', '.bin', 'babel'].join(path.sep); require('./ver'); -const args = '--ignore tests,stories,story.jsx,story.js src --out-dir dist'; +const args = '--ignore tests,stories,story.jsx,story.js src --out-dir dist --verbose'; const cmd = `${babel} ${args}`; shell.echo(chalk.gray(cmd)); shell.rm('-rf', 'dist'); diff --git a/package.json b/package.json index 017c2be..c2b4014 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "storybook-addon-material-ui", - "version": "0.9.0-alpha.10", + "version": "0.9.0-alpha.14", "description": "Storybook Addon for Material Ui Library", "main": "dist/index.js", "repository": { @@ -37,12 +37,16 @@ "scripts": { "start": "start-storybook -p 9001", "build-storybook": "build-storybook -s public", - "prepublish": "node .scripts/npm-prepare.js", + "deploy": "node .scripts/deployer", + "prepare": "node .scripts/npm-prepare.js", "postpublish": "node .scripts/npm-postpublish.js" }, "devDependencies": { "@babel/cli": "^7.0.0", "@babel/core": "^7.0.0", + "@babel/plugin-proposal-class-properties": "^7.0.0", + "@babel/preset-env": "^7.0.0", + "@babel/preset-react": "^7.0.0", "@material-ui/core": "^3.0.3", "@material-ui/icons": "^3.0.1", "@storybook/addon-actions": "^4.0.0-alpha.21", @@ -52,7 +56,6 @@ "babel-eslint": "^8.2.6", "babel-jest": "^23.4.2", "babel-loader": "^8.0.2", - "babel-preset-env": "^1.7.0", "chalk": "^2.4.1", "eslint": "^5.3.0", "eslint-config-airbnb": "^17.0.0", diff --git a/src/Utils/ui_package.jsx b/src/Utils/ui_package.jsx index 3354363..f6a8b3f 100755 --- a/src/Utils/ui_package.jsx +++ b/src/Utils/ui_package.jsx @@ -1,7 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; // import images from './svg_package'; -import FallbackIcon from '@material-ui/icons/Help'; const images = {}; diff --git a/yarn.lock b/yarn.lock index 11b9f7d..862f2fc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2528,41 +2528,6 @@ babel-preset-env@1.6.1: invariant "^2.2.2" semver "^5.3.0" -babel-preset-env@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.7.0.tgz#dea79fa4ebeb883cd35dab07e260c1c9c04df77a" - dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-to-generator "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.23.0" - babel-plugin-transform-es2015-classes "^6.23.0" - babel-plugin-transform-es2015-computed-properties "^6.22.0" - babel-plugin-transform-es2015-destructuring "^6.23.0" - babel-plugin-transform-es2015-duplicate-keys "^6.22.0" - babel-plugin-transform-es2015-for-of "^6.23.0" - babel-plugin-transform-es2015-function-name "^6.22.0" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.22.0" - babel-plugin-transform-es2015-modules-commonjs "^6.23.0" - babel-plugin-transform-es2015-modules-systemjs "^6.23.0" - babel-plugin-transform-es2015-modules-umd "^6.23.0" - babel-plugin-transform-es2015-object-super "^6.22.0" - babel-plugin-transform-es2015-parameters "^6.23.0" - babel-plugin-transform-es2015-shorthand-properties "^6.22.0" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.22.0" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.23.0" - babel-plugin-transform-es2015-unicode-regex "^6.22.0" - babel-plugin-transform-exponentiation-operator "^6.22.0" - babel-plugin-transform-regenerator "^6.22.0" - browserslist "^3.2.6" - invariant "^2.2.2" - semver "^5.3.0" - babel-preset-flow@^6.23.0: version "6.23.0" resolved "https://registry.yarnpkg.com/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz#e71218887085ae9a24b5be4169affb599816c49d" @@ -2917,13 +2882,6 @@ browserslist@^2.1.2, browserslist@^2.5.1: caniuse-lite "^1.0.30000792" electron-to-chromium "^1.3.30" -browserslist@^3.2.6: - version "3.2.8" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-3.2.8.tgz#b0005361d6471f0f5952797a76fc985f1f978fc6" - dependencies: - caniuse-lite "^1.0.30000844" - electron-to-chromium "^1.3.47" - browserslist@^4.1.0: version "4.1.1" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.1.1.tgz#328eb4ff1215b12df6589e9ab82f8adaa4fc8cd6" @@ -3069,7 +3027,7 @@ caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639: version "1.0.30000885" resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000885.tgz#cdc98dd168ed59678650071f7f6a70910e275bc8" -caniuse-lite@^1.0.30000748, caniuse-lite@^1.0.30000792, caniuse-lite@^1.0.30000830, caniuse-lite@^1.0.30000844, caniuse-lite@^1.0.30000884: +caniuse-lite@^1.0.30000748, caniuse-lite@^1.0.30000792, caniuse-lite@^1.0.30000830, caniuse-lite@^1.0.30000884: version "1.0.30000885" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000885.tgz#e889e9f8e7e50e769f2a49634c932b8aee622984" @@ -4120,7 +4078,7 @@ ejs@^2.6.1: version "2.6.1" resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.6.1.tgz#498ec0d495655abc6f23cd61868d926464071aa0" -electron-to-chromium@^1.2.7, electron-to-chromium@^1.3.30, electron-to-chromium@^1.3.42, electron-to-chromium@^1.3.47, electron-to-chromium@^1.3.62: +electron-to-chromium@^1.2.7, electron-to-chromium@^1.3.30, electron-to-chromium@^1.3.42, electron-to-chromium@^1.3.62: version "1.3.64" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.64.tgz#39f5a93bf84ab7e10cfbb7522ccfc3f1feb756cf"