Code Monkey home page Code Monkey logo

scss_starter_pack's Introduction

scss-starter-pack

SCSS Starterkit working with scss, gulp, browsersync, gulp-file-include. Version 2.0

Main Dependencies

  • browser-sync
  • gulp
  • gulp-file-include
  • gulp-sass
  • gulp-uglify
  • stylelint
  • autoprefixer
  • gulp-clean-css

Quick Start

First, make sure that you have installed Node.js, npm and gulp globally:

Install Node.js and npm

https://nodejs.org/en/

Install Gulp

npm install --global gulp

Install scss-starter-pack

For installation, clone or download the package and open the terminal to run:

# Go to the root folder of your project, or just type cd, space and drag n drop the folder in terminal
cd /main-folder-of-your-project

# Install browserSync and all the node dependencies that we need
npm install

# Gulp default generate the build folder and start browserSync
gulp

# Gulp run only generate the build folder
gulp run

After installation and run gulp, browser-sync will lunch the automatically with http://localhost:3000 on the port :3000. On the port :3001 will find other browser-sync feature.

Structure

Inside the app there is all you need for your project

  app
   ├── build                  # Build folder
   │   ├── css                # CSS builded files from SCSS folder
   │   └── js                 # JS folder with app.min.js(plugins.js + main.js) builded from ./app/js/ folder
   │   └── img                # Your img folder or video, fonts, etc.
   │   └── ...                # JS folder with app.min.js(plugins.js + main.js) builded from ./app/js/ folder
   ├── inc                    # Include folder via gulp-file-include (_header.html, _footer.html, etc.)
   ├── js                     # Test files (alternatively `spec` or `tests`)
   │   ├── main.js            # Your scripts
   │   └──  plugins.js        # Your JQuery plugins
   ├── scss                     
   │   ├── main.scss          # Main file with all the @import    
   │   ├── _mobile.scss       # Style for tablet breakpoint  
   │   ├── _mobile.scss       # Style for mobile breakpoint  
   │   └── ...
   └── ...
  • The folder ./app/js is just for compile and build the file plugins.js and main.js. For other plugins or scripts, put .js files into the ./app/build/js/

Gulp file inlcude

You can include files thanks to gulp-file-include. All the included files are in the ./app/inc folder.

<!-- just put this code inside your .html files -->
@@include('inc/_name-file.html')

Stylelint

Stylelint is included for SCSS. You can install on your own editor via this guide: https://stylelint.io/user-guide/complementary-tools/#editor-plugins

Other documentation

scss_starter_pack's People

Contributors

dependabot[bot] avatar francescocortese 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.