Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✂️ remove internal calculateNFP to external module #14

Merged
merged 2 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions binding.gyp

This file was deleted.

2 changes: 1 addition & 1 deletion main/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ window.db = {
window.onload = function () {
const { ipcRenderer } = require('electron');
window.ipcRenderer = ipcRenderer;
window.addon = require('../minkowski/Release/addon');
window.addon = require('@deepnest/calculate-nfp');

window.path = require('path')
window.url = require('url')
Expand Down
119 changes: 40 additions & 79 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@
"name": "deepnest",
"version": "1.2.2",
"description": "Deep nesting for Laser and CNC",
"private": true,
"main": "main.js",
"types": "index.d.ts",
"license": "MIT",
"funding":[
{
"type": "patreon",
"url": "https://patreon.com/deepnest_next?utm_medium=clipboard_copy&utm_source=copyLink&utm_campaign=creatorshare_fan&utm_content=join_link"
}
],
"scripts": {
"start": "electron .",
"test": "playwright test",
"configure": "node-gyp configure --release",
"build-all": "node-gyp rebuild && mkdir minkowski >nul 2>&1|echo . >nul && npm run build",
"build": "mkdir minkowski >nul 2>&1|echo . >nul && mkdir minkowski/Release >nul 2>&1|echo . >nul && electron-rebuild && npm run copy",
"build": "electron-rebuild",
"clean": "rmdir /s /q build dist >nul 2>&1|echo . >nul",
"clean-all": "rmdir /s /q build dist node_modules minkowski bin >nul 2>&1|echo . >nul",
"clean-all": "rmdir /s /q build dist node_modules bin >nul 2>&1|echo . >nul",
"dist": "npx @electron/packager . deepnest-v$npm_package_version --overwrite",
"dist-all": "npm run clean-all && npm install && npm run build-all && npm run dist",
"copy": "shx cp -r ./build/Release ./minkowski"
"dist-all": "npm run clean-all && npm install && npm run build && npm run dist"
},
"repository": "https://github.com/deepnest-next/deepnest",
"keywords": [
Expand All @@ -24,21 +28,16 @@
"CNC",
"Laser"
],
"author": {
"name": "Jack Qiao",
"email": "[email protected]"
},
"devDependencies": {
"@electron/packager": "^18.3.6",
"@electron/rebuild": "^3.2.9",
"@playwright/test": "^1.49.1",
"@types/node": "^22.10.1",
"electron": "32.2.7",
"nan": "^2.20.0",
"shx": "^0.3.4"
"electron": "32.2.7"
},
"dependencies": {
"@electron/remote": "^2.1.2",
"@deepnest/calculate-nfp": "*",
"axios": "^1.7.9",
"form-data": "^4.0.1",
"graceful-fs": "^4.2.11"
Expand All @@ -47,7 +46,6 @@
"main.js",
"main/**/*",
"index.d.ts",
"minkowski/addon.node",
"node_modules",
"package.json",
"icon.icns",
Expand All @@ -70,6 +68,10 @@
{
"name": "Josef Fröhle",
"email": "[email protected]"
},
{
"name": "Jack Qiao",
"email": "[email protected]"
}
]
}
19 changes: 0 additions & 19 deletions src/addon.cc

This file was deleted.

Loading
Loading