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

package-brunch

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

package-brunch

Short plugin to add a version.js file.

latest
Source
npmnpm
Version
0.3.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

package-brunch

A brunch in order to include the package of the pack.

Installation

npm install --save package-brunch , and it will be runned by brunch.

Configuration

In your brunch config file: config.coffee, you can customize the pluin behaviour:

paramtypemeaningdefault
fileNamestringThe generated file name after brunch compilation.package.js
fileSourcestringThe source file which will be read to create tjhe fileName filepackage.json
nameSpacestringThe namespace into which the file will be added in the window object.app
fileTransformfunctionA transformation function you want to apply to the string source of the file.function(source){return source;}
  • Example in the config.coffee:
  plugins:
    package:
      fileName: "myApp.version.js"
      nameSpace: "myApp"

TODO

Implement a xml version in order to build a file from server.xml conf.

var fs=require("fs");
var xml=fs.readFileSync("t.xml", "utf8");
var parseString = require('xml2js').parseString;
parseString(xml, function (err, result) {
    console.log('%j',result);
});
```

Keywords

brunch

FAQs

Package last updated on 20 Dec 2014

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