Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unmyke/gulp-task-boilerplate
Boilerplate gulp tasks
https://github.com/unmyke/gulp-task-boilerplate
babel boilerplate gulp hot-reload javascript nodemon webpack
Last synced: 6 days ago
JSON representation
Boilerplate gulp tasks
- Host: GitHub
- URL: https://github.com/unmyke/gulp-task-boilerplate
- Owner: unmyke
- Created: 2019-03-18T07:59:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T16:58:17.000Z (about 2 years ago)
- Last Synced: 2024-11-25T19:17:16.452Z (2 months ago)
- Topics: babel, boilerplate, gulp, hot-reload, javascript, nodemon, webpack
- Language: JavaScript
- Homepage:
- Size: 4.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gulp boilerplate tasks
Provide project tasks to simplify fullstack development process. Your source directory must contain `client`, `server` and `common` directories. Boilerplate use webpack to create client and server builds.
## Installation
Clone this repository and copy `gulpfile.js` and `config` directories into your project.
List of directories:
`src` - example of source files;
`gulpfile.js` - Gulp tasks, contains `constants` directory to setup tasks;
`config` - JSON-config files for application.## Available Gulp tasks:
### Run application
- ```shell
yarn run start
```Create client bundle and start server in production mode.
* ```shell
yarn run devServer
```Start server in dev mode via [Nodemon](https://nodemon.io/).
- ```shell
yarn run devClient
```Start [Webpack Dev Server](https://webpack.js.org/configuration/dev-server/) and [React Hot Loader](http://gaearon.github.io/react-hot-loader/).
- ```shell
yarn run dev
```Run `devServer` and `devClient` in parallel mode.
- ```shell
yarn run devTest
```Run tests.
- ```shell
yarn run devConsole
```Run REPL on server.
#### Clean build directories
- ```shell
yarn run clean
```Clean all build directories
- ```shell
yarn run cleanServer
yarn run cleanCommon
yarn run cleanClient
```Clean specific build directories
#### Transpile
Transpile server, common or both using [Babel](https://babeljs.io/).
```shell
# production mode
yarn run transpileServer
yarn run transpileCommon
yarn run transpile# development mode
yarn run transpileDevServer
yarn run transpileDevCommon
yarn run transpileDev
```#### Bundle
Bundle server, client or both using [Webpack](https://webpack.js.org).
```shell
# production mode.
yarn run bundleDevServer
yarn run bundleClient
yarn run bundle# development mode.
yarn run bundleServer
yarn run bundleDevClient
yarn run bundleDev
```