gruntjs - How to install Grunt plugin properly -
sorry, i'm newbie in npm-bower-grunt services. maybe question stupid, can't find solution in google.
so, have installed single page app based on npm/bower/grunt/angular.js
in root have gruntfile.js code
module.exports = function(grunt) { var gtx = require('gruntfile-gtx').wrap(grunt); gtx.loadauto(); var gruntconfig = require('./grunt'); gruntconfig.package = require('./package.json'); gtx.config(gruntconfig); // need our bower components in order develop gtx.alias('build:standardversion', [ 'compass:standardversion', ... ]); gtx.finalise();
};
else have file grunt/compass.js with:
module.exports = { standardversion: { options: { config: 'standard/master/config.rb' } }
};
then in bower_components folder have gruntfiles each plugin code like:
'use strict'; module.exports = function(grunt) { grunt.initconfig({ pkg: grunt.file.readjson('package.json'), karma: { ... }, uglify: { ... } }); grunt.loadnpmtasks('grunt-contrib-uglify'); grunt.loadnpmtasks('grunt-karma'); grunt.registertask('default', [ 'karma', 'uglify' ]); };
so have install css-flip plugin here https://www.npmjs.com/package/grunt-css-flip
i installed npm , don't know write task this. need create new file in bower_components or somewhere else?
please tell me or give me link understand properly
thanx
Comments
Post a Comment