grunt-nativejsx
nativejsx.
Grunt task forHello fellow Grunters, go hog-wild over this nativejsx Gruntjs plugin (snorts).
Installation
This plugin requires Grunt ~0.4.5
Install grunt-nativejsx
by running this command in your project folder:
npm install grunt-nativejsx --save-dev
Add this to your Gruntfile.js
:
grunt;
Configuration
grunt;
Options
- options.declarationType: Either
var
(default),const
, orlet
. - options.variablePrefix: Any string (defaults to
$$
) you can conjure up that produces a valid JavaScript variable. - options.acorn: All acorn options are available here. Defaults to
{plugins: {jsx: true}, ecmaVersion: 6, sourceType: 'module'}
.