Socket
Socket
Sign inDemoInstall

grunt-pjs

Package Overview
Dependencies
36
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grunt-pjs

Preprocess JS build task for Grunt


Version published
Weekly downloads
5
Maintainers
1
Install size
326 kB
Created
Weekly downloads
 

Readme

Source

grunt-pjs

Preprocess JS build task for Grunt

Getting Started

npm install grunt-pjs --save-dev

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

grunt.loadNpmTasks('grunt-pjs');

The "pjs" task

Overview

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

grunt.initConfig({
  pjs: {
    // All defaults are shown below
    options: {
      // cpp version
      cppVersion: 4.8,
      // cpp cwd
      basePath: null,
      // include search paths
      includePaths: [],
      // include files
      includeFiles: [],
      // macro definations, string or { name, value }
      definations: [],
      // true to enable source map, will be named as file.dest + '.map'
      sourceMap: false,
      // source map's source root
      sourceRoot: null,
      // other args (in array) for cpp
      args: null
    },
    your_target: {
      // Target-specific file lists and/or options go here.
    }
  }
});

Keywords

FAQs

Last updated on 04 Jun 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc