feat(rollup): Initial the configuration file
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
443af8609f
commit
34d55a2162
2
.gitignore
vendored
2
.gitignore
vendored
@ -198,4 +198,4 @@ $RECYCLE.BIN/
|
|||||||
### Project ###
|
### Project ###
|
||||||
|
|
||||||
# Resulting code
|
# Resulting code
|
||||||
/*.js
|
/javascript.js
|
||||||
|
28
rollup.config.js
Normal file
28
rollup.config.js
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { terser } from "rollup-plugin-terser";
|
||||||
|
import json from "@rollup/plugin-json";
|
||||||
|
import typescript from "@rollup/plugin-typescript";
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
input: {
|
||||||
|
javascript: "src/javascript.ts",
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
dir: ".",
|
||||||
|
entryFileNames: "[name].js",
|
||||||
|
format: "cjs",
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
json({
|
||||||
|
compact: true,
|
||||||
|
namedExports: false,
|
||||||
|
}),
|
||||||
|
typescript(),
|
||||||
|
terser({
|
||||||
|
compress: true,
|
||||||
|
output: {
|
||||||
|
comments: false,
|
||||||
|
},
|
||||||
|
sourcemap: false,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
};
|
@ -1,6 +1,6 @@
|
|||||||
import rules from "./rules/eslint.json";
|
import eslint from "./rules/eslint.json";
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
"extends": ["eslint:all"],
|
"extends": ["eslint:all"],
|
||||||
"rules": { ...rules }
|
"rules": { ...eslint },
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user