diff --git a/.gitignore b/.gitignore index 075fc66..d8ed109 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ out data *.log bin +deploy/win32/build +*-v*.*.*.tgz +dist \ No newline at end of file diff --git a/deploy/config.json b/deploy/config.json new file mode 100644 index 0000000..4f25989 --- /dev/null +++ b/deploy/config.json @@ -0,0 +1 @@ +{"appName":"Hadean"} diff --git a/deploy/win32/Hadean/platforms/.gitkeep b/deploy/win32/Hadean/platforms/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/deploy/win32/Hadean/qode.json b/deploy/win32/Hadean/qode.json new file mode 100644 index 0000000..52367eb --- /dev/null +++ b/deploy/win32/Hadean/qode.json @@ -0,0 +1,3 @@ +{ + "distPath": ".\\dist" +} diff --git a/deploy/win32/Hadean/styles/.gitkeep b/deploy/win32/Hadean/styles/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index 69e9e60..f3ed91f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hadean", - "version": "1.0.0", + "version": "0.0.1", "main": "index.js", "license": "MIT", "type": "module", @@ -65,6 +65,8 @@ "tsc": "tsc", "tsc:watch": "yarn tsc --watch", "rollup": "rollup --config rollup.config.js", - "rollup:watch": "yarn rollup --watch" + "rollup:watch": "yarn rollup --watch", + "poop": "rollup --config rollup.prod.config.js && nodegui-packer --pack ./dist && \".\\deploy\\win32\\build\\Hadean\\qode.exe\"", + "build": "nodegui-packer --pack ./dist" } -} +} \ No newline at end of file diff --git a/rollup.prod.config.js b/rollup.prod.config.js new file mode 100644 index 0000000..009dfc9 --- /dev/null +++ b/rollup.prod.config.js @@ -0,0 +1,7 @@ +import configs from './rollup.config.js'; +const appBundleConfig = configs[0]; +appBundleConfig.output.file = 'dist/index.js'; +appBundleConfig.output.format = 'es'; +export default [ + appBundleConfig +]; \ No newline at end of file