2.0.2 • Published 9 years ago
frontr-src v2.0.2
Frontr Source
The front-end source for Frontr CLI.
Features
- HTML5 Boilerplate front-end template.
- Gruntjs for Server and Build tasks.
- Bower for dependencies managment.
- Sass pre-processor (With libsass compiler)
- Foundation CSS Framework v5 (or any you want)
- jQuery JS Framework.
- Modernizr JS library.
- PostCSS and Autoprefixer
- ESLint A fully pluggable tool for identifying and reporting on patterns in JavaScript.
- Livereload and watch files changes
- Minify HTML
- Compress CSS files
- Removing unused CSS from your projects
- Minify PNG and JPEG images
- Minify files with UglifyJS
- File revving
- Just In Time plugin loader for Grunt tasks
- Mocha Tests
Requirements
It's necessary to install the following packages before:
How to use
Installation
Clone the repository
$ git clone https://github.com/quintana-dev/frontr-src.git
Enter to project dir
$ cd frontr-src
Install local packages
$ npm install
Usage
Serve
Start development server and preview the project located at app/
dir.
$ grunt serve
Build
Generate a dist files at dist/
dir.
$ grunt build
Dist
Run dist server with deployed files located at dist/
dir.
$ grunt dist
Remote access
For remote access in network using --remote-access
option.
$ grunt serve --remote-access
# or
$ grunt dist --remote-access
Note: For remote access in Windows OS use the network IP address instead of 0.0.0.0
Configuration
Simple commons setup via frontr.json
.
{
"hostname": "localhost",
"port": 7000,
"app": "/app",
"dist": "/dist",
"assets": {
"dirname": "/assets",
"src": {
"css": "",
"js": "/js",
"img": "/img",
"fonts": "/fonts"
},
"style": "style"
},
"uncssIgnore": ".uncss-?\\S*"
}
History
Check out releases changelog.
License
MIT license
© 2015 José Luis Quintana
2.0.2
9 years ago