Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

pakapak

0.1.6 • Public • Published

Pakapak

Build Status

npm + bower + other conf = pakapak

Installation

$ npm install pakapak --save-dev

Usage in gulp.js or karma.conf.js and others

var pakapak = require('pakapak');
var result = collect(["project/**/pakapak.json"], true);
console.log(' { a: 1, app: 1, work: 1 }', result);

Usage pakapak.saveToFile

pakapak.saveToFile('out.txt','test message');
pakapak.saveToFile('out.json',{obj1:'test object save to file'});
pakapak.saveToFile('out.json',['test save','arrray']);

Fill package.json dependencies in root folder from sub folders/modules dependencies

var result = collectByKey([
        "project/**/pakapak.json",
        'project/pakapak.json'
    ],
    'npm.devDependencies',
    'package.json',
    'devDependencies',
    true
);

Fill bower.json dependencies in root folder from sub folders/modules dependencies

var result = collectByKey([
        "project/**/pakapak.json",
        'project/pakapak.json'
    ],
    'bower.dependencies',
    'bower.json',
    'dependencies',
    true
);

Tests

$ npm test

Release History

  • 0.1.6
    • Add save to file method
  • 0.1.5
    • Add deepcopy source for collect
  • 0.1.4
    • Add travis-ci support
  • 0.1.3
    • Add method collectByKey
    • Add test generate npm and bower dependencies from pakapak.json
  • 0.1.0
    • Initial release

Install

npm i pakapak

DownloadsWeekly Downloads

0

Version

0.1.6

License

MIT

Last publish

Collaborators

  • avatar