Giter Site home page Giter Site logo

victorallegret / gulpdup Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.19 MB

GulpDup 🌵 is a blank template for making statics webapps using Gulp.js with Sass, Slim, CoffeeScript & BrowserSync.

Home Page: https://gulpdup.netlify.com/

License: MIT License

HTML 18.43% JavaScript 35.26% CSS 44.12% CoffeeScript 2.19%
gulp browsersync gulp-sass gulp-coffee gulp-slim turbolinks bootstrap4 browserify slick-carousel

gulpdup's Introduction

GulpDup

GulpDup is a blank template for making statics webapps propulsed by Gulp.js.
It work with Sass, Slim-template and CoffeeScript.
The project use BrowserSync to run a multi-device auto-reload server.
It come with a bunch of libraries, required with Browserify : Bootstrap v4, Jquery, Slick-carousel, Waypoints and Turbolinks.
GulpDup project structure is based on the Atomic Design Methodology (Atoms | Molecules | Organisms).

Install

WARNING You must have node.js installed to run GulpDup.

First, you’ll have to fork or clone the GulpDup repository

You will have to install :

$ npm install gulp -g

Then in your Terminal :

$ npm install

That’s it ! You now can use all the features of GulpDup.

Commands

You can run independently every commands of the gulpfile.js. But the 3 commands you need are the following:

  • Create your development environment :

    $ gulp
    

    This command will run every command you need to launch a local server and compile all your assets / templates.
    This command will also start a gulp.watch task. The server will watch every .sass, .slim and .coffee files. If you update one of these files, the server will reload.

  • Create your production environment:

    $ gulp build
    

    This command will create a build folder with all the assets / template optimized and ready to deploy.

  • Clean the production environment:

    $ gulp clean
    

    This command will destroy the build folder, previously created with $ gulp or $ gulp build.

Plugins

GulpDup use a bunch of npm plugins:

INFOS Feel free to add some in the gulpfile !

Vendors

GulpDup use a bunch of vendors:

INFOS You can use require to call new vendors in the ./dev/assets/javascripts/vendors.js.

Project structure

INFOS You can update the default structure project, but you may need to update the gulfile.js too.

The project is based on the Atomic Design Methodology.

The development structure is divided into 2 folders :

  • assets : Stylesheets (sass / css vendors) | Javascripts (coffeeScript / js vendors) | Fonts | Images.
  • views : Slim templates of the project (HTML)

Views structure

There is 2 types of slim files:

  • basic files : index.slim, contact.slim etc ...
  • partials files : _index.slim, _contact.slim etc ...

WARNING All the partials must be call with an underscore. ex: _layout.slim

Basics files you should need are the ./dev/views/layout/ files & partials : application.slim, _footer.slim _header.slim.

INFOS Every files are injected into the application.slim file, but you will have to include the footer partial into each file cause of a WIP issue of gulp-wrap.

Assets structure

  • fonts

    • Use .eot, .svg, .ttf, .woff, .woff2 extensions.
    • Put all fonts you need in this folder.
    • If you add a new font, $ gulp fonts and refresh the page.
    • You can create folders to organize your fonts.
    • Defaults text fonts are : brandon, gotham and Unna.
    • The project use the Material Design Icons : i.material-icons face
  • images

    • Use .png, .jpg, .jpeg, .gif, .svg, .ico extensions.
    • Put all images you need in this folder.
    • If you add a new image, $ gulp img and refresh the page.
    • You can create folders to organize your images.
  • javascript

    • Remember to call every files in the main.coffee file.
    • Use classes.
    • Feel free to update the default javascripts folders.
    • Call with require the vendors you need in the vendors.js file.
  • stylesheets

    • If you add new folders, remember to call them into the main.sass file.
    • The project use bootstrap, so there is some basic styles.
    • The project come with a bunch of variables | mixins | helpers, free to update !
    • I recommand to design every components of the project into the ./dev/assets/stylesheets/components/ folder.

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.