https://github.com/tutv/html5_standard_template
HTML5 standard template (Bootstrap, JQuery, Font Awesome)
https://github.com/tutv/html5_standard_template
Last synced: about 1 year ago
JSON representation
HTML5 standard template (Bootstrap, JQuery, Font Awesome)
- Host: GitHub
- URL: https://github.com/tutv/html5_standard_template
- Owner: tutv
- Created: 2015-08-10T15:32:07.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-10T16:57:26.000Z (almost 11 years ago)
- Last Synced: 2025-02-04T21:45:33.111Z (over 1 year ago)
- Language: CSS
- Size: 844 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTML5 standard template
* HTML5
* LESS/CSS3
* Bootstrap
* Font Awesome
* Jquery
## Install Grunt to compile LESS files to CSS
### 1. Install & config
#### a. Install **Node.js**
Download at https://nodejs.org & install it.
#### b. Install **Gruntjs**
`npm install -g grunt-cli`
#### c. Install **grunt-contrib-less, grunt-contrib-watch, jit-grun**
`npm install grunt grunt-contrib-less grunt-contrib-watch jit-grunt --save-dev`
#### d. Config `Gruntfile.js`
```
module.exports = function(grunt) {
require('jit-grunt')(grunt);
grunt.initConfig({
less: {
development: {
options: {
compress: true,
yuicompress: true,
optimization: 2
},
files: {
"assets/css/style.css": "assets/less/style.less" // destination file and source file
}
}
},
watch: {
styles: {
files: ['assets/less/**/*.less'], // which files to watch
tasks: ['less'],
options: {
nospawn: true
}
}
}
});
grunt.registerTask('default', ['less', 'watch']);
};
```
### 2. Run grunt
``grunt``