Example #1
0
export function test() {
    return start(
        eslint(),
        clean('coverage/'),
        karmaBuild
    );
}
Example #2
0
export function travis() {
    return start(
        eslint(),
        clean('coverage/'),
        karmaBuild,
        coverage
    );
}
Example #3
0
export function dev() {
    return start(
        clean('build/'),
        watch('src/**/*.js', function(file) {
            return start(
                babel(file, 'build/')
            );
        })
    );
}
Example #4
0
test('basic', t => {
  //t.plan(4);

  const start = Start(reporter());

  start(
    files(path.resolve(__dirname, '../compiled')),
    clean(),
    files(path.resolve(__dirname, '../base/main.styl')),
    read(),
    task({sourcemap: false}),
    write(path.resolve(__dirname, '../compiled'))
  )
  .then(() => {
    const te = () => assert(path.resolve(__dirname, '../compiled'), path.resolve(__dirname, '../expected'))
    t.doesNotThrow(te)

    t.equal(
      typeof task,
      'function',
      '1st function'
    );

    t.equal(
      typeof task(),
      'function',
      '2nd function'
    );

    t.equal(
      typeof task()(),
      'function',
      '3rd function'
    );

    t.end();
  });
});
Example #5
0
export function build() {
    return start(
        clean('build/'),
        babel('src/**/*.js', 'build/')
    );
}
Example #6
0
export function tdd() {
    return start(
        clean('coverage/'),
        karmaDev
    );
}