-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(IDE): Ide v0.0.1 release, upgrade to node.js 20 (#214)
* fix: add pnpm install to IDE publish script (#213) * fix: specific version of pnpm install Getting this error on pnpm install with node 20... pnpm/pnpm#6424 * chore: update pnpm, update to node 20, remove ide narrat deps * chore: trying to get the tauri action CI to find the right config * chore: still trying to fix CI * chore: ... * chore: ...
- Loading branch information
Showing
30 changed files
with
1,749 additions
and
3,710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: 'publish' | ||
name: 'ide-release' | ||
|
||
# This will trigger the action on each push to the `release` branch. | ||
on: | ||
|
@@ -33,7 +33,13 @@ jobs: | |
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: latest | ||
|
||
- name: install frontend dependencies | ||
working-directory: packages/desktop-editor | ||
run: pnpm install # change this to npm or pnpm depending on which one you use | ||
|
||
- uses: tauri-apps/tauri-action@v0 | ||
|
@@ -46,4 +52,5 @@ jobs: | |
releaseDraft: true | ||
prerelease: false | ||
projectPath: 'packages/desktop-editor' | ||
tauriScript: 'pnpm' | ||
tauriScript: 'pnpm tauri' | ||
args: --config src-tauri/tauri.conf.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,6 @@ on: | |
- main | ||
- v2.0.0 | ||
- release/* | ||
- feat/* | ||
- fix/* | ||
|
||
pull_request: | ||
|
||
|
@@ -32,10 +30,12 @@ jobs: | |
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18.x' | ||
node-version: '20.x' | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
uses: pnpm/[email protected] | ||
with: | ||
version: latest | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v18.14.2 | ||
v20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"description": "Template for Narrat game engine", | ||
"main": "electron-main.js", | ||
"engines": { | ||
"node": ">=18.x" | ||
"node": ">=20.x" | ||
}, | ||
"build": { | ||
"files": [ | ||
|
@@ -16,7 +16,7 @@ | |
"vue.js", | ||
"snowpack" | ||
], | ||
"author": "Liana Pigeot <liana.pigeot@protonmail.com>", | ||
"author": "Liana Pigeot <32243840+liana[email protected].com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"start": "npm run dev", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
"template/*" | ||
], | ||
"engines": { | ||
"node": ">= 18.x" | ||
"node": ">=20" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v18 | ||
v20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,14 @@ | |
"description": "Template for Narrat game engine", | ||
"main": "electron-main.js", | ||
"engines": { | ||
"node": ">=18.x" | ||
"node": ">=20" | ||
}, | ||
"keywords": [ | ||
"game", | ||
"vue.js", | ||
"snowpack" | ||
], | ||
"author": "Liana Pigeot <liana.pigeot@protonmail.com>", | ||
"author": "Liana Pigeot <32243840+liana[email protected].com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"start": "npm run dev", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v18 | ||
v20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
# Narrat Desktop Editor | ||
|
||
WIP | ||
A game editor IDE for narrat games, built with [tauri](https://tauri.app/). | ||
|
||
Structure: | ||
**This editor is in early development. It works for very basic use but is not yet the recommended way to edit narrat games.** | ||
|
||
- vite project running the editor UI | ||
- tauri app to run the editor in a desktop app | ||
- monacco editor for text editing | ||
## Installing | ||
|
||
## Installation | ||
Once the CI build is working, there will be GitHub releases with binaries to download for Windows/MacOS/Linux. For now, the only way to run this is from the source. | ||
|
||
- Have [node.js](https://nodejs.org) installed | ||
- Have rust installed: `curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh` | ||
- Run `npm install` | ||
## Running from source | ||
|
||
## Running | ||
### Installation | ||
|
||
Run `npm run dev` to start the IDE. Then use the menu to open a folder containing a narrat project. | ||
- Clone or download this repo | ||
- Install [node.js](https://nodejs.org) 20+ (LTS recommended) | ||
- Install [pnpm](https://pnpm.io/installation). Narrat is a monorepo which uses pnpm instead of npm. | ||
- Install Rust: `curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh` | ||
- Run `pnpm install` | ||
|
||
## Building | ||
### Running | ||
|
||
Not implemented yet | ||
Run `pnpm dev` to start the IDE. Then use the menu to open a folder containing a narrat project. | ||
|
||
### Building | ||
|
||
Run `pnpm build` | ||
|
||
### Releasing | ||
|
||
Releases are automatically triggered by the github workflow `ide.yml` when a push is made to a `ide-v*` branch. The workflow will build the app and upload the binaries to the release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,16 @@ | |
"description": "Desktop editor for narrat", | ||
"main": "electron-main.js", | ||
"engines": { | ||
"node": ">=18.x" | ||
"node": ">=20.x" | ||
}, | ||
"keywords": [ | ||
"game", | ||
"vue.js", | ||
"snowpack" | ||
"rust", | ||
"tauri", | ||
"narrat" | ||
], | ||
"author": "Liana Pigeot <liana.pigeot@protonmail.com>", | ||
"author": "Liana Pigeot <32243840+liana[email protected].com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "pnpm tauri dev", | ||
|
@@ -27,67 +29,27 @@ | |
"dependencies": { | ||
"@tauri-apps/api": "^1.5.3", | ||
"clone-deep": "^4.0.1", | ||
"electron-squirrel-startup": "^1.0.0", | ||
"es6-promise": "^4.2.8", | ||
"monaco-editor": "0.44.0", | ||
"monaco-yaml": "^5.1.0", | ||
"narrat": "workspace:*", | ||
"oh-vue-icons": "1.0.0-rc3", | ||
"pinia": "^2.1.7", | ||
"steamworks.js": "^0.2.0", | ||
"vue": "^3.4.15", | ||
"vue-router": "4" | ||
}, | ||
"devDependencies": { | ||
"@electron-forge/cli": "^6.1.1", | ||
"@electron-forge/maker-deb": "^6.1.1", | ||
"@electron-forge/maker-rpm": "^6.1.1", | ||
"@electron-forge/maker-squirrel": "^6.1.1", | ||
"@electron-forge/maker-zip": "^6.1.1", | ||
"@electron/rebuild": "^3.2.13", | ||
"@tauri-apps/cli": "^1.5.9", | ||
"@types/clone-deep": "^4.0.1", | ||
"@vitejs/plugin-vue": "^4.2.3", | ||
"@vue/devtools": "^7.0.11", | ||
"cross-env": "^7.0.3", | ||
"electron": "^25.8.4", | ||
"electron-winstaller": "^5.1.0", | ||
"prettier": "^3.0.0", | ||
"shx": "^0.3.4", | ||
"typescript": "^5.1.6", | ||
"vite": "^5.0.12", | ||
"vite-plugin-monaco-editor": "^1.1.0", | ||
"vite-plugin-narrat": "3.6.0", | ||
"vite-plugin-windicss": "^1.9.0", | ||
"windicss": "^3.5.6" | ||
}, | ||
"config": { | ||
"forge": { | ||
"packagerConfig": {}, | ||
"makers": [ | ||
{ | ||
"name": "@electron-forge/maker-squirrel", | ||
"config": { | ||
"name": "Your game name", | ||
"authors": "Your name", | ||
"description": "Your game description" | ||
} | ||
}, | ||
{ | ||
"name": "@electron-forge/maker-zip", | ||
"platforms": [ | ||
"darwin" | ||
] | ||
}, | ||
{ | ||
"name": "@electron-forge/maker-deb", | ||
"config": {} | ||
}, | ||
{ | ||
"name": "@electron-forge/maker-rpm", | ||
"config": {} | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.