Skip to content
Snippets Groups Projects
Commit 6dced46c authored by David Hoksza's avatar David Hoksza
Browse files

support of major browsers since 2015

parent 4e40b4ca
No related branches found
No related tags found
No related merge requests found
const presets = [
[
"@babel/env",
{
targets: {
"browsers": ["chrome >= 40 or firefox >= 35 or safari > 9"]
},
useBuiltIns: "usage",
corejs: 3,
},
],
];
module.exports = { presets };
\ No newline at end of file
......@@ -4,21 +4,23 @@
"description": "",
"main": "index.js",
"scripts": {
"babel": "babel src -d __tmp_minerva_plugin -D ",
"clean-babel": "rimraf __tmp_minerva_plugin",
"build-css": "node-sass --include-path src/css src/css/styles.scss src/css/styles.css",
"build": "mkdirp dist && npm run build-css && browserify -t [ babelify --presets es2015 ] -t browserify-css src/js/index.js | uglifyjs --compress --mangle > dist/plugin.js ",
"build-debug": "mkdirp dist && npm run build-css && browserify -t [ babelify --presets es2015 ] -t browserify-css src/js/index.js> dist/plugin.js ",
"watch-js": "mkdirp dist && npm run build-css && watchify -v -t [ babelify --presets es2015 ] -t browserify-css src/js/index.js -o dist/plugin.js",
"clean": "rimraf dist"
"build": "mkdirp dist && npm run build-css && npm run babel && browserify -t browserify-css __tmp_minerva_plugin/js/index.js | uglifyjs --compress --mangle > dist/plugin.js && npm run clean-babel",
"build-debug": "mkdirp dist && npm run build-css && npm run babel && browserify -t browserify-css __tmp_minerva_plugin/js/index.js > dist/plugin.js && npm run clean-babel",
"clean": "rimraf dist && npm run clean-babel"
},
"author": "David Hoksza",
"license": "MIT",
"devDependencies": {
"babel-core": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babelify": "^8.0.0",
"@babel/cli": "^7.6.2",
"@babel/core": "^7.6.2",
"@babel/preset-env": "^7.6.2",
"bower": "^1.5.2",
"browserify": "^14.5.0",
"browserify-css": "^0.13.1",
"core-js": "^3.2.1",
"mkdirp": "^0.5.1",
"node-sass": "^4.6.1",
"rimraf": "latest",
......@@ -26,6 +28,7 @@
"watchify": "^3.9.0"
},
"dependencies": {
"@babel/polyfill": "^7.6.0",
"bootstrap": "^4.3.1",
"bootstrap-table": "1.14.2",
"bootstrap-treeview": "github:diegokogan/bootstrap-treeview",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment