https://github.com/fed/amd-gallery
Image gallery example using AMD modules, RequireJS and Hogan.js
https://github.com/fed/amd-gallery
Last synced: about 2 months ago
JSON representation
Image gallery example using AMD modules, RequireJS and Hogan.js
- Host: GitHub
- URL: https://github.com/fed/amd-gallery
- Owner: fed
- Created: 2016-05-08T12:19:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-13T13:51:37.000Z (almost 9 years ago)
- Last Synced: 2025-01-18T13:38:05.648Z (3 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RequireJS + Hogan.js + The Intern Example
Building a random image gallery using AMD modules:

## Prerequisites
* Node.js (http://nodejs.org/)
* Grunt CLI (http://gruntjs.com/)Run `npm install` the first time you download the app in order to build the binaries for any node modules.
Grunt CLI can be installed globally for convenience with `npm install -g grunt-cli`, otherwise the binary can be found here: `./node_modules/grunt-cli/bin/grunt`.
## Development Tasks
| Command | Description |
|-------------------|----------------------------------|
| `npm install` | Fetch dependencies |
| `grunt` | Start development server |
| `grunt build` | Build all the things! |
| `grunt js` | Run all JS-related tasks |
| `grunt hogan` | Precompile .mustache files |
| `grunt requirejs` | Concatenate and minify .js files |
| `grunt jshint` | Lint .js files |
| `grunt css` | Run all CSS-related tasks |
| `grunt less` | Compile .less files |
| `grunt cssmin` | Minify .css files |
| `grunt csslint` | Lint .css files |
| `grunt test` | Run tests and generate coverage report. [Browser version here.](http://localhost:6789/node_modules/intern/client.html?config=tests/intern) |## Release Versions
Follow these steps to have your feature branch merged:
1. `git fetch`
2. `git checkout develop && git reset --hard origin/develop`
3. `npm version [ | major | minor | patch]`
4. `git checkout master && git reset --hard origin/master`
5. `git merge develop`
6. `git push --tags && git push && git checkout develop && git push`## Semantic Versioning
Given a version number `MAJOR.MINOR.PATCH`, increment the:
1. `MAJOR` version when you make incompatible API changes,
2. `MINOR` version when you add functionality in a backwards-compatible manner, and
3. `PATCH` version when you make backwards-compatible bug fixes.Additional labels for pre-release and build metadata [are available](https://docs.npmjs.com/cli/version) as extensions to the `MAJOR.MINOR.PATCH` format.
See the [Semantic Versioning](http://semver.org/) specification for more information.