Skip to content

Commit

Permalink
use babel.js and cleancss to minify the code. Also allows for modern …
Browse files Browse the repository at this point in the history
…js code from now.
  • Loading branch information
fchabouis committed Sep 26, 2018
1 parent 2f8c41f commit fa7cd28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["env", "minify"]
}
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "standard"
"test": "standard",
"babel": "babel src -d dist",
"minifyCSS": "cleancss -o dist/leaflet-geocoder-ban.min.css src/leaflet-geocoder-ban.css",
"build": "npm run babel && npm run minifyCSS"
},
"repository": {
"type": "git",
Expand All @@ -21,6 +24,10 @@
"leaflet": "^1.0.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-minify": "^0.5.0",
"clean-css-cli": "^4.2.1",
"standard": "^10.0.3"
}
}

0 comments on commit fa7cd28

Please sign in to comment.