requirejs / almond

A minimal AMD API implementation for use after optimized builds
Other
2.42k stars 168 forks source link

Almond and gulp amd-optimise #95

Open danielsedlacek opened 10 years ago

danielsedlacek commented 10 years ago

Is it possible to use almond with amd optimisers besides r.js? Like amd-optimise?

I am trying to plug almond into this gulp script:

var gulp = require("gulp"); var amdOptimize = require("amd-optimize"); var concat = require('gulp-concat');

gulp.task("scripts:index", function () {

return gulp.src("js/**/*.js")
    // Traces all modules and outputs them in the correct order.
    .pipe(amdOptimize("main"))
    .pipe(concat("index.js"))
    .pipe(gulp.dest("dist/scripts"));

});

Sorry for newbie question, any help is really welcome.