Skip to content

Commit

Permalink
chore(project): update babel deps, remove unused plugins (carbon-desi…
Browse files Browse the repository at this point in the history
…gn-system#2211)

* chore(project): update babel deps, remove unused plugins

* chore(project): sync offline mirror

* chore(storybook): update babel config to read from package.json
  • Loading branch information
joshblack authored and asudoh committed Apr 16, 2019
1 parent 7d80890 commit 9907423
Show file tree
Hide file tree
Showing 110 changed files with 646 additions and 287 deletions.
41 changes: 0 additions & 41 deletions .storybook/.babelrc

This file was deleted.

23 changes: 23 additions & 0 deletions .storybook/.babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
'use strict';

const path = require('path');
const packageJson = require('../package.json');

const root = path.resolve(__dirname, '../');
const babelConfig = Object.keys(packageJson.babel).reduce((acc, key) => {
const options = packageJson.babel[key].map(option => {
// If the preset/plugin is not a relative path, we can use it directly
if (option[0] !== '.') {
return option;
}
// Otherwise, resolve the full path for storybook to work as intended
return path.resolve(root, option);
});

return {
...acc,
[key]: options,
};
}, {});

module.exports = babelConfig;
Binary file removed .yarn-offline-mirror/@babel-cli-7.1.5.tgz
Binary file not shown.
Binary file added .yarn-offline-mirror/@babel-cli-7.4.3.tgz
Binary file not shown.
Binary file removed .yarn-offline-mirror/@babel-core-7.1.6.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn-offline-mirror/@babel-helpers-7.1.5.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .yarn-offline-mirror/@babel-preset-env-7.4.3.tgz
Binary file not shown.
Binary file added .yarn-offline-mirror/async-each-1.0.2.tgz
Binary file not shown.
Binary file added .yarn-offline-mirror/browserslist-4.5.4.tgz
Binary file not shown.
Binary file not shown.
Binary file added .yarn-offline-mirror/chokidar-2.1.5.tgz
Binary file not shown.
Binary file added .yarn-offline-mirror/core-js-3.0.1.tgz
Binary file not shown.
Binary file added .yarn-offline-mirror/core-js-compat-3.0.1.tgz
Binary file not shown.
Binary file added .yarn-offline-mirror/core-js-pure-3.0.1.tgz
Binary file not shown.
Binary file not shown.
Binary file added .yarn-offline-mirror/node-releases-1.1.14.tgz
Binary file not shown.
Binary file added .yarn-offline-mirror/normalize-path-3.0.0.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .yarn-offline-mirror/regexp-tree-0.1.5.tgz
Binary file not shown.
Binary file added .yarn-offline-mirror/regexpu-core-4.5.4.tgz
Binary file not shown.
Binary file added .yarn-offline-mirror/regjsgen-0.5.0.tgz
Binary file not shown.
Binary file added .yarn-offline-mirror/regjsparser-0.6.0.tgz
Binary file not shown.
Binary file added .yarn-offline-mirror/semver-6.0.0.tgz
Binary file not shown.
Binary file not shown.
Binary file added .yarn-offline-mirror/upath-1.1.2.tgz
Binary file not shown.
52 changes: 11 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,26 +145,16 @@
"window-or-global": "^1.0.1"
},
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/plugin-external-helpers": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-decorators": "^7.1.2",
"@babel/plugin-proposal-do-expressions": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-function-sent": "^7.1.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/plugin-transform-object-assign": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/cli": "^7.4.3",
"@babel/core": "^7.4.3",
"@babel/plugin-external-helpers": "^7.2.0",
"@babel/plugin-proposal-class-properties": "^7.4.0",
"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@babel/plugin-proposal-export-namespace-from": "^7.2.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-syntax-import-meta": "^7.2.0",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/preset-env": "^7.4.3",
"@babel/preset-react": "^7.0.0",
"@commitlint/cli": "^7.5.0",
"@commitlint/config-conventional": "^7.5.0",
Expand Down Expand Up @@ -243,28 +233,8 @@
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-json-strings",
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
"@babel/plugin-proposal-function-sent",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-proposal-numeric-separator",
"@babel/plugin-proposal-throw-expressions",
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-logical-assignment-operators",
"@babel/plugin-proposal-optional-chaining",
[
"@babel/plugin-proposal-pipeline-operator",
{
"proposal": "minimal"
}
],
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-do-expressions"
"@babel/plugin-proposal-export-default-from"
]
},
"commitlint": {
Expand Down
Loading

0 comments on commit 9907423

Please sign in to comment.