ngd build instructions

master
Niko PLP 3 days ago
parent e36610c0b1
commit 70391e93e0
  1. 1
      .gitignore
  2. 11
      DEV.md
  3. 17
      ng-broker/src/server_ws.rs
  4. 4
      ngd/Cargo.toml
  5. 40
      pnpm-lock.yaml

1
.gitignore vendored

@ -15,3 +15,4 @@ node_modules
*/ng-example/*
.vscode/settings.json
.env.local
ng-broker/static

@ -33,6 +33,7 @@ cargo run-script app
cd ../..
pnpm -C ./ng-app install
pnpm -C ./ng-app webfilebuild
pnpm -C ./helpers/app-auth install
pnpm -C ./helpers/app-auth build
```
@ -181,10 +182,14 @@ cargo install cargo-run-script
npm install -g pnpm
cd ng-sdk-js
cargo run-script app
cd ../ng-app
pnpm install
pnpm webfilebuild
cd ..
pnpm -C ./ng-app install
pnpm -C ./ng-app webfilebuild
pnpm -C ./helpers/app-auth install
pnpm -C ./helpers/app-auth build
mkdir ng-broker/static
cp -r ./ng-app/dist-file ./ng-broker/static/app
cp -r ./helpers/app-auth/dist ./ng-broker/static/app-auth
```
then build the ngd daemon

@ -192,12 +192,14 @@ fn prepare_urls_from_private_addrs(addrs: &Vec<BindAddress>, port: u16) -> Vec<S
res
}
#[cfg(debug_assertions)]
#[derive(RustEmbed)]
#[folder = "../ng-app/dist-file/"]
#[include = "*.sha256"]
#[include = "*.gzip"]
struct App;
#[cfg(debug_assertions)]
#[derive(RustEmbed)]
#[folder = "../helpers/app-auth/dist/"]
#[include = "*.sha256"]
@ -205,6 +207,21 @@ struct App;
struct AppAuth;
#[cfg(not(debug_assertions))]
#[derive(RustEmbed)]
#[folder = "./static/app/"]
#[include = "*.sha256"]
#[include = "*.gzip"]
struct App;
#[cfg(not(debug_assertions))]
#[derive(RustEmbed)]
#[folder = "./static/app-auth/"]
#[include = "*.sha256"]
#[include = "*.gzip"]
struct AppAuth;
#[derive(RustEmbed)]
#[folder = "src/public/"]
struct AppPublic;

@ -9,7 +9,9 @@ license.workspace = true
authors.workspace = true
repository.workspace = true
homepage.workspace = true
keywords.workspace = true
keywords = [
"crdt","decentralized","broker","local-first","p2p"
]
documentation.workspace = true
rust-version.workspace = true

@ -370,6 +370,46 @@ importers:
specifier: ^4.5.3
version: 4.5.3(@types/node@18.19.76)(rollup@4.39.0)(typescript@5.7.3)(vite@6.2.6(@types/node@18.19.76)(jiti@1.21.7)(sass@1.85.0)(yaml@2.7.0))
helpers/ngapp/web:
dependencies:
flowbite:
specifier: ^1.6.5
version: 1.8.1
flowbite-svelte:
specifier: ^0.37.1
version: 0.37.5(svelte@3.59.2)
svelte-spa-router:
specifier: ^3.3.0
version: 3.3.0
devDependencies:
'@sveltejs/vite-plugin-svelte':
specifier: ^2.0.4
version: 2.5.3(svelte@3.59.2)(vite@4.5.9(@types/node@18.19.76)(sass@1.85.0))
autoprefixer:
specifier: ^10.4.14
version: 10.4.20(postcss@8.5.3)
postcss:
specifier: ^8.4.23
version: 8.5.3
postcss-load-config:
specifier: ^4.0.1
version: 4.0.2(postcss@8.5.3)
svelte:
specifier: ^3.58.0
version: 3.59.2
svelte-preprocess:
specifier: ^5.0.3
version: 5.1.4(postcss-load-config@4.0.2(postcss@8.5.3))(postcss@8.5.3)(sass@1.85.0)(svelte@3.59.2)(typescript@5.8.2)
tailwindcss:
specifier: ^3.3.1
version: 3.4.17
vite:
specifier: ^4.3.9
version: 4.5.9(@types/node@18.19.76)(sass@1.85.0)
vite-plugin-svelte-svg:
specifier: ^2.2.1
version: 2.2.1(svelte@3.59.2)(vite@4.5.9(@types/node@18.19.76)(sass@1.85.0))
helpers/ngnet/web:
dependencies:
flowbite:

Loading…
Cancel
Save