Scaffolds a clean and combat ready electron app.
npm install generator-neodymium
> Scaffolds a clean and combat ready app for the browser/electron/nodejs.
``assets
your-app/
├── LICENSE
├── README.md
├── .package.json
├── dist
| | # Here comes the webpack compiled files
│ └── index.html
├── .editorconfig
├── .gitattributes
├── .gitignore
├── index.js
├── app
| | # You'll probably want to add an folder here`
│ ├── entry.js
│ ├── index.html
│ ├── partials
| | | # Your templates goes there
│ │ ├── home.html
│ │ └── page.html
│ ├── scripts
│ │ ├── app.js
│ │ ├── config.js
│ │ ├── controllers
| | | | # Your controllers should have the same name as their attached template
│ │ │ ├── home.js
│ │ │ └── page.js
│ │ └── lib
| | | # Here comes the app specific modules like routing, translations, storage, etc...
│ │ └── router.js
│ └── styles
│ └── main.css
├── server
| | # Everything related to server should go there
│ └── main.js # The entry point of the server
└── webpack.config.js
``
$ npm install --global generator-neodymium
Depending on your configuration, you ~~may~~ will encounter formatting issue right after the app generation. This is because ejs, the template engine yeoman uses, leaves empty lines in place of the omitted parts (e.g if you said you don't need a back-end, the back-end portion of your app README will be blank lines instead of not being here at all). This can lead to errors with the package.json file being invalid because of misplaced commas, etc. I'm currently looking for a solution to this using the yeoman transform streams, but until I figure this out in a clean and maintenable way, you'll have to deal with this by your own :/
With yo:
``
$ yo neodymium
It's recommended to use node v4.2.4 LTS. We cannot guarantee previous versions support, but will sure do our best to. Please post an issue if you encounter troubles with developing on neodymium.
`cdClone the repo and
into itnode_modules
$ git clone git@github.com:soixantecircuits/neodymium.git && cd neodymiumInstall the generator dependencies
$ npm iNow, create a symlink in your global
folder.npm remove --global generator-neodymium(If you have previously installed neodymium via the npm package, you should run
before this command)`
$ npm link
The yo neodymium` command will now execute your local version of neodymium. Enjoy :)
We follow a successful git branching model.
Please use the standard js coding style.
This was originally a fork of sindresorhus' neat generator.
See awesome-electron for more useful Electron resources.
MIT © Soixante circuits