soixantecircuits / nd

vue-cli neodymium template
https://soixantecircuits.github.io/nd/
4 stars 2 forks source link

❗️DEPRECATED ❗️

USE soixantecircuits electron-vue

❗️DEPRECATED ❗️

Neodymium template

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.

js-standard-style

forthebadge forthebadge forthebadge forthebadge

Documentation

The main tutorial can be found here.

Common topics are discussed in the documentation. Make sure to read it!

Usage

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.

What's Included

Fork It And Make Your Own

You can fork this repo to create your own boilerplate, and use it with vue-cli:

vue init username/repo my-project

Credits

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.