Skip to content

Commit

Permalink
Replaced custom build config with microbundle (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinvdvleuten authored Dec 22, 2017
1 parent ed5db4d commit 421dc49
Show file tree
Hide file tree
Showing 2 changed files with 404 additions and 29 deletions.
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"license": "MIT",
"author": "Robin van der Vleuten <[email protected]>",
"main": "dist/shvl.js",
"browser": "dist/shvl.umd.js",
"jsnext:main": "index.js",
"module": "dist/shvl.es.js",
"jsnext:main": "dist/shvl.es.js",
"umd:main": "dist/shvl.umd.js",
"keywords": [
"path",
"dot notation",
Expand All @@ -17,9 +18,7 @@
"index.js"
],
"scripts": {
"build": "mkdir -p dist && npm run -s build:cjs && npm run -s build:umd",
"build:cjs": "rollup -i $npm_package_jsnext_main -f cjs --no-strict | uglifyjs -cm -o $npm_package_main",
"build:umd": "rollup -i $npm_package_jsnext_main -f umd -n $npm_package_name --no-strict | uglifyjs -cm -o $npm_package_browser",
"build": "microbundle",
"prepublish": "npm run build",
"test": "npm-run-all --parallel test:**",
"test:jest": "jest --env=jsdom",
Expand All @@ -43,8 +42,7 @@
"bundlesize": "^0.15.3",
"jest": "^20.0.1",
"jest-in-case": "^1.0.2",
"npm-run-all": "^4.1.1",
"rollup": "^0.41.6",
"uglify-js": "^3.0.3"
"microbundle": "^0.2.4",
"npm-run-all": "^4.1.1"
}
}
Loading

0 comments on commit 421dc49

Please sign in to comment.