Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fc6156a486 |
3
.npmrc
3
.npmrc
@@ -1 +1,2 @@
|
||||
@eveshipfit:registry=https://npm.pkg.github.com
|
||||
@eveshipfit:registry=https://git.site.quack-lab.dev/api/packages/dave/npm/
|
||||
//git.site.quack-lab.dev/api/packages/dave/npm/:_authToken=${NPM_TOKEN}
|
||||
|
||||
2
build.rs
2
build.rs
@@ -2,7 +2,7 @@ use std::io::Result;
|
||||
|
||||
#[cfg(feature = "rust")]
|
||||
fn main() -> Result<()> {
|
||||
prost_build::compile_protos(&["esf.proto"], &["node_modules/@eveshipfit/data/dist/"])?;
|
||||
prost_build::compile_protos(&["node_modules/@eveshipfit/data/esf.proto"], &["node_modules/@eveshipfit/data/"])?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
59
build.sh
Normal file
59
build.sh
Normal file
@@ -0,0 +1,59 @@
|
||||
#!/bin/bash
|
||||
|
||||
# ============================================================================
|
||||
# CONFIGURATION - Modify these for your project
|
||||
# ============================================================================
|
||||
|
||||
# Docker registry and image name
|
||||
DOCKER_REPO="docker.site.quack-lab.dev"
|
||||
IMAGE_NAME="eveshipfit-dogma-engine"
|
||||
|
||||
# ============================================================================
|
||||
# INSTALL DEPENDENCIES
|
||||
# ============================================================================
|
||||
|
||||
echo "Installing Node.js dependencies..."
|
||||
bun install --frozen-lockfile
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error installing Node.js dependencies"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ============================================================================
|
||||
# BUILD RUST CRATE
|
||||
# ============================================================================
|
||||
|
||||
echo "Building Rust crate..."
|
||||
cargo build --release
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error building Rust crate"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ============================================================================
|
||||
# BUILD WASM
|
||||
# ============================================================================
|
||||
|
||||
echo "Building WASM..."
|
||||
wasm-pack build --target web --out-dir pkg
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error building WASM"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ============================================================================
|
||||
# PUBLISH PACKAGE
|
||||
# ============================================================================
|
||||
|
||||
echo "Publishing package to registry..."
|
||||
npm publish --registry https://git.site.quack-lab.dev/api/packages/dave/npm/
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error publishing package"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Dogma engine package published successfully!"
|
||||
24
package.json
24
package.json
@@ -1,5 +1,29 @@
|
||||
{
|
||||
"name": "@eveshipfit/dogma-engine",
|
||||
"publishConfig": {
|
||||
"registry": "https://git.site.quack-lab.dev/api/packages/dave/npm/"
|
||||
},
|
||||
"version": "7.0.0",
|
||||
"description": "Library to calculate statistics for EVE Online ship fits",
|
||||
"main": "pkg/esf_dogma_engine.js",
|
||||
"module": "pkg/esf_dogma_engine.js",
|
||||
"types": "pkg/esf_dogma_engine.d.ts",
|
||||
"files": [
|
||||
"pkg"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "wasm-pack build --target web --out-dir pkg"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.site.quack-lab.dev/dave/eveship.fit.dogma.engine"
|
||||
},
|
||||
"author": "EVEShipFit Team <info@eveship.fit>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@eveshipfit/data": "^10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"wasm-pack": "^0.12.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user