Skip to content

ariatemplates/gulp-noder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-noder

Gulp plugin for to ease packaging with Noder. Usage:

var gulp = require('gulp');
var hsp = require('gulp-hashspace');
var noder = require('gulp-noder');
var concat = require('gulp-concat');
var clean = require('gulp-clean');
var uglify = require('gulp-uglify');

gulp.task('package', function () {
    gulp.src('src/**/*.+(hsp|js)')
        .pipe(hsp.process())        //compile and transpile #space files
        .pipe(noder.package('/src'))//wrap CommonJS so they can be loaded with Noder.js
        .pipe(concat('all.min.js')) //combine files together
        .pipe(noder.wrap())         //entire file wrapping needed by Noder.js
        .pipe(uglify())             //minify
        .pipe(gulp.dest('dist'));   //copy to the destination folder
});

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •