2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-16 10:05:09 +00:00
nativefier/docs/development.md

58 lines
890 B
Markdown
Raw Normal View History

2016-03-13 07:27:32 +00:00
# Development
## Environment Setup
First, clone the project
2016-03-13 07:27:32 +00:00
```bash
git clone https://github.com/jiahaog/nativefier.git
cd nativefier
2016-03-13 07:27:32 +00:00
```
Install dependencies and build:
2016-03-13 07:27:32 +00:00
```bash
# macOS and Linux
npm run dev-up
2016-03-13 07:27:32 +00:00
# Windows
npm run dev-up-win
2016-03-13 07:27:32 +00:00
```
If dependencies are installed and you just want to re-build,
2016-03-13 07:27:32 +00:00
```bash
npm run build
2016-03-13 07:27:32 +00:00
```
You can set up a symbolic link so that running `nativefier` invokes your development version including your changes:
2016-03-13 07:27:32 +00:00
```bash
npm link
2016-03-13 07:27:32 +00:00
```
After doing so (and not forgetting to build with `npm run build`), you can run Nativefier with your test parameters:
2016-03-13 07:27:32 +00:00
```bash
nativefier <--your-awesome-new-flag>
2016-03-13 07:27:32 +00:00
```
Or you can automatically watch the files for changes with:
```bash
npm run watch
2016-03-13 07:27:32 +00:00
```
## Tests
```bash
# To run all tests (unit, end-to-end),
npm test
# To run only unit tests,
npm run jest
# To run only end-to-end tests,
npm run e2e
2016-03-13 07:27:32 +00:00
```