# 1. Install $ npm i -g nextron # 2. Create nextron app (with template of `examples/with-javascript-material-ui`) $ nextron init test-app --template with-javascript-material-ui # 3. Run development mode $ cd test-app $ yarn (or `npm install`) $ yarn dev (or `npm run dev`)
Just released nextron@0.7.5
.
Main Changes
- Fix almost all bugs
- Upgrade to
electron@^2.0.4
- Upgrade to
next@6.1.1
- Smaller dependencies
- Easy cli like
nextron init test-app
- More examples (The screenshot above is a top page of
examples/with-javascript-material-ui
)
Usage
Install
$ npm install --global nextron
Create Application
To create <MY-APP>
, just run the command below:
$ nextron init <MY-APP>
Create Application with Template
You can use examples/*
sample apps as templating.
To create the example/with-typescript
app, run the command below:
$ nextron init <MY-APP> --template with-typescript
Run Electron with Development Mode
Run npm run dev
, and nextron automatically launches the electron app.
{ "scripts": { "dev": "nextron" } }
Production Build
Run npm run build
, and nextron outputs packaged bundles under the dist
folder.
{ "scripts": { "build": "nextron build" } }
TODO
- More examples
- More CLI options
- ex1.)
nextron build --all
- ex2.)
nextron build --ia32 --win
- ex1.)
- Watch changes and hot reloading both main and renderer processes
Top comments (2)
You forgot to add "npm install" to your instructions in step 3 after "cd test-app"
otherwise you will get error running yarn dev the first time.
should be
you can also use the "npm run dev" command instead of "yarn dev"
$ npm run dev
anyhoo...
the output from npm install
then I ran yarn dev...
Thank you for your testing nextron!
Could you try
nextron@0.6.8
?(I fixed some npm installation problem.)