-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use babel 6.0 - Remove CommonJS / ES bundle, only provide ES module source - Notice change in README
- Loading branch information
Jaeho Lee
committed
Feb 27, 2017
1 parent
de809d0
commit 4eb7203
Showing
9 changed files
with
2,998 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["react", "es2015", "stage-1"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ npm-debug.log | |
/node_modules/ | ||
/dist/ | ||
/es/ | ||
*.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,11 @@ | |
"name": "svg-inline-react", | ||
"version": "1.0.3", | ||
"description": "Inline SVG wrapper component for React", | ||
"main": "dist/index.js", | ||
"jsnext:main": "es/index.js", | ||
"main": "lib/index.js", | ||
"jsnext:main": "lib/index.js", | ||
"scripts": { | ||
"test": "karma start", | ||
"test:conformance": "npm run clean && npm run build && babel-node ./test/import.js ", | ||
"clean": "rimraf es dist", | ||
"build:es": "babel lib --out-dir es --blacklist=es6.modules --stage=0", | ||
"build:cjs": "babel lib --out-dir dist --stage=0", | ||
"build": "npm run build:es && npm run build:cjs", | ||
"version": "npm run build", | ||
"postversion": "git push && git push --tags", | ||
"prepublish": "npm run build" | ||
"build": "webpack" | ||
}, | ||
"author": "Jaeho Lee <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -23,8 +16,7 @@ | |
}, | ||
"keywords": [ | ||
"svg", | ||
"react", | ||
"loader" | ||
"react" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/sairion/svg-inline-react/issues" | ||
|
@@ -34,17 +26,18 @@ | |
"react": "^0.14.0 || ^15.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel": "^5.8.34", | ||
"babel-core": "^5.8.35", | ||
"babel-loader": "^5.4.0", | ||
"babel-core": "^6.23.1", | ||
"babel-loader": "^6.3.2", | ||
"babel-preset-es2015": "^6.22.0", | ||
"babel-preset-react": "^6.23.0", | ||
"babel-preset-stage-1": "^6.22.0", | ||
"karma": "^0.13.21", | ||
"karma-chrome-launcher": "^0.2.2", | ||
"karma-mocha": "^0.2.2", | ||
"karma-spec-reporter": "0.0.24", | ||
"karma-webpack": "^1.7.0", | ||
"mocha": "^2.3.4", | ||
"react-dom": "^0.14.3", | ||
"rimraf": "^2.5.1", | ||
"react-dom": "^0.14.0 || ^15.0.0", | ||
"svg-inline-loader": "^0.4.1", | ||
"webpack": "^1.12.14" | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module.exports = { | ||
cache: true, | ||
debug: true, | ||
devtool: 'cheap-module-hidden-source-map', | ||
entry: [ | ||
'./lib/index.js' | ||
], | ||
output: { | ||
filename: './dist/index.js', | ||
}, | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.js$/, | ||
loader: 'babel-loader', | ||
}, | ||
{ | ||
test: /\.svg$/, | ||
loader: 'svg-inline-loader', | ||
}, | ||
] | ||
} | ||
} |
Oops, something went wrong.