Giter Site home page Giter Site logo

jimmymorrisuk / front-end-starter-kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bunnyfoot/front-end-starter-kit

0.0 2.0 0.0 281 KB

Bootstrapping front end work flows with Gulp and ensuring coding conventions are kept to.

License: Other

CSS 49.35% HTML 44.70% JavaScript 5.94%

front-end-starter-kit's Introduction

Gulp Front end starter kit

A starter kit to bootstrap project's front ends. It's designed to be lightweight to be reusable, but also contains some non project specific highly used code (unlike Twitter BS) to give you a boost at the start.

There are two main purposes to this kit. One is to create a general workflow managed by Gulp to automate tasks. The other is to provide a project bootstrap to speed up starting a project in ensure conventions are followed (of course these can be removed to suit).

What is included

Workflow tasks (via gulp command):

  • Static file server via localhost
  • Live reload of file changes
  • SASS to CSS compilation
  • CSS browser prefixes
  • Minified CSS and JS (renamed to include .min)
  • CSS and JS source maps
  • Image opimisation (runs only on new/changed files)

Project bootstrapping:

  • TODO

Getting started

Machine set up If you don't have the following already.

  • Install node for on your machine: http://nodejs.org
  • Install Gulp globally: sudo npm install --global gulp

Using this on a project

  • Clone this repo to start a new project and name it
  • Get npm to install the project dependencies npm install
  • When ready run gulp any you are away, the server will start

The workflow

You add your file and make edit inside of the app/src folder this is your working environment. The app/dist folder is your production code designed to be efficient for the browser, although it will come with source maps.

Simple flow Make human friendly code in app/src -> see browser friendly output in app/dis for use in the production enviroment.

Troubleshooting

npm EACCESS - error

Quite often you can have issues with npm and access permissions. First try running the command with sudo or sudo !! to run the last command as sudo. If that fails try checking the node_module folder has the correct owner and try again.

Segmentation fault: 11 - error

Not sure what exactly triggers this issue. However I seems to be linked to the SASS package. See more here: gulpjs/gulp#785

License

Front end starter kit.

Modified from the Bunnyfoot starter kit 2015. Copyright (C) 2016 James Morris.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

For full license details see LICENSE.txt

Basic license agreements

Required

  • Disclose Source
  • License and copyright notice
  • State Changes

Permitted

  • Commercial Use
  • Distribution
  • Modification
  • Patent Grant
  • Private Use

Forbidden

  • Hold Liable
  • Sublicensing

For full license details see LICENSE.txt

front-end-starter-kit's People

Contributors

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