-
Notifications
You must be signed in to change notification settings - Fork 24
Home
WarmuP allows you to define templates for entire projects and change them as technology changes and you learn new things. The templates are kept in source control. Both SVN and Git are supported places to keep your templates. You can also keep your templates in folders and that is the default methodology used currently.
WarmuP is not just about Visual Studio solutions, it can template any set of text files/folders.
###Token Replacement See the following post by Rob - Getting Started.
You define a template using __NAME__
(note the double underscore) as part of file/folder names and inside of files. Then you run WarmuP telling it what you want to replace __NAME__
with.
In the location you want the generated template to reside run:
[warmuppath]warmup template replacementName [targetDirectoryIfDifferentThanReplacementName]
i.e. warmup mvctemplate NewBob
Ensure that the warmup.exe.config has the correct path to your templates.
WarmuP will also replace custom tokens with pre-configured values.
You can add custom replacement tokens to WarmuP by adding them to the configuration. You can also run a command to add them to the configuration from the command line. WarmuP will also perform file/folder and text replacement for these values like it does __NAME__
`warmup addTextReplacement findName replacementName`
i.e. warmup addTextReplacement __COMPANY__ "Somewheres, Intl"
WarmuP uses symbolic links to add new templates to the template folder and will actually create the template folder in the correct location for the first template you add if it doesn't exist. This allows you to keep your templates in disparate locations and still take advantage of WarmuP from a central usage location.
`warmup addTemplateFolder templateName "fullPath"`
i.e. warmup addTemplateFolder mvctemplate "c:\code\somefolder\somerepository\mvctemplate"
If you have Ruby 1.8.6+ (and Gems 1.3.7+) installed, you can get the current release of WarmuP to your machine quickly!
- Type 'gem install warmup'
- Then from anywhere you can type 'warmup '
If you have Chocolatey installed, you can get the current release of WarmuP to your machine quickly!
- Type 'cinst warmup'
- Then from anywhere you can type 'warmup '
Also available through NuGet - WarmuP
To get the latest build, go to the Chuck Norris project on http://teamcity.codebetter.com. Login as guest.
This is the best way to get to the bleeding edge of what we are doing.
- Clone the source down to your machine.
git clone git://github.com/chucknorris/warmup.git
- Run
build.bat
. NOTE: You must have git on the path (open a regular command line and type git). - WarmuP will be located in code_drop\warmup.
- .NET Framework 4.0