update dependencies

This commit is contained in:
itanka9 2023-05-28 12:18:31 +03:00
parent 19c4725d03
commit aa62c77ccf
4 changed files with 3891 additions and 4575 deletions

8433
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@
},
"scripts": {
"dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"serve --listen 8080\"",
"build": "rollup -c && rollup -c rollup.config.min.js",
"build": "rollup -c && rollup -c rollup.config.min.mjs",
"build-docs": "jsdoc2md -f src/dat/gui/GUI.js src/dat/controllers/Controller.js src/dat/controllers/NumberController.js | replace-between --target API.md --token API",
"lint": "eslint src",
"preversion": "npm run lint",
@ -27,24 +27,25 @@
},
"homepage": "https://github.com/dataarts/dat.gui#readme",
"devDependencies": {
"@rollup/plugin-terser": "^0.4.3",
"babel-core": "^6.26.3",
"babel-plugin-external-helpers": "^6.22.0",
"babel-preset-env": "^1.7.0",
"concurrently": "^3.5.1",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint": "^8.41.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-loader": "^4.0.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-import": "^2.27.5",
"extend": "^3.0.2",
"jsdoc-to-markdown": "^5.0.3",
"replace-between": "0.0.8",
"rollup": "^0.54.1",
"rollup": "^3.23.0",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-cleanup": "^3.1.1",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-sass": "^0.6.1",
"rollup-plugin-sass": "1.12",
"rollup-plugin-uglify": "^2.0.1",
"serve": "^11.3.0"
"serve": "^14.2.0"
},
"eslintConfig": {
"extends": "airbnb-base",

View File

@ -13,8 +13,12 @@
import fs from 'fs';
import path from 'path';
import defaultConfig from './rollup.config';
import uglify from 'rollup-plugin-uglify';
import defaultConfig from './rollup.config.mjs';
import terser from '@rollup/plugin-terser';
import {fileURLToPath} from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const banner = fs.readFileSync(path.join(__dirname, 'licenseBanner.txt'));
@ -27,12 +31,12 @@ export default Object.assign({}, defaultConfig, {
name: 'dat',
banner: banner
},
plugins: [...defaultConfig.plugins, uglify({
plugins: [...defaultConfig.plugins, terser({
output: {
// Preserve license commenting in minified build.
comments: function(node, comment) {
return comment.type === 'comment2';
}
}
}
})]
});
});

View File

@ -17,6 +17,10 @@ import resolve from 'rollup-plugin-node-resolve';
import cleanup from 'rollup-plugin-cleanup';
import babel from 'rollup-plugin-babel';
import sass from 'rollup-plugin-sass';
import {fileURLToPath} from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const banner = fs.readFileSync(path.join(__dirname, 'licenseBanner.txt'));