Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task never defined #162

Open
ghost opened this issue Nov 9, 2018 · 3 comments
Open

Task never defined #162

ghost opened this issue Nov 9, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 9, 2018

Task never defined: tasks
Support gulp4?

function client(cb) {
  src('src/webui/*.tsx')
    .pipe(webpack(require('./config/webpack.dev.client')))
    .pipe(dest('public'));
  cb();
}


function ejs(cb) {
  src('src/nodeui/views/*.ejs')
    .pipe(minifyejs())
    .pipe(dest('build/nodeui/views'));
  cb();
}


function server(cb) {
  src(['src/**/*.ts', 'src/**/*.tsx'])
    .pipe(tsProject())
    .pipe(dest('build/'));
  cb();
}

function development(done) {
  const stream = nodemon({
    script: 'build/app.js',
    ext: 'tsx ts ejs',
    ignore: [
      'node_modules'
    ],
    watch: 'src',
    tasks: ['client', 'ejs', 'server'],
    done: done
  })
}

exports.default = series(client, ejs, server, development);
@ghost
Copy link
Author

ghost commented Nov 10, 2018

It has been solved.
exports.ejs = ejs;
exports.ejs = server;

@joebowbeer
Copy link

@logictuLuoqi this issue should be closed?

@ghost
Copy link
Author

ghost commented Dec 3, 2018

Yes, it can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant