USE soixantecircuits electron-vue
Neodymium (or nd for short) is a project template for an Electron application.
A project generated with nd uses, among other tools, Node.js, Vue.js, Webpack 2, vue-cli and ESLint to create an Electron application.
Nd sets up these tools and takes care of their settings for you so you can start making your app without worrying about the boilerplate.
The main tutorial can be found here.
Common topics are discussed in the documentation. Make sure to read it!
This is a project template for vue-cli. It is recommended to use npm 3+ for a more efficient dependency tree.
$ npm install -g vue-cli
$ vue init soixantecircuits/nd my-project
$ cd my-project
$ npm install
$ npm run dev
You can define settings variables for your project in several ways like loading them from a file, from the environment or from command line options.
nd uses standard-settings. It will try to load settings automatically from the environment, the command line arguments, from the default settings files settings/settings.default.json
and settings/settings.json
.
You can specify a settings
variable in any of those methods, and if it contains a path to a json file, settings will also be loaded from that file
$ customVar=42 npm run dev
or
$ settings="/path/to/custom/settings.json" npm run dev
or (for electron)
$ npm run build
$ ./releases/test-linux-x64/project -- --settings="/path/to/custom/settings.json"
If your app is set up to use electron, you can get the loaded settings with require('electron').remote.getGlobal('settings')
.
If your app is not using electron, the loaded settings are stored in the global variable SETTINGS
.
If your app is built for electron and you want to use devtools, simply define a variable DEVTOOLS
in your settings. It will open it when you launch your app.
npm start
: first-in-class development experience.
vue-loader
for single file Vue components.npm run electron
in Electron enabled apps.npm run build
: Production ready build.
index.html
is auto-generated with proper URLs to these generated assets.npm run electron
: developpers friendly features when working in a dev environment.
npm run package
: Package your app for distribution with electron-packager.
devDependencies
from the packaged binary, reducing final size a lot.You can fork this repo to create your own boilerplate, and use it with vue-cli
:
vue init username/repo my-project
This is originally a fork of the webpack template. Most credit goes to them! 👏
The neodymium stack was originally designed as a yeoman generator. It is no longer available.