Coder Social home page Coder Social logo

front-end-boilerplate's Introduction

My Front-End Boilerplate

Tired of setting up bootstrap, bower, sass, and browserify every time? Here ya go

Getting it

Of course, you can do a normal git clone if you want. But you may want to just download the boilerplate and not keep all of the commit history and branches for this project. It is likely that you will want the boilerplate to start a new git project. There are many ways to do this, but here is my favorite:

git clone [email protected]:mattdodge/front-end-boilerplate <project_name>
cd <project_name>
rm -rf .git
git init

Setting it up

After getting it...

npm install
bower install

Building it

After setting it up...

CSS

Make your SASS/SCSS changes in the sass folder. Gulp will build from the sass/style.scss file and put the resulting file in build/style.css. This output style file will contain the bootstrap CSS by default.

JS

Make your JavaScript changes in the js folder. Gulp will build from the js/main.js file and you can use browserify to require other JS files. The resulting JS file will be placed in build/script.js and will contain the bootstrap JavaScript by default.

Bringing it all together

Just run gulp (or gulp watch to watch for changes) to make the builds happen. The index.html file already includes the JS and CSS by default.

front-end-boilerplate's People

Contributors

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