|
4 | 4 | "version": "1.1.0", |
5 | 5 | "description": "Observes resizing of an element using a hidden iframe.", |
6 | 6 | "main": "dist/simple-element-resize-detector.js", |
7 | | - "jsnext:main": "index.js", |
| 7 | + "umd:main": "dist/simple-element-resize-detector.js", |
| 8 | + "module": "dist/simple-element-resize-detector.mjs", |
| 9 | + "source": "index.js", |
8 | 10 | "scripts": { |
9 | | - "build": "npm-run-all transpile minify size", |
10 | | - "transpile": "rollup -c rollup.config.js", |
11 | | - "minify": "uglifyjs $npm_package_main -cm -o $npm_package_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_main}.map", |
12 | | - "size": "echo \"gzip size: $(gzip-size $npm_package_main | pretty-bytes)\"", |
| 11 | + "build": "microbundle -f es,umd", |
13 | 12 | "test": "eslint src test", |
14 | | - "prepublish": "npm-run-all build test", |
| 13 | + "prepublish": "npm run -s build && npm t", |
15 | 14 | "release": "npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish" |
16 | 15 | }, |
17 | 16 | "files": [ |
18 | 17 | "index.js", |
19 | 18 | "dist" |
20 | 19 | ], |
21 | | - "keywords": [], |
22 | | - "repository": { |
23 | | - "type": "git", |
24 | | - "url": "git+https://github.com/developit/simple-element-resize-detector.git" |
| 20 | + "eslintConfig": { |
| 21 | + "extends": "developit" |
25 | 22 | }, |
| 23 | + "keywords": [ |
| 24 | + "element resize", |
| 25 | + "resize observer", |
| 26 | + "ResizeObserver", |
| 27 | + "element size" |
| 28 | + ], |
| 29 | + "repository": "developit/simple-element-resize-detector", |
26 | 30 | "author": "Jason Miller <jason@developit.ca>", |
27 | 31 | "license": "MIT", |
28 | 32 | "devDependencies": { |
29 | | - "babel-core": "^6.6.4", |
30 | | - "babel-eslint": "^7.0.0", |
31 | | - "babel-preset-es2015": "^6.9.0", |
32 | | - "babel-preset-stage-0": "^6.5.0", |
33 | | - "eslint": "^3.1.0", |
34 | | - "gzip-size-cli": "^1.0.0", |
35 | | - "mkdirp": "^0.5.1", |
36 | | - "npm-run-all": "^2.3.0", |
37 | | - "pretty-bytes-cli": "^1.0.0", |
38 | | - "rollup": "^0.36.3", |
39 | | - "rollup-plugin-babel": "^2.4.0", |
40 | | - "rollup-plugin-es3": "^1.0.3", |
41 | | - "uglify-js": "^2.6.2" |
| 33 | + "eslint": "^4.19.1", |
| 34 | + "eslint-config-developit": "^1.1.1", |
| 35 | + "microbundle": "^0.6.0" |
42 | 36 | } |
43 | 37 | } |
0 commit comments