0.1.1 • Published 3 years ago

grunt-plugin-esbuild v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

jscc

JSCC as a grunt plugin

Getting Started

This plugin requires Grunt ^0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install jscc --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('jscc');

The "jscc" task

Overview

In your project's Gruntfile, add a section named jscc to the data object passed into grunt.initConfig().

grunt.initConfig({
    jscc: {
		your_target: {
			// Your options
		},
    },
});

Options

Any unspecified options are inherited from jscc itself.

options.inpaths

Type: String | String[]

Your in directory(s) that jscc will modify.

options.out

Type: String

The out directory that jscc will output to.

options.eatDir

Type: String Default value: ""

A string value that "eats" a directory from the inpath, for example in the case of a simple config like this:

grunt.initConfig({
    jscc: {
		your_target: {
			inpaths: ["src/**/*.txt"], 
			out: "jscc_temp", 
			eatDir: "src"
		},
	}
});

Instead of in a normal case where files would be writen to jscc_temp/src/filename.txt this instead makes it so files are writen to jscc_temp/filename.txt.

0.1.1

3 years ago

0.1.0

3 years ago