Git Product home page Git Product logo

simple-es6-sass-boilerplate's Introduction

#simple-es6-sass-boilerpalte

A really simple ES6 SASS boilerplate for quick experiments. Just download the ZIP, make sure your machine fulfills the requirements and run ./run.sh. Now you can open http://localhost:7777 to see the result.

##Basic idea I was tired of being stopped in the middle of having an idea. I just wanted to give some thought a try but usually this meant something like cloning my old grunt boilerplate running npm install keeping fingers crossed that no dependency changed. Fixing dependencies. After two hours every motivation was lost and the node_modules of this stillborn project idea weights 200MB on my hard drive.

I wanted something simple which runs in the command line. So I got the idea of building my own Node based build tool, which I only had to install once and which could scaffold a new project for me. It got a little bit out of hand, fast.

Basically what I wanted is there. Babel and SASS have CLIs which are much easier to use than configuring these in something like ... webpack. (Great (no irony) project, guys - but didn't you learn anything from the Grunt configuration hell?)

##Requirements

If you work on a Linux or OS X machine you have a Unix shell and Python. If your on Windows - I never tested it there. Maybe it runs on Cygwin. But probably it's easier to port the shell scripts.

The other stuff are NPM packages which you need in your $PATH

Just run:npm install -g babel-cli watchify node-sass

And you need to install the babel presets in your $HOME folder

cd $HOME
npm install babel-preset-es2015 babel-preset-react

##Usage

  1. Download the Zip-File and uncompress it
  2. Enter the boilerplate folder in a terminal
  3. Run ./run.sh
  4. Open http://localhost:7777

##Folderstructure

  • Boilerplate folder
  • web - this is the folder you see in your browser. You can edit your static assets and HTML here
  • .tmp - Temp folder
  • src - Here is where you code ES6 and SASSS
    • es6 - Your javascript folder. You need to keep the script.js as entry point for the module bundler.
    • scss - Your SASS folder

##Drawbacks

  1. You need to refresh your browser manually
  2. I would not use it for big project

##Feedback and participation If you have any feedback please tell me. If you find bugs please open an issue or better a pull request. I'm open to many ideas so long they keep in the spirit of the project:

No one should start a frontend experiment by fixing npm dependencies

simple-es6-sass-boilerplate's People

Contributors

pixelkritzel avatar

Watchers

James Cloos 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.