0.3.1 • Published 9 years ago

package-brunch v0.3.1

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

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);
});
```
0.3.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago