Skip to content

tmhub/node-tmhub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

node-tmhub

Our custom nodejs lib for fast gulp build writing

Integartion

  1. Open [extension]/build/package.json

  2. Add "node-tmhub": "git://github.com/tmhub/node-tmhub.git#master" to dependencies

  3. Open [extension]/build/gulpfile.js

  4. Add the following code to require section

    tm = require('node-tmhub').tmhub

5. Now your can use node-tmhub features

    ~~~js
    gulp.task('composer', function(cb) {
        tm.makeDirs(['vendor', 'code']);
        tm.generateComposerJson();
        tm.composerRefresh(cb);
    });
    gulp.task('gitpushtags', tm.gitpushtags);
    gulp.task('draft', ['gitpushtags'], function (cb){
        tm.createReleaseDraft(cb);
    });
    gulp.task('keygen', tm.keygen);