Compare commits

...

15 Commits

Author SHA1 Message Date
Cris Stringfellow ad2384e4de
Build works 2023-01-11 11:41:26 +08:00
Cris Stringfellow 8fd8676c5b
Just built 2023-01-11 11:40:02 +08:00
Cris Stringfellow 3f05da672c
Just built 2023-01-11 11:37:35 +08:00
Cris Stringfellow 896bcf576f
Build 2023-01-11 11:36:17 +08:00
Cris Stringfellow 6fb62fff31
Just built 2023-01-11 11:32:17 +08:00
Cris Stringfellow 0f0de1e115
Just built 2023-01-11 11:31:30 +08:00
Cris Stringfellow 12dcc79cf5
Just built 2023-01-11 11:30:09 +08:00
Cris Stringfellow 13a06a476c
Just built 2023-01-11 11:26:49 +08:00
Cris Stringfellow acb28eaf2a
Just built 2023-01-11 11:25:37 +08:00
Cris Stringfellow 57314bd9a2
Just built 2023-01-11 11:22:55 +08:00
Cris Stringfellow 938078d953
Just built 2023-01-11 11:20:17 +08:00
Cris Stringfellow c45d674553
Deps 2023-01-11 11:19:07 +08:00
Cris Stringfellow af5c73b5e8
deps 2023-01-11 11:17:29 +08:00
Cris Stringfellow cd2919f22b
Pkg json deps 2023-01-11 11:14:55 +08:00
Cris ee5153ab15
Merge pull request #132 from crisdosyago/dev
Dev
2022-12-10 19:30:09 +08:00
5 changed files with 7277 additions and 3 deletions

7263
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
import path from 'path';
//import commonjs from '@rollup/plugin-commonjs';
import { terser } from "rollup-plugin-terser";
import terser from "@rollup/plugin-terser";
export default {
input: path.resolve('src', 'app.js'),
@ -9,5 +9,8 @@ export default {
format: 'es',
generatedCode: 'es2015'
},
plugins: [/*commonjs(),*/ terser()]
plugins: [
//commonjs(),
terser()
]
};

View File

@ -36,10 +36,11 @@ fi
npm run bundle
echo "Bundling javascript..."
export NODE_ENV='production'
npx webpack
chmod +x ./build/22120.js
echo "Building for windows nix and macos..."
pkg --compress Brotli .
npx pkg --compress Gzip .
echo "Restoring dev (ES module) mode..."
./scripts/go_dev.sh

4
scripts/postinstall.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
echo "Post install script"
npm i -g rollup eslint

View File

@ -7,6 +7,9 @@ module.exports = {
path: path.resolve(__dirname, 'build'),
filename: "22120.js"
},
optimization: {
minimize: false
},
target: "node",
node: {
__dirname: false