Run gulp using npm Simplifies usage of gulp and makes sure everyone is using same version
This commit is contained in:
parent
9de92d18e1
commit
1293bab868
|
@ -18,7 +18,9 @@ Setup guides, FAQ, the more information we have on the wiki the better.
|
||||||
1. Fork Sonarr
|
1. Fork Sonarr
|
||||||
2. Clone (develop branch) *you may need pull in submodules separately if you client doesn't clone them automatically (CurlSharp)*
|
2. Clone (develop branch) *you may need pull in submodules separately if you client doesn't clone them automatically (CurlSharp)*
|
||||||
3. Run `npm install`
|
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
|
5. Compile in Visual Studio
|
||||||
|
|
||||||
### Contributing Code ###
|
### Contributing Code ###
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -106,7 +106,7 @@ RunGulp()
|
||||||
echo "##teamcity[progressFinish 'npm install']"
|
echo "##teamcity[progressFinish 'npm install']"
|
||||||
|
|
||||||
echo "##teamcity[progressStart 'Running Gulp']"
|
echo "##teamcity[progressStart 'Running Gulp']"
|
||||||
CheckExitCode gulp build
|
CheckExitCode npm run build
|
||||||
echo "##teamcity[progressFinish 'Running Gulp']"
|
echo "##teamcity[progressFinish 'Running Gulp']"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
"description": "Sonarr",
|
"description": "Sonarr",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": ""
|
"build": "gulp build",
|
||||||
|
"start": "gulp watch"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -24,7 +24,6 @@ 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)
|
- Visual Studio 2015 [Free Community Edition](https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx)
|
||||||
- [Git](http://git-scm.com/downloads)
|
- [Git](http://git-scm.com/downloads)
|
||||||
- [NodeJS](http://nodejs.org/download/)
|
- [NodeJS](http://nodejs.org/download/)
|
||||||
- [Gulp](http://gulpjs.com)
|
|
||||||
|
|
||||||
### Setup ###
|
### Setup ###
|
||||||
|
|
||||||
|
@ -32,8 +31,7 @@ Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS fee
|
||||||
- Clone the repository into your development machine. [*info*](https://help.github.com/articles/working-with-repositories)
|
- 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`
|
- Grab the submodules `git submodule init && git submodule update`
|
||||||
- install the required Node Packages `npm install`
|
- 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 `npm start` command.
|
||||||
- start gulp to monitor your dev environment for any changes that need post processing using `gulp watch` command.
|
|
||||||
|
|
||||||
*Please note gulp must be running at all times while you are working with Sonarr client source files.*
|
*Please note gulp must be running at all times while you are working with Sonarr client source files.*
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue