Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to use Grunt

N@N
February 15, 2014

Introduction to use Grunt

Gruntの概要からインストールまで

N@N

February 15, 2014
Tweet

More Decks by N@N

Other Decks in Technology

Transcript

  1. $ sudo aptitude install build-essential libssl-dev $ sudo aptitude install

    curl $ wget http://nodejs.org/dist/v0.10.25/node- v0.10.25.tar.gz make install
  2. module.exports = function(grunt) { grunt.initConfig({ clean: { ~~ ~~ },

    cssmin: { compress: { files: { './min.css': ['css/style.css'] }}} }); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-cssmin'); };
  3. • $ npm init $ npm install grunt --save-dev $

    npm install grunt-contrib --save-dev //Gruntfile.js $ grunt