-
Notifications
You must be signed in to change notification settings - Fork 1
Home
The template redevelopment is to focus on a cleaner core code base and integrating WCAG 2.0 Standards within the V4 Template.
This Wiki will house basic information on the techniques used to generate the new code.
View the Workflow Overview prior to continuing on.
- Local: Pull the latest code from
origin/master
.- Branch from Master and work on your code.
- Push to
origin/BRANCHNAME
- Create a pull request
- Code will be reviewed and the PR will be merged.
-
Remote: Named
origin
. This repository Branches include:- Master - Production level code. Nothing merged here without a pull request and code review
-
Other Branches - Feature/Issue/Hotfix branches. Pushed to
origin
merged via pull request.
Dependency installation instructions.
-
Git - Source Control
- Bitbucket - Remote repository hosting
- Node.JS - Package ecosystem, required for below
Contributions to this repository should be made using the GitHub Flow branching model linked above.
- Keep the master branch clean, branch all work off of it.
- Commit and commit often. Use these guidelines for commit messages.
- Feature branches get pushed to remote.
- Open a pull request at bitbucket.org once dev has been updated.
These commands may change and/or update once development starts moving. This is a reference guide from the previous repository.
Grunt commands will be used to deploy code locally, dev or to production. The following commands are the available, check Gruntfile.js for additional commands:
-
grunt watch
- Watches all files in the SCSS, JS or Image folders. Will compile/concat/minify as appropriate for the file changed. Should always be running when modifying files. -
grunt dev
- Similar towatch
but will only run tasks once. This should be used to get a development copy of the SASS files (with comments, nested format) -
grunt live
- Similar todev
but compiles with production in mind. JS and CSS files are minified. -
grunt launch-dev
- Runsgrunt dev
and copies the files to\Volumes\webcontent\webdev\temp-v4
-
grunt launch-live
- Runsgrunt live
and copies files to\Volumes\webcontent\xu\live\Templates\temp-v4.1
- Should only ever be run from master
Other tasks can be found in Gruntfile.js
and can be run as follows: grunt TASK:SUBTASK
Recommendation is to connect to this Repository via SSH. Instructions.
If you do not have a local ColdFusion environment, you might want to get one for testing purposes. The development environment is free for local installs.
If you have not installed Git, NPM, Bower or Grunt, follow the installation guide. After that, proceed here.
cd To/Your/Path
git clone [email protected]:XavierUniv/v4-template-redevelopment.git
cd v4-template-redevelopment
After cloning the repository locally run the following commands:
-
npm install
- This installs the dependencies outlined inpackage.json
-
bower install
- This installs the dependencies outlined inbower.json
Use npm update
or bower update
periodically, especially when pulling to ensure dependencies haven't changed. Submit an issue to discuss new versions of items.
After running these commands, you are good to start writing code. At a bare minimum, run grunt watch
while coding if you want immediate access to changes.