Inspired by Sitecore Habitat
NPM
npm i -D gulp-ignite gulp-ignite-sitecore
'use strict';
import ignite from 'gulp-ignite';
import * as sitecore from 'gulp-ignite-sitecore';
const tasks = Object.keys(sitecore).map(k => sitecore[k])];
const options = {
'sitecore:copy-sitecore-libraries': {
src: 'C:\\Websites\\Sitecore\\Website',
},
'sitecore:nuget-restore': {
solutionName: 'sitecore',
},
'sitecore:publish-projects': {
configuration: 'Debug',
dest: 'C:\\Websites\\Sitecore\\Website',
},
'sitecore:publish-tds': {
configuration: 'Debug',
options: {
properties: {
SitecoreDeployFolder : 'C:\\Websites\\Sitecore\\Website',
SitecoreWebUrl : 'http://sitecore',
},
},
},
'sitecore:deploy': {
dest: 'C:\\Websites\\Sitecore\\Website',
},
};
ignite.start(tasks, options);
- Copy Sitecore Libraries
- Restore NuGet Packages
- Publish Projects
- Publish TDS
- Deploy
- Transforms (Coming Soon)
- Package Website (Coming Soon)
- Sync Unicorn (Coming Soon)
Copy the sitecore libaries from the website to ./lib/Sitecore
.
gulp sitecore:copy-sitecore-libraries
--src, -s
- Source directory for sitecore libraries.--dest, -d
- Destination directory.
src
- Source directory for sitecore libraries. (Required)dest
- Destination directory. (Default:./lib/Sitecore
)deps
- Any gulp tasks that task would be dependent of. (Default:[]
)
Restore all nuget packages for solution.
gulp sitecore:nuget-restore
--solution, -s
- Solution file path.
solution
- Solution file path. (Required)deps
- Any gulp tasks that task would be dependent of. (Default:[]
)
Build and publish all projects.
gulp sitecore:publish-projects
--build, -b
- Build configuration.--src, -s
- Publish all.csproj
files located within directory.--dest, -d
- Destination directory for deployment.--clean, -c
- Perform a clean before a build.
configuration
- Build configuration. (Default:Debug
)dest
- Destination directory for deployment. (Required)src
- Publish all.csproj
files located within directory. (Default:./src
)options
- MSbuild options. (Default:{}
)deps
- Any gulp tasks that task would be dependent of. (Default:[]
)
Publish all TDS projects.
gulp sitecore:publish-tds
--build, -b
- Build configuration.--src, -s
- Publish all.scproj
files located within directory.--dest, -d
- Destination directory for deployment.--url, -u
- Destination sitecore url for deployment.
options
- MSbuild options. (Required)properties
(Overwrites for values set in VisualStudio)SitecoreWebUrl
- Destination sitecore url for deploymentSitecoreDeployFolder
- Destination directory for deploymentOutputPath
- Path to output item files (Default.\\bin\\Debug
)
configuration
- Build configuration. (Default:Debug
)src
- Publish all.scproj
files located within directory. (Default:./src
)deps
- Any gulp tasks that task would be dependent of. (Default:[]
)
Deploy files to Sitecore website
gulp sitecore:deploy
--watch, -w
- Watch files for changes and auto deploys.
dest
- Destination directory for deployment. (Required)src
- Files to deploy. (Default:[]
)watchFiles
- Files to watch (Default:[]
)
The MIT License (MIT)
Copyright (c) 2016 Javier Carmona
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.