frontend-task-manager v1.0.0
Frontend Task Manager
Gulp task manager for front-end projects.
1. Installation
- Install Node.js® and npm if they are not already on your machine.
- Open a terminal window.
- Clone the task manager to your project folder by executing the following code:
$ npm install donotfold/frontend-task-manager
2. Settings
Configure your project settings by modifying the config.json file.
2.1 Activating your task
The task manager has got several tasks, each one can be either enabled or disabled by setting the active property to true or false.
{
active: true
}2.2 Watch
If you enable a watch task in the config file, the task manager will detect any changes to your files (only in development mode). If this is the case and the browser task is enabled, it will refresh your browser. The watch task will be ignored if the active property is false.
{
watch: true
}2.3 Task options
Some tasks have custom options, change them by adding the options parameter to the config.json file.
3. First run
After configuring your settings, run the start task.
$ npm startRunning this task will download all the required packages.
If you delete the node_modules directory, you need to run this task again.
4. Modes
When you're in development mode, enter the following command. The config file wil be checked and the active tasks will be run.
$ npm run devRun the production command before publishing your project.
$ npm run production8 years ago