Skip to content

Commit c076817

Browse files
committed
add unbundled es6 build with jsx file extensions
1 parent 3a7b1b7 commit c076817

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ package-lock.json
77
/lazy
88
/demo
99
/coverage
10+
/es6
1011
.idea/
1112
.vscode/

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"build:demo": "cross-env NODE_ENV=production webpack --config webpack/production.babel.js",
2020
"build:dist": "cross-env NODE_ENV=production webpack --config webpack/dist.babel.js",
2121
"build:standalone": "cross-env NODE_ENV=production webpack --config webpack/standalone.babel.js && node scripts/standalone-es6.js",
22+
"build:es6": "rsync --exclude demo -r ./src/ ./es6/ && find ./es6/ -name '*.js' -exec grep -q 'import React' {} \\; -exec mv {} {}x \\;",
2223
"preversion": "npm run lint && npm run test",
2324
"version": "auto-changelog -p && npm run build:dist && npm run build:standalone && git add CHANGELOG.md dist",
2425
"prepublishOnly": "npm run build:lib && npm run build:lazy && npm run build:dist && node scripts/pre-publish.js && cp -r types/* .",

0 commit comments

Comments
 (0)