GithubHelp home page GithubHelp logo

grunt-nodetiles's Introduction

Nodetiles framework tool.

Getting Started

Install this Grunt plugin with: npm install -g nodetiles

To test installation, run the nodetiles command. You should see something like this:

screenshot

Commands

All commands are prefixed with nodetiles in your terminal. For example the command init below would be executed like this:

$ nodetiles init

Tasks are defined inside the grunt-nodetiles project, but also borrowed from other grunt projects: grunt-contrib & grunt-jasmine-task

If you have problems with borrowed tasks, please file issues on the respective projects.

Scaffolding

These commands will build out files for you.

init (nodetiles)

Creates a bare boilerplate project.

Maintenence

These commands help you maintain your project.

lint (grunt)

Ensures all your code conforms to JSHint.

list (bbb)

Shows a tree of your application's modules and dependencies.

Build

These commmands help you build your application.

debug (bbb)

Lints all your JavaScript, compiles all your templates to JST (JavaScript Templates), builds your application using RequireJS build tool (figures out dependencies and concatenates all files), and then finally concatenates the templates and application together. This task also swaps out RequireJS for Almond (signficantly smaller filesize AMD manager).

release (bbb)

Everything that debug command does, except the final tasks here are minified CSS and minified JavaScript.

clean (grunt-contrib)

Removes all files inside dist/ directory.

handlebars (grunt-contrib)

Compiles handlebars templates - this requires setup.

jst (grunt-contrib)

Compiles all templates as underscore template functions and outputs them to dist/debug/templates.js.

less (grunt-contrib)

Compiles LESS stylesheets.

mincss (grunt-contrib)

Minifies your CSS into dist/release/index.css.

requirejs (bbb)

Builds out your application using the defaults specified into the root grunt.js file.

server (bbb)

Will by default run with normal files perfect for development and debugging.

server:debug (bbb)

This command serves the same files excepts that your application is mapped to the dist/debug directory. This is mostly useful for detecting issues with the build, since files are not minified.

server:release (bbb)

This command will serve the same was debug except mapping to dist/release instead. This setup is how your application should be deployed.

styles (bbb)

Parses a valid CSS file for @imports and concatenates them into an output file. Will automatically build stylus files as it encounters them.

Sample configuration:

styles: {
  // Output stylesheet file.
  "dist/debug/index.css": {
    // Main CSS source file, containing the @imports.
    src: "assets/css/index.css",

    // Relative path for `@imports`.
    paths: ["assets/css"],

    // Add additional stylesheets.
    additional: ["assets/css/production-fixes.css"]
  }
},

Development

If you wish to contribute or just want to install from source, simply run the following commands:

# Clone the repository.
git clone git://github.com/nodetiles/grunt-nodetiles.git

# Change directory into it.
cd grunt-nodetiles

# Update all the submodules recursively.
git submodule update --init --recursive

# Allow nodetiles to be globally accessible.
sudo npm link

License

Copyright (c) 2012 Tim Branyen (@tbranyen)
Licensed under the MIT license.

grunt-nodetiles's People

Contributors

benatkin avatar bensheldon avatar engram-design avatar jacobk avatar jtuulos avatar mpereira avatar mr0grog avatar ruzz311 avatar shama avatar tbranyen avatar twalker 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.