Skip to content

This repository will be useful if you are going to build a small-medium tier project and you want to write your frontend in Typescript or modern Javascript with SCSS styling.

License

Notifications You must be signed in to change notification settings

oleksii-sirochenko/gulp-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gulp build

Version 1.3.3

This repository will be useful if you are going to build a small-medium tier project and you want to write your frontend in Typescript or modern Javascript with SCSS styling.

Gulp config fits very good with Wordpress project. You don't have to deal with Webpack and you can start development quickly.

1. Open terminal.

2. We need to start a project, step into desired directory and execute:

npm init

3.Install gulp-cli if you don't have one:

npm install -g gulp-cli

4. Install required packages (copy as one line):

5. Configure gulpfile.js, gulp-build.js. You can change paths to files, folders. Add different TS or JS files to separate compiling.

6. Use available Gulp tasks to build your frontend project.

/**
 * --------------------
 * Available gulp tasks
 * --------------------
 * Project build:
 *
 * gulp build
 * --------------------
 * SCSS:
 *
 * gulp build-scss
 * gulp watch-scss
 * --------------------
 * Typescript:
 *
 * gulp build-ts
 * gulp watch-ts
 * --------------------
 * Javascript:
 *
 * gulp build-js
 * gulp watch-js
 * --------------------
 */

Known caveats:

JS files are broken during 'build' task.

Solution:

If you have JS files that should be compiled and you want to copy all other JS files from that folder or subfolders that is being watched you will see broken files. Please put all the files that should only be copied to dist folder in a separate folder. The best thing is to put all the libraries with all their files into 'libs' folder and after that copy it to the dist.

Useful links:

https://www.typescriptlang.org/docs/handbook/gulp.html

Copyright (c) Oleksii Sirochenko https://github.com/oleksii-sirochenko

MIT License https://opensource.org/licenses/MIT

About

This repository will be useful if you are going to build a small-medium tier project and you want to write your frontend in Typescript or modern Javascript with SCSS styling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published