Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing #407 jsnext:main #415

Merged
merged 3 commits into from
Mar 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,35 @@
{
"presets": ["es2015", "stage-2"],
"presets": ["stage-2"],
"sourceMaps": true,
"plugins": [
["transform-react-jsx", {"pragma": "h"}]
]
["transform-react-jsx", {"pragma": "h"}],
"transform-es2015-template-literals",
"transform-es2015-literals",
"transform-es2015-function-name",
"transform-es2015-arrow-functions",
"transform-es2015-block-scoped-functions",
"transform-es2015-classes",
"transform-es2015-object-super",
"transform-es2015-shorthand-properties",
"transform-es2015-duplicate-keys",
"transform-es2015-computed-properties",
"transform-es2015-for-of",
"transform-es2015-sticky-regex",
"transform-es2015-unicode-regex",
"check-es2015-constants",
"transform-es2015-spread",
"transform-es2015-parameters",
"transform-es2015-destructuring",
"transform-es2015-block-scoping",
"transform-es2015-typeof-symbol",
["transform-regenerator", { "async": false, "asyncGenerators": false }],
],
"env": {
"commonjs": {
"plugins": [
["transform-es2015-modules-commonjs", { "loose": true }]
]
},
"es": {}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
_book
dist
lib
es
npm-debug.log
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.babelrc
test
src
35 changes: 29 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
"repository": "dekujs/deku",
"description": "Render interfaces using pure functions and virtual DOM",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"jsnext:main": "es/index.js",
"scripts": {
"clean": "rimraf lib _book",
"build": "babel src --out-dir lib",
"test": "hihat test/index.js -- --debug -t babelify -p tap-dev-tool",
"test:headless": "browserify test/index.js -t babelify | tape-run",
"test:browsers": "zuul -- ./test/index.js",
"build": "npm run build:commonjs && npm run build:es",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
"test": "cross-env BABEL_ENV=commonjs hihat test/index.js -- --debug -t babelify -p tap-dev-tool",
"test:headless": "cross-env BABEL_ENV=commonjs browserify test/index.js -t babelify | tape-run",
"test:browsers": "cross-env BABEL_ENV=commonjs zuul -- ./test/index.js",
"test:lint": "standard src/**/*.js test/**/*.js | snazzy",
"docs:install": "gitbook install",
"docs:build": "npm run docs:install && gitbook build",
Expand All @@ -26,14 +28,35 @@
},
"devDependencies": {
"babel-cli": "6.3.17",
"babel-plugin-check-es2015-constants": "^6.7.2",
"babel-plugin-transform-es2015-arrow-functions": "^6.5.2",
"babel-plugin-transform-es2015-block-scoped-functions": "^6.6.5",
"babel-plugin-transform-es2015-block-scoping": "^6.7.1",
"babel-plugin-transform-es2015-classes": "^6.6.5",
"babel-plugin-transform-es2015-computed-properties": "^6.6.5",
"babel-plugin-transform-es2015-destructuring": "^6.6.5",
"babel-plugin-transform-es2015-duplicate-keys": "^6.6.4",
"babel-plugin-transform-es2015-for-of": "^6.6.0",
"babel-plugin-transform-es2015-function-name": "^6.5.0",
"babel-plugin-transform-es2015-literals": "^6.5.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.7.4",
"babel-plugin-transform-es2015-object-super": "^6.6.5",
"babel-plugin-transform-es2015-parameters": "^6.7.0",
"babel-plugin-transform-es2015-shorthand-properties": "^6.5.0",
"babel-plugin-transform-es2015-spread": "^6.6.5",
"babel-plugin-transform-es2015-sticky-regex": "^6.5.0",
"babel-plugin-transform-es2015-template-literals": "^6.6.5",
"babel-plugin-transform-es2015-typeof-symbol": "^6.6.0",
"babel-plugin-transform-es2015-unicode-regex": "^6.5.0",
"babel-plugin-transform-react-jsx": "6.1.18",
"babel-plugin-transform-regenerator": "^6.6.5",
"babel-polyfill": "6.1.19",
"babel-preset-es2015": "6.1.18",
"babel-preset-stage-2": "6.1.18",
"babelify": "7.2.0",
"browserify": "13.0.0",
"browserify-hmr": "^0.3.1",
"budo": "7.1.0",
"cross-env": "^1.0.7",
"gh-pages": "0.8.0",
"gitbook": "2.6.6",
"hihat": "2.6.4",
Expand Down