build: migrate build system to rollup & rm app/ from repository
This commit is contained in:
parent
291b1a0752
commit
bdfade96a7
65 changed files with 327 additions and 362 deletions
33
package.json
33
package.json
|
|
@ -21,17 +21,18 @@
|
|||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"@babel/core": "7.18.0",
|
||||
"@babel/eslint-parser": "7.17.0",
|
||||
"@babel/plugin-proposal-object-rest-spread": "7.18.0",
|
||||
"@babel/polyfill": "7.12.1",
|
||||
"@babel/preset-env": "7.18.0",
|
||||
"@electron/remote": "2.0.8",
|
||||
"@rollup/plugin-babel": "^6.0.4",
|
||||
"@rollup/plugin-commonjs": "^28.0.6",
|
||||
"@rollup/plugin-json": "^6.1.0",
|
||||
"@rollup/plugin-node-resolve": "^16.0.1",
|
||||
"@rollup/plugin-terser": "^0.4.4",
|
||||
"ace-builds": "1.39.0",
|
||||
"ansi-html": "0.0.9",
|
||||
"babelify": "10.0.0",
|
||||
"balanced-match": "2.0.0",
|
||||
"bonjour": "github:jean-emmanuel/bonjour",
|
||||
"browserify": "17.0.0",
|
||||
"chokidar": "3.5.3",
|
||||
"chroma-js": "2.4.2",
|
||||
"core-js": "3.22.5",
|
||||
|
|
@ -65,6 +66,10 @@
|
|||
"python-shell": "3.0.1",
|
||||
"qrcode": "1.5.1",
|
||||
"replacestream": "4.0.3",
|
||||
"rollup": "4.50.1",
|
||||
"rollup-plugin-copy": "3.5.0",
|
||||
"rollup-plugin-license": "^3.6.0",
|
||||
"rollup-plugin-node-externals": "^8.1.1",
|
||||
"sanitize-html": "1.27.5",
|
||||
"sass": "1.89.2",
|
||||
"scope-css": "1.2.1",
|
||||
|
|
@ -74,9 +79,6 @@
|
|||
"sortablejs": "1.15.0",
|
||||
"source-map-support": "0.5.21",
|
||||
"stacktrace-js": "2.0.2",
|
||||
"through": "2.3.8",
|
||||
"uglifyify": "5.0.2",
|
||||
"webworkify": "1.5.0",
|
||||
"ws": "8.6.0",
|
||||
"yargs": "17.5.1"
|
||||
},
|
||||
|
|
@ -88,21 +90,20 @@
|
|||
"scripts": {
|
||||
"postinstall": "echo '\\033[36m=> Dependencies installed successfully. Run \"npm run build\" to build the assets.\\033[0m\n'",
|
||||
"start": "electron app/",
|
||||
"build": "npm run build-css && npm run build-js && node scripts/copy-assets.js && echo '\\033[36m=> JS and CSS assets built successfully. Run \"npm run package\" to build an executable or \"npm start\" to run the app.\\033[0m\n'",
|
||||
"build": "npm run build-css && npm run build-js && echo '\\033[36m=> JS and CSS assets built successfully. Run \"npm run package\" to build an executable or \"npm start\" to run the app.\\033[0m\n'",
|
||||
"package": "node scripts/package.js",
|
||||
"package-node": "node scripts/package-node.js",
|
||||
"deb64": "electron-installer-debian --src dist/open-stage-control-linux-x64/ --arch amd64 --dest dist/open-stage-control-linux-x64/ --icon resources/images/logo.png",
|
||||
"rpm64": "electron-installer-redhat --src dist/open-stage-control-linux-x64/ --arch x86_64 --dest dist/open-stage-control-linux-x64/ --icon resources/images/logo.png",
|
||||
"build-css": "node scripts/build-css.js",
|
||||
"build-js": "npm run build-launcher-js && npm run build-client-js && npm run build-server-js",
|
||||
"build-client-js": "node scripts/build-client.js",
|
||||
"build-launcher-js": "node scripts/build-launcher.js",
|
||||
"build-server-js": "node scripts/build-server.js",
|
||||
"watch-client": "npm run build-client-js -- --watch",
|
||||
"watch-browser": "npm run build-client-js -- --watch",
|
||||
"watch-css": "nodemon --watch src/scss -e scss -x \"npm run build-css -- --reload\"",
|
||||
"watch-server": "nodemon --watch src/server/ -e js -x \"npm run build-server-js\"",
|
||||
"watch-launcher": "nodemon --watch src/launcher/ -e js -x \"npm run build-launcher-js\"",
|
||||
"build-js": "npm run build-launcher-js && npm run build-client-js && npm run build-server-js",
|
||||
"build-client-js": "rollup -c scripts/client.rollup.config.js",
|
||||
"watch-client": "npm run build-client-js -- --watch",
|
||||
"build-server-js": "rollup -c scripts/server.rollup.config.js",
|
||||
"watch-server": "npm run build-server-js -- --watch",
|
||||
"build-launcher-js": "rollup -c scripts/launcher.rollup.config.js",
|
||||
"watch-launcher": "npm run build-launcherr-js -- --watch",
|
||||
"build-docs": "node scripts/build-widgets-reference.js > resources/docs/docs/widgets/properties-reference.md && cd resources && python3 -m mkdocs build",
|
||||
"test": "eslint src && npm run build && node tests/test.js"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue