Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Setup GRUNT on Codio
- Install Grunt
- npm install -g grunt-cli
- Get latest Code
- cd ~/workspace
- git pull
- Create Grunt directory if it does not exist
- mkdir -p ~/workspace/grunt
- cd ~/workspace/grunt
- Setup Grunt
- npm init
- Open up grunt/package.json
- {
- "name": "EMF-LESS-Compilation",
- "version": "1.0.0"
- }
- Install Grunt and Components
- cd ~/workspace/grunt
- npm install grunt --save-dev
- npm install grunt-contrib-less --save-dev
- npm install grunt-contrib-watch --save-dev
- Create gruntfile.js executable
- cd ~/workspace/grunt
- touch gruntfile.js
- File should look like this:
- module.exports = function(grunt) {
- grunt.initConfig({
- less: {
- development: {
- options: {
- paths: ["./assets/stylesheets/less"],
- yuicompress: true
- },
- files: {
- "./assets/stylesheets/css/style.css": "./assets/stylesheets/less/style.less"
- }
- }
- },
- watch: {
- files: "./assets/stylesheets/less/*",
- tasks: ["less"]
- }
- });
- grunt.loadNpmTasks('grunt-contrib-less');
- grunt.loadNpmTasks('grunt-contrib-watch');
- };
- Edit paths in grunt.js to the LESS files you need compiled.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement