Beispiel #1
0
 function taskfile() {
     return (
         task.src("./taskfile.js")
         .pipe(jsbeautifier())
         .pipe(task.dest("."))
     );
 },
Beispiel #2
0
 function src() {
     return (
         task.src("./src/**/*.js")
         .pipe(jsbeautifier())
         .pipe(task.dest("./src"))
     );
 },
Beispiel #3
0
task("jshint", "run jshint", function jsh() {
    return (
        task.src([
            "./taskfile.js",
            "./src/**/*.js",
            "./test/index.js"
        ])
        .pipe(jshint({
            es3: true,
            unused: true,
            curly: true,
            eqeqeq: true,
            expr: true,
            eqnull: true,
            proto: true
        }))
        .pipe(jshint.reporter("default"))
    );
});
Beispiel #4
0
 function test() {
     return task.src("./test/index.js").pipe(jsbeautifier()).pipe(task.dest("./test"));
 }
Beispiel #5
0
 function test1() {
     return task.src("./test/test1/**/*.js").pipe(jsbeautifier()).pipe(task.dest("./test/test1"));
 },