Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

grunt-react-seajs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-react-seajs

a grunt plugin to translate react components to seajs modules

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

##Intro grunt-react-seajs is a plugin to translate component (eg.react component) to a seajs module.

##Usage Use npm install grunt-react-seajs to install.

Then add this line to your project's Gruntfile.js gruntfile:

grunt.loadNpmTasks('grunt-react-seajs');

grunt-react-seajs has a independent config file. You can change the config_file item in options to designated config file.

##Configuration Example

grunt.initConfig({
  react_seajs: {
    default_options: {
      config_file: "./grs_config.json"
    }
  }
});

The independent config file example:

{
  "merge": [
    {
      "file": [
        "./test/components/*A.js",
        "./test/components/componentB.js"
      ],
      "target": "./test/build/build.js"
    }
  ],
  "single": [
    {
      "target": "./test/build/",
      "file": ["./test/components/*C.js"]
    }
  ]
}

merge is a array include files you want to merge
single is a array include files you just want to translate and move

feature I will create more options to choose.

Keywords

gruntplugin

FAQs

Package last updated on 08 Feb 2017

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