Giter Site home page Giter Site logo

website-skeleton's Introduction

Simple Website Skeleton

This is just a simple, extendable skeleton for creating a brand new frontend website.

Key features:

  • ES2015 via Babel
  • SCSS
  • browser-sync

Setup

  1. Clone the repo
  2. Change details (name, version) in package.json.
  3. Remove the git origin: git remote remove origin
  4. npm install (and maybe npm update if you run into problems)

Now you can run gulp serve, edit your files and watch browser-sync do its magic.

Files

dist/index.html

This is just the basic structure for HTML5.

src/js/ and src/css/

Here you can put your JavaScripts and SCSS. You can also use sub-directories to keep things organized. JavaScript files will be compiles into one file (dist/js/main.js) by Browserify, Sass files will be compiled as-is.

Quick, I need jQuery!

npm install --save jquery

And in your script:

import $ from "jquery";

$('<h1>').text('Yay!').appendTo('body');

Production

By default, Browserify will add source maps to the output and Sass's output style will be the default nested one. To disable source maps and enable CSS compression run gulp --production.

rollup.js

There's a WIP version of this repo which uses rollup.js instead of Browserify. You can find it in its own branch.

website-skeleton's People

Contributors

dvelopment avatar retzu avatar retzudo avatar

Watchers

 avatar  avatar

Forkers

codeloversat

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.