Skip to content

Commit

Permalink
Update FE build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Jun 26, 2022
1 parent 5cb59da commit 6209d70
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 50 deletions.
16 changes: 0 additions & 16 deletions .eslintrc.js

This file was deleted.

16 changes: 16 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"import"
],
"extends": [
"@nepada"
]
}
12 changes: 0 additions & 12 deletions babel.config.js

This file was deleted.

12 changes: 12 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
}
3 changes: 2 additions & 1 deletion build/rollup.config.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import nodeBuiltins from 'rollup-plugin-node-builtins';
import nodeGlobals from 'rollup-plugin-node-globals';
import nodeResolve from '@rollup/plugin-node-resolve';
import {nodeResolve} from '@rollup/plugin-node-resolve';


export default {
Expand All @@ -15,6 +15,7 @@ export default {
output: {
dir: 'dist/js/commonjs',
format: 'cjs',
exports: 'auto',
sourcemap: true,
},
preserveModules: true,
Expand Down
10 changes: 6 additions & 4 deletions build/rollup.config.umd.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import babel from '@rollup/plugin-babel';
import {babel} from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import nodeBuiltins from 'rollup-plugin-node-builtins';
import nodeGlobals from 'rollup-plugin-node-globals';
import nodeResolve from '@rollup/plugin-node-resolve';
import {nodeResolve} from '@rollup/plugin-node-resolve';
import {terser} from 'rollup-plugin-terser';


Expand All @@ -18,6 +18,7 @@ export default [
output: {
file: 'dist/js/file-upload-control.js',
format: 'umd',
exports: 'auto',
sourcemap: true,
globals: {
'jquery': 'jQuery',
Expand All @@ -32,8 +33,8 @@ export default [
nodeGlobals(),
babel({
babelrc: false,
presets: [['@babel/preset-env', {targets: '> 1%, cover 95%, not dead'}]],
babelHelpers: 'bundled',
presets: [['@babel/preset-env', {targets: '> 1%, cover 95%, not dead'}]],
}),
],
},
Expand All @@ -47,6 +48,7 @@ export default [
output: {
file: 'dist/js/file-upload-control.min.js',
format: 'umd',
exports: 'auto',
sourcemap: true,
globals: {
'jquery': 'jQuery',
Expand All @@ -61,8 +63,8 @@ export default [
nodeGlobals(),
babel({
babelrc: false,
presets: [['@babel/preset-env', {targets: '> 1%, cover 95%, not dead'}]],
babelHelpers: 'bundled',
presets: [['@babel/preset-env', {targets: '> 1%, cover 95%, not dead'}]],
}),
terser(),
],
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,26 @@
"nette-forms": "^3.1.0"
},
"devDependencies": {
"@babel/cli": "^7.12.7",
"@babel/core": "^7.12.7",
"@babel/preset-env": "^7.12.7",
"@nepada/eslint-config": "^1.4.0",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^16.0.0",
"@babel/cli": "^7.17.10",
"@babel/core": "^7.18.5",
"@babel/preset-env": "^7.18.2",
"@nepada/eslint-config": "^1.5.0",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"autoprefixer": "^10.0.2",
"@rollup/plugin-node-resolve": "^13.3.0",
"autoprefixer": "^10.4.7",
"blueimp-file-upload": "^10.16.0",
"bootstrap": "^4.4.1",
"clean-css-cli": "^4.3.0",
"eslint": "^6.8.0",
"eslint-plugin-import": "^2.20.2",
"bootstrap": "^4.6.1",
"clean-css-cli": "^5.6.0",
"eslint": "^8.18.0",
"eslint-plugin-import": "^2.26.0",
"jquery": ">=1.12",
"nette-forms": "^3.1.0",
"node-sass": "^5.0.0",
"postcss": "^8.1.9",
"postcss-cli": "^8.3.0",
"rollup": "^2.33.3",
"node-sass": "^7.0.1",
"postcss": "^8.4.14",
"postcss-cli": "^9.1.0",
"rollup": "^2.75.7",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-terser": "^7.0.2"
Expand All @@ -61,7 +61,7 @@
"clean": "rm -rf ./dist/*",
"css:compile": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 src/assets/scss/ -o dist/css/",
"css:prefix": "postcss --config build/postcss.config.js --replace \"dist/css/*.css\" \"!dist/css/*.min.css\"",
"css:minify": "cleancss --level 1 --format breakWith=lf --source-map --source-map-inline-sources --output dist/css/file-upload-control.min.css dist/css/file-upload-control.css",
"css:minify": "cd dist/css && ../../node_modules/.bin/cleancss -O1 --format breakWith=lf --source-map --source-map-inline-sources --output file-upload-control.min.css file-upload-control.css",
"build:css": "npm run css:compile && npm run css:prefix && npm run css:minify",
"build:cjs": "rollup --config build/rollup.config.cjs.js",
"build:umd": "rollup --config build/rollup.config.umd.js",
Expand Down

0 comments on commit 6209d70

Please sign in to comment.