grunt-nativejsx
v2.0.0
Published
Grunt task for nativejsx.
Downloads
53
Maintainers
Readme
grunt-nativejsx
Grunt task for nativejsx.
Hello 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.loadNpmTasks('grunt-nativejsx');
Configuration
grunt.initConfig({
nativejsx: {
options: {
// Task-specific options go here.
},
your_subtask: {
// Target-specific file lists and/or options go here.
},
},
});
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'}
.