Giter Club home page Giter Club logo

cell-starter-project's Introduction

cell-starter-project

Hit the ground running by starting out with this project. Develop, test, and build. It's all here.

Developing

2 - Get dependencies

> make deps

3 - Start the compilers

# In another terminal
> script/stylus-compiler --watch

# In another terminal
> script/coffee-compiler --watch

This will compile .styl to .css and .coffee to .js. File changes will automatically be recompiled.

4 - Start the dev server

# In another terminal
> script/server

In a browser, visit http://localhost:3000/index-dev.html

5 - Develop the next big thing

Running Specs from the browser

> make browser-specs

# If the server isn't running...
> script/server

Visit http://localhost:3000/spec-runner/

Running Specs from the command line

> make specs

Building for production

> make clean; make

In a browser, go to http://localhost:3000/index.html.

The Stack

index.html vs index-dev.html

index-dev.html is for development time (and fast prototyping). To avoid a time consuming concatenation and minification steps (on top of compiling Coffee and Styl to JS and CSS) everytime a change is made, JS Modules and CSS are loaded individually. Also, it is easier to navigate and debug the code in browser developer tools. Unfortunately, loading each JS and CSS file individually is not suitable for production for a performance reasons...

index.html is for production. It references src/bootstrap.js and src/bootstrap.css which is the concatenation and minification of all the necessary JS modules and CSS files.

Having these 2 files may go away as advancements in tooling and browser support of sourcemaps develops.

cell-starter-project's People

Contributors

peterwmwong avatar

Watchers

 avatar  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.