wikiwong / js-scaffold

This repository contains basic scaffolding for an ES6 capable JavaScript project with JSX support and live reloading of JavaScript assets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#JS Starter

This project provides a good starting point for a JS project built with gulp.

###Get started

  1. Install Node
  2. $ git clone https://github.com/wikiwong/js-scaffold
  3. $ npm install
  4. $ gulp

###Features

###Preconfigured Gulp Tasks

  • clean - deletes the /build folder and all files within it.
  • html - copies all .html files from /src to /build.
  • lint - runs eslint for all .js and .jsx files and displays results to stdout.
  • serve - starts a development server at http://localhost.espn.go.com:3000 using /build as the root file path.
  • watch - [clean, html] + builds a development js bundle in the /build folder and begins watching for changes, automatically rebuilding the bundle when necessary.
  • build - [clean] + builds a production ready uglified js bundle.
  • default - [watch + serve]

###Eslint eslint rules are defined in .eslintrc and are a fork of Airbnb's, with modifications to support jsx validation.

About

This repository contains basic scaffolding for an ES6 capable JavaScript project with JSX support and live reloading of JavaScript assets.


Languages

Language:JavaScript 99.9%Language:HTML 0.1%