Skip to content

The project contains boilerplate for ES6 project. It uses Yarn, Babel, Browserify and Gulp.

Notifications You must be signed in to change notification settings

stas-kh/es6-gulp-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

es6-gulp-boilerplate

The project contains a boilerplate for ES6 projects.

Project goal

The main idea is to compile ES6 code using babel, browserify and gulp. The goal is to have a build folder that has simplified structure with one JS, CSS and index.html file.

Initial setup

# Clone the repo...
git clone https://github.com/stas-kh/es6-gulp-boilerplate
cd es6-gulp-boilerplate

# Project uses Yarn as package manager, so you have to install it globally
npm install -g yarn

# Then, you should run the following command in your terminal
run-gulp.bat

Usage

Preparation

To make a build version run:

run-gulp.bat

It runs gulp and enables watching changes in source code by means of gulp.watch.

How to make changes

Gulp will rebuild your project each time when change has been done. All the changes should be done in src folder.

JavaScript

All required modules should be stored as a sub-folders, for example src/js/new-panel/ and each module should be exported to be used in another modules or index.js file

Styles

All CSS files should be located in: src/css/ folder.

HTML

HTML file is located in src/index.html folder. You do not have to add references on your own JavaScript or CSS files into index.html (they are already added and refer to dist directory), it should have only your HTML markup and links on some external resources (such as fonts, libraries, external css files etc.)

About

The project contains boilerplate for ES6 project. It uses Yarn, Babel, Browserify and Gulp.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published