Commit e8d54d18 authored by David Hoksza's avatar David Hoksza
Browse files

support of major browsers since 2015; dependencies update

parent b4c2a093
Pipeline #14743 passed with stages
in 1 minute and 47 seconds
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,28 +4,31 @@ ...@@ -4,28 +4,31 @@
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "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-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": "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 && browserify -t [ babelify --presets es2015 ] -t browserify-css src/js/index.js> dist/plugin.js ", "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",
"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 && npm run clean-babel"
"clean": "rimraf dist"
}, },
"author": "David Hoksza", "author": "David Hoksza",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"babel-core": "^6.26.0", "@babel/cli": "^7.6.2",
"babel-preset-es2015": "^6.24.1", "@babel/core": "^7.6.2",
"babelify": "^8.0.0", "@babel/preset-env": "^7.6.2",
"browserify": "^14.5.0", "browserify": "^14.5.0",
"browserify-css": "^0.13.1", "browserify-css": "^0.15.0",
"core-js": "^3.2.1",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
"node-sass": "^4.6.1", "node-sass": "^4.6.1",
"rimraf": "latest", "rimraf": "latest",
"uglify-js": "^3.1.9", "uglify-js": "^3.1.9",
"watchify": "^3.9.0" "watchify": "^3.11.1"
}, },
"dependencies": { "dependencies": {
"@babel/polyfill": "^7.6.0",
"bootstrap-table": "^1.12.1", "bootstrap-table": "^1.12.1",
"jquery": "^3.3.1" "jquery": "^3.4.1"
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment