Skip to content

Commit 24a3fdf

Browse files
committed
Clean up the repo and build a bit.
1 parent 09224c5 commit 24a3fdf

5 files changed

Lines changed: 20 additions & 23 deletions

File tree

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"no-implied-eval": 2,
3333
"no-new-func": 2,
3434
"guard-for-in": 2,
35-
"eqeqeq": 1,
35+
"eqeqeq": 0,
3636
"no-else-return": 2,
3737
"no-redeclare": 2,
3838
"no-dupe-keys": 2,
@@ -44,7 +44,6 @@
4444
"no-shadow-restricted-names": 2,
4545
"handle-callback-err": 0,
4646
"no-lonely-if": 2,
47-
"keyword-spacing": 2,
4847
"constructor-super": 2,
4948
"no-this-before-super": 2,
5049
"no-dupe-class-members": 2,

.npmignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
},
1818
"babel": {
1919
"presets": [
20-
"es2015-minimal",
21-
"stage-0",
22-
"react"
20+
"es2015",
21+
"stage-0"
2322
],
2423
"plugins": [
2524
"transform-object-rest-spread",
@@ -31,6 +30,10 @@
3130
]
3231
]
3332
},
33+
"files": [
34+
"src",
35+
"dist"
36+
],
3437
"keywords": [
3538
"hyperscript",
3639
"html",
@@ -49,23 +52,22 @@
4952
"homepage": "https://github.com/developit/vhtml",
5053
"devDependencies": {
5154
"babel-core": "^6.6.4",
52-
"babel-eslint": "^5.0.0",
55+
"babel-eslint": "^7.0.0",
5356
"babel-plugin-transform-object-rest-spread": "^6.6.4",
5457
"babel-plugin-transform-react-jsx": "^6.6.5",
55-
"babel-preset-es2015-minimal": "^1.1.0",
56-
"babel-preset-es2015-minimal-rollup": "^1.1.0",
57-
"babel-preset-react": "^6.5.0",
58+
"babel-preset-es2015": "^6.9.0",
5859
"babel-preset-stage-0": "^6.5.0",
5960
"babel-register": "^6.7.2",
6061
"chai": "^3.5.0",
61-
"eslint": "~2.2.0",
62+
"eslint": "^3.1.0",
6263
"gzip-size-cli": "^1.0.0",
6364
"mkdirp": "^0.5.1",
64-
"mocha": "^2.4.5",
65-
"npm-run-all": "^1.5.1",
65+
"mocha": "^3.1.2",
66+
"npm-run-all": "^2.3.0",
6667
"pretty-bytes-cli": "^1.0.0",
67-
"rollup": "^0.25.4",
68+
"rollup": "^0.36.3",
6869
"rollup-plugin-babel": "^2.4.0",
70+
"rollup-plugin-es3": "^1.0.3",
6971
"uglify-js": "^2.6.2"
7072
}
7173
}

rollup.config.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
import path from 'path';
22
import fs from 'fs';
33
import babel from 'rollup-plugin-babel';
4+
import es3 from 'rollup-plugin-es3';
45

56
let pkg = JSON.parse(fs.readFileSync('./package.json'));
6-
let external = Object.keys(pkg.peerDependencies || {}).concat(Object.keys(pkg.dependencies || {}));
77

88
export default {
99
entry: pkg['jsnext:main'],
1010
dest: pkg.main,
1111
sourceMap: path.resolve(pkg.main),
1212
moduleName: pkg.amdName,
13+
exports: 'default',
1314
format: 'umd',
14-
external,
1515
plugins: [
1616
babel({
1717
babelrc: false,
1818
comments: false,
19-
exclude: 'node_modules/**',
2019
presets: [
21-
'es2015-minimal-rollup'
20+
['es2015', { loose:true, modules:false }]
2221
].concat(pkg.babel.presets.slice(1)),
23-
plugins: require('babel-preset-es2015-minimal-rollup').plugins.concat([
24-
['transform-react-jsx', { pragma:'h' }]
25-
])
26-
})
22+
plugins: pkg.babel.plugins
23+
}),
24+
es3()
2725
]
2826
};

0 commit comments

Comments
 (0)