@neutralinojs/neu
Advanced tools
Comparing version 7.1.0 to 8.0.0
@@ -9,2 +9,11 @@ # Changelog | ||
### Core: Bunlder | ||
- Copy extensions to the app bundle. | ||
- Rename `res.neu` to `resources.neu`. | ||
### Core: Runner | ||
- Use websocket connection to auto reload app. | ||
## v7.1.0 | ||
### Core: Downloader | ||
@@ -11,0 +20,0 @@ - Use server/client versions from config |
{ | ||
"name": "@neutralinojs/neu", | ||
"version": "7.1.0", | ||
"version": "8.0.0", | ||
"description": "neu cli for Neutralinojs", | ||
@@ -34,9 +34,9 @@ "main": "./bin/neu.js", | ||
"configstore": "^5.0.1", | ||
"cors": "^2.8.5", | ||
"edit-json-file": "^1.6.2", | ||
"express": "^4.17.1", | ||
"figlet": "^1.5.0", | ||
"follow-redirects": "^1.13.1", | ||
"fs-extra": "^9.0.1", | ||
"unzipper": "^0.10.11" | ||
"unzipper": "^0.10.11", | ||
"uuid": "^8.3.2", | ||
"websocket": "^1.0.34" | ||
}, | ||
@@ -43,0 +43,0 @@ "bin": { |
const chalk = require('chalk'); | ||
const logwatcher = require('../modules/logwatcher'); | ||
const filewatcher = require('../modules/filewatcher'); | ||
const websocket = require('../modules/websocket'); | ||
const runner = require('../modules/runner'); | ||
@@ -16,6 +17,6 @@ const commons = require('../commons'); | ||
let argsOpt = ""; | ||
if(!command.disableAutoReload) | ||
argsOpt += "--debug-mode"; | ||
argsOpt += "--neu-dev-auto-reload"; | ||
if(command.mode) | ||
@@ -28,2 +29,3 @@ argsOpt += ` --mode=${command.mode}`; | ||
logwatcher.start(); | ||
websocket.start(); | ||
try { | ||
@@ -37,4 +39,5 @@ await runner.runApp({argsOpt, arch: command.arch}); | ||
logwatcher.stop(); | ||
websocket.stop(); | ||
}); | ||
} | ||
@@ -20,8 +20,7 @@ module.exports = { | ||
clientLibrary: "neutralino.js", | ||
resourceFile: "res.neu", | ||
resourceFile: "resources.neu", | ||
authFile: ".tmp/auth_info.json", | ||
binaries: { | ||
linux: { | ||
x64: 'neutralino-linux_x64', | ||
ia32: 'neutralino-linux_ia32', | ||
arm: 'neutralino-linux_armhf' | ||
}, | ||
@@ -38,6 +37,3 @@ darwin: { | ||
} | ||
}, | ||
settings: { | ||
devServerPort: 5050 | ||
} | ||
}; |
@@ -12,10 +12,18 @@ const fse = require('fs-extra'); | ||
const resourcesDir = configObj.cli.resourcesPath.replace(/^\//, ""); | ||
const extensionsDir = configObj.cli.extensionsPath.replace(/^\//, ""); | ||
const clientLibrary = configObj.cli.clientLibrary.replace(/^\//, ""); | ||
const icon = configObj.modes.window.icon.replace(/^\//, ""); | ||
let binaryName = configObj.cli.binaryName; | ||
const binaryName = configObj.cli.binaryName; | ||
fs.mkdirSync(`temp`, { recursive: true }); | ||
await fse.copy(`./${resourcesDir}`, `temp/${resourcesDir}`, {overwrite: true}); | ||
if(fs.existsSync(extensionsDir)) { | ||
await fse.copy(`./${extensionsDir}`, `dist/${binaryName}/${extensionsDir}`, {overwrite: true}); | ||
} | ||
await fse.copy(`${constants.files.configFile}`, `temp/${constants.files.configFile}`, {overwrite: true}); | ||
await fse.copy(`./${clientLibrary}`, `temp/${clientLibrary}`, {overwrite: true}); | ||
await fse.copy(`./${icon}`, `temp/${icon}`, {overwrite: true}); | ||
await asar.createPackage('temp', `dist/${binaryName}/${constants.files.resourceFile}`); | ||
@@ -42,3 +50,3 @@ } | ||
} | ||
fse.copySync(`bin/${constants.files.dependencies.windows_webview2loader_x64}`, | ||
@@ -45,0 +53,0 @@ `dist/${binaryName}/${constants.files.dependencies.windows_webview2loader_x64}`); |
const fs = require('fs'); | ||
const chokidar = require('chokidar'); | ||
const devServer = require('./devserver'); | ||
const websocket = require('./websocket'); | ||
const bundler = require('../modules/bundler'); | ||
@@ -11,3 +11,2 @@ const APP_PATH = '.'; | ||
startFileWatcher(); | ||
devServer.start(); | ||
} | ||
@@ -18,3 +17,2 @@ | ||
fileWatcher.close(); | ||
devServer.stop(); | ||
} | ||
@@ -33,6 +31,5 @@ | ||
return; | ||
devServer.setData({ | ||
needsReload: true | ||
websocket.dispatch('neuDev_reloadApp'); | ||
}); | ||
}); | ||
} |
@@ -35,3 +35,3 @@ const { exec } = require('child_process'); | ||
let binaryPath = `bin${path.sep}${binaryName}`; | ||
let args = " --load-dir-res --path=."; | ||
let args = " --load-dir-res --path=. --export-auth-info"; | ||
if(options.argsOpt) | ||
@@ -42,3 +42,3 @@ args += " " + options.argsOpt; | ||
fs.chmodSync(binaryPath, EXEC_PERMISSION); | ||
console.log(`Starting process: ${binaryName} ${args}`); | ||
@@ -45,0 +45,0 @@ exec(binaryPath + args, (err, stdout, stderr) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29760
658
11
+ Addeduuid@^8.3.2
+ Addedwebsocket@^1.0.34
+ Addedbufferutil@4.0.8(transitive)
+ Addedd@1.0.2(transitive)
+ Addedes5-ext@0.10.64(transitive)
+ Addedes6-iterator@2.0.3(transitive)
+ Addedes6-symbol@3.1.4(transitive)
+ Addedesniff@2.0.1(transitive)
+ Addedevent-emitter@0.3.5(transitive)
+ Addedext@1.7.0(transitive)
+ Addednext-tick@1.1.0(transitive)
+ Addednode-gyp-build@4.8.2(transitive)
+ Addedtype@2.7.3(transitive)
+ Addedutf-8-validate@5.0.10(transitive)
+ Addeduuid@8.3.2(transitive)
+ Addedwebsocket@1.0.35(transitive)
+ Addedyaeti@0.0.6(transitive)
- Removedcors@^2.8.5
- Removedexpress@^4.17.1
- Removedaccepts@1.3.8(transitive)
- Removedarray-flatten@1.1.1(transitive)
- Removedbody-parser@1.20.3(transitive)
- Removedbytes@3.1.2(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedcontent-disposition@0.5.4(transitive)
- Removedcontent-type@1.0.5(transitive)
- Removedcookie@0.6.0(transitive)
- Removedcookie-signature@1.0.6(transitive)
- Removedcors@2.8.5(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddepd@2.0.0(transitive)
- Removeddestroy@1.2.0(transitive)
- Removedee-first@1.1.1(transitive)
- Removedencodeurl@1.0.22.0.0(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedescape-html@1.0.3(transitive)
- Removedetag@1.8.1(transitive)
- Removedexpress@4.21.0(transitive)
- Removedfinalhandler@1.3.1(transitive)
- Removedforwarded@0.2.0(transitive)
- Removedfresh@0.5.2(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhttp-errors@2.0.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedipaddr.js@1.9.1(transitive)
- Removedmedia-typer@0.3.0(transitive)
- Removedmerge-descriptors@1.0.3(transitive)
- Removedmethods@1.1.2(transitive)
- Removedmime@1.6.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedms@2.1.3(transitive)
- Removednegotiator@0.6.3(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedobject-inspect@1.13.2(transitive)
- Removedon-finished@2.4.1(transitive)
- Removedparseurl@1.3.3(transitive)
- Removedpath-to-regexp@0.1.10(transitive)
- Removedproxy-addr@2.0.7(transitive)
- Removedqs@6.13.0(transitive)
- Removedrange-parser@1.2.1(transitive)
- Removedraw-body@2.5.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsend@0.19.0(transitive)
- Removedserve-static@1.16.2(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedsetprototypeof@1.2.0(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedstatuses@2.0.1(transitive)
- Removedtoidentifier@1.0.1(transitive)
- Removedtype-is@1.6.18(transitive)
- Removedunpipe@1.0.0(transitive)
- Removedutils-merge@1.0.1(transitive)
- Removedvary@1.1.2(transitive)