8000 GitHub - vh22/test-gulp
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

vh22/test-gulp

Repository files navigation

test-gulp

Project setup

Installing Node.js

Node.js logo

  1. Install Node.js and npm(node package manager). Visit this site and download the appropriate version for your system.

  2. Go to the command line or terminal and check if Node.js and npm are installed

To check the node version:

$ node -v

To check the npm version:

$ npm -v
  1. If commands from point 2 are not successful please consider going back to point 1 and reinstalling the Node.js package or rebooting your computer.
$ npm install.

Installing grunt

Grunt logo

  1. Install grunt-cli (command line interface) using an official get started page

  2. Check if grunt was successfully installed

Install all bower components using

$ grunt -v

Installing bower

Bower logo

  1. Install bower using guidelines on the official page or just execute:
npm install -g bower
  1. Check if bower was successfully installed
$ bower -v

Installing dependencies

Node dependencies

Node dependencies are based on the package.json file that is situated in the root of the project. To install them simply do the following command:

$ npm install

If error occurs during installation process delete the node_modules folder and try again

Bower dependencies

Bower dependencies are based on bower.json file that is situated in the root if the project. To install them simply do the following command:

$ bower install

Grunt tasks

  1. Grunt default< 6816 /li>
$ grunt

Starts the local server and executes watch task to recompile all of the specified files

  1. Grunt markup
$ grunt markup

Compiles a markup version that moves bower dependencies into plugins folder so further development if necessary can be used without npm or bower usage

  1. Grunt build
$ grunt build

Creates a build folder with minified css, images and uglified javascript for production purposes

Folder structure

/-- root
    /--app (development folder that contains all of the source files)
      /--css (folder with compiled css files)
      /--images (folder that contains both background and content images)
        /--backgrounds (background images)
        /--content (content images in html, for example, img-news-1.jpg, img-promo-1.jpg)
        /--decorations (site decorations: dividers, markers, bullets, big illustrations)
        sprite.png (combines small icons and illustrations to be used in css through background-position property)
      /--jade (contains jade templates that are compiled into html files using task manager)
      /--inc (contains partials that is often used in javascript like json files or html chunks)
        gallery.html
        data.json
      /--sass (contains sass files that are divided into different folders based on the pattern lab principles)
      /--js (contains all javascript files, files that use jQuery start with a jQuery prefix)
    .csslintrc (contains rules for linting css)
  .editorconfig (defines coding styles like indents and line breaks)
  .gitignore (specifies intentionally untracked files for git to ignore)
  .jscs (code style linter for programmatically enforcing javascript style guide)
  .jscsrc (file to disable any preset rule of javascript style guide)
  .jshintrc (contains rules for javascript linting)
  bower.json (bower dependencies list)
  Gruntfile.js (grunt base file that contains tasks, modules and their options)
  package.json (contains npm dependencies list)
  README.md

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0