Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8bdbf4

Browse files
Merge pull request draft-js-plugins#1296 from draft-js-plugins/upgrade-babel
Upgrade to babel 7
2 parents 8d1de28 + f972382 commit a8bdbf4

File tree

93 files changed

+1951
-1115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+1951
-1115
lines changed

.babelrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

babel.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
presets: ['@babel/env', '@babel/react', '@babel/flow'],
3+
plugins: [
4+
'@babel/proposal-class-properties',
5+
['css-modules-transform', {
6+
generateScopedName: '[name]__[local]___[hash:base64:5]',
7+
extractCss: {
8+
dir: 'lib-css'
9+
}
10+
}]
11+
]
12+
};

draft-js-alignment-plugin/.babelrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

draft-js-alignment-plugin/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
],
2727
"scripts": {
2828
"clean": "../node_modules/.bin/rimraf lib",
29-
"build": "npm run clean && npm run build:js && npm run build:css",
30-
"build:js": "WEBPACK_CONFIG=$(pwd)/webpack.config.js BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production ../node_modules/.bin/babel --out-dir='lib' --ignore='__test__/*' src",
31-
"build:css": "node ../scripts/concatCssFiles $(pwd) && ../node_modules/.bin/rimraf lib-css",
32-
"prepublish": "npm run build"
29+
"build": "yarn clean && yarn build:js && yarn build:css",
30+
"build:js": "../node_modules/.bin/babel src --out-dir=lib --root-mode=upward --ignore='__test__/*'",
31+
"build:css": "node ../scripts/build-css.js $(pwd)",
32+
"prepublish": "yarn build"
3333
},
3434
"license": "MIT",
3535
"dependencies": {

draft-js-alignment-plugin/postcss.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

draft-js-alignment-plugin/webpack.config.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

draft-js-anchor-plugin/.babelrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

draft-js-anchor-plugin/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
],
3030
"scripts": {
3131
"clean": "../node_modules/.bin/rimraf lib",
32-
"build": "npm run clean && npm run build:js && npm run build:css && npm run build:ts",
33-
"build:js": "WEBPACK_CONFIG=$(pwd)/webpack.config.js BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production ../node_modules/.bin/babel --out-dir='lib' --ignore='__test__/*' src",
34-
"build:css": "node ../scripts/concatCssFiles $(pwd) && ../node_modules/.bin/rimraf lib-css",
32+
"build": "yarn clean && yarn build:js && yarn build:css && yarn build:ts",
33+
"build:js": "../node_modules/.bin/babel src --out-dir=lib --root-mode=upward --ignore='__test__/*'",
3534
"build:ts": "../node_modules/.bin/cpx src/*.d.ts lib/",
36-
"prepublish": "npm run build"
35+
"build:css": "node ../scripts/build-css.js $(pwd)",
36+
"prepublish": "yarn build"
3737
},
3838
"license": "MIT",
3939
"dependencies": {

draft-js-anchor-plugin/postcss.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

draft-js-anchor-plugin/webpack.config.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)