zzdjk6 / catalyst-frontend

A configurable frontend build pipeline that caters for everything from simple SASS compilation only, right through to ES2015 plus React.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

catalyst-frontend

A configurable frontend build pipeline that caters for everything from simple SASS compilation only, right through to ES2015 plus React.

catalyst-frontend preview

Available functionality

This opinionated tool (as used at Catalyst) aims to get you up and running with one of two configurable frontend build pipelines (Gulp or Webpack). It generates documentation to get you started and gives you the config files so you can tweak them further yourself if you like.

Gulp pipeline

For simple projects where you are not intending to utilise ES2015.

Basic functionality:

Optional functionality:

Webpack pipeline

For projects where you want to use ES6 transpilation.

Basic functionality:

Optional functionality:

Installation

We assume you have pre-installed node.js (for a Ubuntu package managed version see the package manager instructions) at least version 6.

Install catalyst-frontend for global use (you may need to run this command as root):

npm install -g catalyst-frontend

Usage

From the location where you want your project to be located, generate your new project:

catalyst-frontend

You'll be asked questions about your project and the build pipeline will be built according to your answers.

Storing configuration

When you run the generator a .yo-rc.json file will be generated that remembers the answers you provided. If you want to force the project to re-ask you the questions next time, just re-run with the --reconfigure flag set.

catalyst-frontend --reconfigure

TODO

  • Ask for project setup parameters e.g. tabs vs whitespaces, semicolons or not
  • Webpack TypeScript option

License

GPL-3.0 © Catalyst

About

A configurable frontend build pipeline that caters for everything from simple SASS compilation only, right through to ES2015 plus React.

License:Other


Languages

Language:JavaScript 92.9%Language:CSS 5.0%Language:HTML 2.1%