Skip to content

03) Gulp Tasks

smccorma edited this page Jun 15, 2017 · 4 revisions

For other gulp tasks unlisted here, please look into the gulp/ folder. The following are the more important gulp tasks for running the application for development.

How to run front end portion only

  1. gulp frontend

This will launch a server that will host your application without running the back end.

How to run back end portion only

  1. gulp backend

This will only start up the back end. You can use this to quickly test API routes.

How to run entire application

  1. gulp build:dev
  2. nf start web

If you want to run the back end while watching for changes to the front end

  1. Run our entire app with our backend with the steps above
  2. In a separate terminal run gulp frontend:combined

This server will also be updated when you change one of the source files.

Testing and code quality tasks

  1. lint: lint:client lint:html lint:server
  2. test: test:client test:server:pre-test test:server
  3. code: codeclimate

Clone this wiki locally