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

feature/transpile desktop cli #322

Merged
merged 2 commits into from
Oct 5, 2022
Merged

Conversation

whitphx
Copy link
Owner

@whitphx whitphx commented Oct 4, 2022

  • Update desktop/package.json
  • Build ./bin/*.ts and bundle them as JS files

@whitphx
Copy link
Owner Author

whitphx commented Oct 4, 2022

With this version, package.json works as a template.
pyodide and node-fetch are necessary for the dump command to work as these packages are not bundled yet. -> TODO.

{
  "name": "stite-desktop-sample",
  "version": "0.1.0",
  "main": "./build/electron/main.js",
  "scripts": {
    "dump": "dump-stlite-desktop-artifacts",
    "serve": "NODE_ENV=\"production\" electron .",
    "pack": "electron-builder --dir",
    "dist": "electron-builder",
    "postinstall": "electron-builder install-app-deps"
  },
  "build": {
    "files": [
      "build/**/*"
    ],
    "directories": {
      "buildResources": "assets"
    }
  },
  "devDependencies": {
    "@stlite/desktop": "*",
    "electron": "20.2.0",
    "electron-builder": "^23.3.3",
    "node-fetch": "2",
    "pyodide": "^0.21.3"
  }
}

@whitphx whitphx merged commit 673cc1e into main Oct 5, 2022
@whitphx whitphx deleted the feature/transpile-desktop-cli branch October 5, 2022 04:03
@whitphx whitphx mentioned this pull request Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant