GithubHelp home page GithubHelp logo

acataluddi / supercell Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeeteshnariya/supercell

0.0 2.0 0.0 365 KB

Front-end build system for Node, React and ES6+ React apps. Includes React Router

JavaScript 59.50% HTML 1.29% CSS 39.22%

supercell's Introduction

SuperCell 2.1.0 - Build 2016

David David

SuperCell Build 2016 is a simple boilerplate for Node, Gulp and ES6+ React apps.

CHANGELOG

v2.1.0, June 5, 2017

v2.0.0, May 24, 2017

  • Updated react-router to v4, hashHistory on by default.
  • Updated outdated packages to current versions.
  • Modified src folder and file structure.

YouTube Demo 1.0.8

SuperCell YouTube Demo

Install Packages

After cloning the project to your computer run the following command in your terminal to install all required node packages.

sudo npm install

The first time you run gulp the build may take a little longer as it compiles and builds out the "public/css" and "public/js" folders and files.

Running App

This build system can be run in two modes: development and production. Use development when you are developing your app. In this mode your JS will not be minified, React will include all its warnings and your CSS will contain sourcemaps to the original SCSS files. When you are ready to deploy you can start the app in production mode which will turn off React warnings, uglify your JS, and turn off sourcemaps for both JS and CSS.

npm run dev  (starts app in development mode) 

Building App and Deploy to Heroku

Make sure you have a Heroku account and heroku-cli installed.

  1. IMPORTANT: COMMENT OUT: in .gitignore comment out last two lines see below. Heroku needs these build folders to run app.
# public/css/
# public/js/
  1. npm run build (creates app production mode ready for heroku or other cloud platform)
  2. Commit your project to git locally. This commit will be used for heroku.
  3. heroku create
  4. git push heroku master
  5. heroku open
  6. IMPORTANT: UNCOMMENT OUT: in .gitignore uncomment out last two lines see below.
public/css/
public/js/
  1. Commit your project back to git with the commented .gitignore. You can now recommit your project to your remote repo without unnecessary build files.

Features

  • ES6+ with Babel. Use all the new niffty ES6+ features and transpile down to ES5.
  • Browserify: JSX transforms, ES6 modules.
  • React Ready!
  • Uglify: minification.
  • BrowserSync.
  • Sass / flexbox ready (IE10+), layout for everygreen browsers.

How to use

Precompiled JS and SCSS files are in the src folder and compile to public. All other files including HTML, image etc. are in public. BrowserSync runs from public and serves as the "Dist" folder for client-side apps.

supercell's People

Contributors

joellongie avatar

Watchers

James Cloos avatar Adriano C. avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.