Skip to content

Commit

Permalink
Run gulp using npm Simplifies usage of gulp and makes sure everyone i…
Browse files Browse the repository at this point in the history
…s using same version
  • Loading branch information
Dahlgren authored and kayone committed Mar 24, 2016
1 parent 9de92d1 commit 1293bab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Expand Up @@ -18,7 +18,9 @@ Setup guides, FAQ, the more information we have on the wiki the better.
1. Fork Sonarr
2. Clone (develop branch) *you may need pull in submodules separately if you client doesn't clone them automatically (CurlSharp)*
3. Run `npm install`
4. Run `gulp watch` - Used to compile the UI components and copy them (leave this window open)
4. Run `npm start` - Used to compile the UI components and copy them.
Leave this window open.
If you have gulp globally installed you can use `gulp watch` instead
5. Compile in Visual Studio

### Contributing Code ###
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Expand Up @@ -106,7 +106,7 @@ RunGulp()
echo "##teamcity[progressFinish 'npm install']"

echo "##teamcity[progressStart 'Running Gulp']"
CheckExitCode gulp build
CheckExitCode npm run build
echo "##teamcity[progressFinish 'Running Gulp']"
}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -4,7 +4,8 @@
"description": "Sonarr",
"main": "main.js",
"scripts": {
"preinstall": ""
"build": "gulp build",
"start": "gulp watch"
},
"repository": {
"type": "git",
Expand Down
4 changes: 1 addition & 3 deletions readme.md
Expand Up @@ -24,16 +24,14 @@ Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS fee
- Visual Studio 2015 [Free Community Edition](https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx)
- [Git](http://git-scm.com/downloads)
- [NodeJS](http://nodejs.org/download/)
- [Gulp](http://gulpjs.com)

### Setup ###

- Make sure all the required software mentioned above are installed.
- Clone the repository into your development machine. [*info*](https://help.github.com/articles/working-with-repositories)
- Grab the submodules `git submodule init && git submodule update`
- install the required Node Packages `npm install`
- install gulp `npm install gulp -g`
- start gulp to monitor your dev environment for any changes that need post processing using `gulp watch` command.
- start gulp to monitor your dev environment for any changes that need post processing using `npm start` command.

*Please note gulp must be running at all times while you are working with Sonarr client source files.*

Expand Down

0 comments on commit 1293bab

Please sign in to comment.