Giter Site home page Giter Site logo

themihel / frontend-starter-kit Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 54 KB

Lightweight, minimalistic starter kit for frontend/website projects based on the gulp task-runner.

License: MIT License

HTML 11.10% JavaScript 72.50% SCSS 16.40%
boilerplate starter-kit frontend minimal

frontend-starter-kit's Introduction

frontend-starter-kit

🚨 This repository is deprecated 🚨 It basically still works but there are a lot of new frontend tools and even newer versions regarding the build steps (e.g. gulp).

Lightweight starter kit for frontend/website projects.

Features

  • Lightweight / no boilerplate code
  • SASS/SCSS support
  • Minified / concatenated Javascript and CSS
  • Linted Javascript with ESLint
  • Basic editorconfig and JavascriptCodeStyle config
  • Bower support (see gulp tasks)
  • Up to date dev-dependencies thanks to @greenkeeperio
  • Synchronised browser testing by BrowserSync

Get started

Download

git clone https://github.com/themihel/frontend-starter-kit.git
cd frontend-starter-kit
npm install

Usage

Developing

Just run gulp serve and start coding πŸŽ‰

Your browser will automatically reload on each saved action!

Gulp-tasks

  • gulp styles : Compile/concat sass files (minify for dist)
  • gulp scripts : Concat js files ((minify for dist))
  • gulp lint : Lint js files with ESLint
  • gulp images : Optimize images from images folder
  • gulp html : Copy and minify html files into dist folder
  • gulp bower : Copy bower files into dist folder
  • gulp clean : Remove tmp and dist folder
  • gulp dist : Compiles/concats/lint/minifies code for production/upload
  • gulp serve : Serve files for local testing (code unminified)
  • gulp serve:dist : Serve files from dist folder for final testing
  • gulp watch : Compiles sass / Lint and concat js files (see: styles, lint, scripts)

Note: gulp watch, gulp serve and gulp serve:dist automatically run on code changes

Build / Upload

Run gulp dist and upload all files from dist directory to your server. That's it 😊

Recommended file structure

frontend-starter-kit
β”‚   .editorconfig
β”‚   .eslintrc
β”‚   .gitignore
β”‚   .jscsrc
β”‚   gulpfile.js
β”‚   LICENSE
β”‚   package.json
β”‚   README.md
β”‚
└───app
    β”‚   index.html
    β”‚   ...
    β”‚
    β”œβ”€β”€β”€scripts
    β”‚   β”‚   app.js
    β”‚   β”‚   ...
    β”‚
    β”œβ”€β”€β”€images
    β”‚   ...
    β”‚
    └───styles
        β”‚
        β”‚   app.scss
        β”‚
        β”œβ”€β”€β”€core
        β”‚   β”‚   _core.scss
        β”‚   β”‚   _vars.scss
        β”‚   β”‚   ...
        β”‚
        β”œβ”€β”€β”€mixins
        β”‚   β”‚   _normalizeBoxSize.scss
        β”‚   β”‚   ...
        β”‚
        β”œβ”€β”€β”€modules
        β”‚   β”‚   ...
        β”‚
        └───views
            β”‚   ...


frontend-starter-kit's People

Contributors

themihel avatar greenkeeperio-bot avatar greenkeeper[bot] avatar

Stargazers

Behzad Noroozi Fotoohieh avatar

Watchers

 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.