Socket
Book a DemoInstallSign in
Socket

grunt-make

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-make

A Grunt plugin to simplify interoperation between Grunt and Make

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

grunt-make Build Status via Travis CI NPM version

wat

Ease interoperability between Grunt and Make. Creates a "make" task that will automatically call the relevant target in your Makefile based on the arguments.

For more musings on why you would possibly want to do this, check out: http://aeflash.com/2014-10/make.html

Usage

grunt.loadNpmTasks("grunt-make");
//or
require("load-grunt-tasks")(grunt);

There is no configuration for the task itself. You would use the target in other compound tasks or as the target of a watcher.

For example, if you're building Sass with a grunt-contrib-watch, but you have you build configured with make, this is all you need to do in your Gruntfile:

//…
watch: {
  styles: {
    files: "styles/*.scss",
    task: "make:styles" // <--
  }
}
//…

...if your Makefile contains this:

styles: dist/css/main.css

dist/css/main.css: styles/*.scss
  node-sass styles/main.scss $@

You can also target files:

    //…
    task: "make:dist/css/main.css"
    //…

You can also specify many Make targets by separating them with colons:

gunt.registerTask("allthethings", ["make:styles:scripts:lint:doc:publish"]);

License

MIT

Keywords

grunt

FAQs

Package last updated on 21 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts