This is a simple editor app for college course project.
Protocol cceditor
has been implemented. It supports the following operations:
cceditor://static
- refers to the root directory of the appcceditor://bundle
- refers to theapp.asar
file of the app
Easily, you can visit cceditor://bundle/web/index.html
to view the Vue collections packaged in app.asar
Install necessary dependencies globally
npm i -g electron electron-builder
Install dependencies
npm i
Type npm run <command>
to use predefined scripts. Commands are as follows:
vue:serve
- serves the Vue app independently (without Electron) under development modevue:build
- builds the Vue app independently (without Electron) under development mode (outputweb-dist
)vue:lint
- lints the Vue appelectron:build-vue
- builds the Vue app for electron under production mode (outputweb
)electron:make
- builds the Electron app based on output of Vue (electron:build-vue
prerun needed)build
- builds the Electron app with Vuetest
- tests the Electron app with Vue (Vue hot server)
If you just want to build the app from source, run
npm run build