2016-03-13 07:27:32 +00:00
|
|
|
# Development
|
|
|
|
|
|
|
|
## Environment Setup
|
|
|
|
|
|
|
|
First clone the project
|
|
|
|
|
|
|
|
```bash
|
2017-04-09 02:36:27 +00:00
|
|
|
git clone https://github.com/jiahaog/nativefier.git
|
|
|
|
cd nativefier
|
2016-03-13 07:27:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Install dependencies
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# OSX and Linux
|
2017-04-09 02:36:27 +00:00
|
|
|
npm run dev-up
|
2016-03-13 07:27:32 +00:00
|
|
|
|
|
|
|
# Windows
|
2017-04-09 02:36:27 +00:00
|
|
|
npm install
|
|
|
|
cd app
|
|
|
|
npm install
|
2016-03-13 07:27:32 +00:00
|
|
|
```
|
|
|
|
|
2017-02-12 15:38:39 +00:00
|
|
|
Don't forget to compile source files:
|
2016-03-13 07:27:32 +00:00
|
|
|
|
|
|
|
```bash
|
2017-04-09 02:36:27 +00:00
|
|
|
npm run build
|
2016-03-13 07:27:32 +00:00
|
|
|
```
|
|
|
|
|
2017-04-09 02:36:27 +00:00
|
|
|
You can set up symlinks so that you can run `nativefier` for your local changes
|
2016-03-13 07:27:32 +00:00
|
|
|
|
|
|
|
```bash
|
2017-04-09 02:36:27 +00:00
|
|
|
npm link
|
2016-03-13 07:27:32 +00:00
|
|
|
```
|
|
|
|
|
2017-02-12 15:38:39 +00:00
|
|
|
After doing so, you can then run Nativefier with your test parameters
|
2016-03-13 07:27:32 +00:00
|
|
|
|
|
|
|
```bash
|
2017-04-09 02:36:27 +00:00
|
|
|
nativefier <...>
|
2016-03-13 07:27:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Or you can automatically watch the files for changes with:
|
|
|
|
|
|
|
|
```bash
|
2017-04-09 02:36:27 +00:00
|
|
|
npm run watch
|
2016-03-13 07:27:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Tests
|
|
|
|
|
|
|
|
```bash
|
2017-04-09 02:36:27 +00:00
|
|
|
npm test
|
2016-03-13 07:27:32 +00:00
|
|
|
```
|