Mission statement


1. Development tasks gulp build_dev

After creating the project according to the directory structure introduced earlier, enter gulp build_dev on the command line to enter development model.

  • Automatically create a dev directory consistent with the src directory to store ejs and less compiled files
  • Automatically monitor all file changes
  • Automatically refresh when monitoring file changes Browser, you can choose to turn it on or off in the workflow configuration file.tmtworkflowrc

2. Production task gulp build_dist

After the development is completed, execute gulp build_dist to generate the final file that can be released online. Automatically generate a dist directory to store all compiled and merged files.

3. FTP deployment gulp ftp

This task depends on the production task, execute gulp ftp, gulp build_dist will be executed first to generate the dist directory, and then the generated dist directory will be uploaded to the ftp address specified by .tmtworkflowrc.

4. Packaging gulp zip

When executing the zip task, gulp build_dist## will be executed first # Generate the dist directory, and then package and compress it into a zip package.

Note: All development modifications are in the src source file directory. The dev and dist directories are automatically compiled and generated for the task and do not need to be touched. After the ftp and zip tasks are executed, the dist directory generated by calling build_dist will be automatically deleted. The directory generated by executing the build_dist task will not be deleted.