js-combine-pack

1.0.7 • Public • Published

js-combine-pack

blog ria reusable utils

api document

##public api for node

//npm install js-combine-pack
var utils = require('js-combine-pack');
var tool = utils.tool;

var toolOptions = tool.config;

toolOptions.projectName = "your project name";
toolOptions.basedir = "rootdir";

tool.findFiles.allFilesList(filedir)

var jsList = tool.findFiles.allFilesList("test/blog7");
//List all files address list in blog7 directory

tool.findFiles.allFilesCon(jsList)

var jsListCon =  tool.findFiles.allFilesCon(["test/jobs/test1.js","test/jobs/test2.js"]);
//Access to the content of each item in the array

tool.findJsAllImport(filedir,allFilesCon,callback)

var findJsAllImport = tool.findJsAllImport(filedir,allFilesCon,callback);
//Search for all files change, facilitate incremental packaging

##struction this utils is not perfect, continue to optimize!

License

BSD license

Readme

Keywords

Package Sidebar

Install

npm i js-combine-pack

Weekly Downloads

16

Version

1.0.7

License

MIT

Last publish

Collaborators

  • xiaoyue
  • flylee2000
  • pillar0514