|
4 | 4 | "version": "2.6.1",
|
5 | 5 | "description": "Render JSX to an HTML string, with support for Preact components.",
|
6 | 6 | "main": "dist/index.js",
|
| 7 | + "jsnext:main": "src/index.js", |
7 | 8 | "scripts": {
|
8 |
| - "build": "babel src -s -d dist --module-id $npm_package_amdName", |
9 |
| - "test": "eslint {src,test} && mocha --compilers js:babel/register test/**/*.js", |
| 9 | + "build": "rollup -c rollup.config.js -m ${npm_package_main}.map -f umd -n $npm_package_amdName $npm_package_jsnext_main -o $npm_package_main", |
| 10 | + "test": "eslint {src,test} && mocha --compilers js:babel-register test/**/*.js", |
10 | 11 | "prepublish": "npm run build",
|
11 | 12 | "release": "npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
|
12 | 13 | },
|
|
30 | 31 | "preact": "*"
|
31 | 32 | },
|
32 | 33 | "devDependencies": {
|
33 |
| - "babel": "^5.8.23", |
34 |
| - "babel-eslint": "^4.1.3", |
| 34 | + "babel-cli": "^6.11.4", |
| 35 | + "babel-core": "^6.11.4", |
| 36 | + "babel-eslint": "^6.1.2", |
| 37 | + "babel-plugin-transform-class-properties": "^6.10.2", |
| 38 | + "babel-plugin-transform-react-jsx": "^6.8.0", |
| 39 | + "babel-preset-es2015": "^6.9.0", |
| 40 | + "babel-preset-es2015-minimal": "^2.0.0", |
| 41 | + "babel-preset-es2015-minimal-rollup": "^2.0.0", |
| 42 | + "babel-preset-stage-0": "^6.5.0", |
| 43 | + "babel-register": "^6.9.0", |
35 | 44 | "chai": "^3.3.0",
|
36 |
| - "eslint": "^1.7.1", |
| 45 | + "eslint": "^3.1.1", |
37 | 46 | "mocha": "^2.3.3",
|
38 |
| - "preact": "^4.1.3", |
| 47 | + "preact": "^5.5.0", |
| 48 | + "rollup": "^0.34.1", |
| 49 | + "rollup-plugin-babel": "^2.6.1", |
| 50 | + "rollup-plugin-memory": "^1.0.0", |
39 | 51 | "sinon": "^1.17.1",
|
40 | 52 | "sinon-chai": "^2.8.0"
|
41 | 53 | }
|
|
0 commit comments