0.3.0 • Published 11 years ago

glazier-card-grunt-config v0.3.0

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

glazier-card-grunt-config

Shared grunt configuration for glazier cards.

Usage

You will need your package.json to add dependencies for the grunt task libraries being used:

npm install --save-dev grunt-contrib-jshint grunt-es6-module-transpiler grunt-contrib-concat grunt-contrib-clean grunt-contrib-copy
npm install --save-dev grunt-ember-handlebars grunt-contrib-handlebars grunt-md5 grunt-s3

Add this to your package.json to include this module:

"glazier-card-grunt-config": "git://github.com/yapplabs/glazier-card-grunt-config.git#master"

Your card's package.json should contain a glazierConfig options object. The consumes, assetHost, shortName and repositoryName keys are required. An example looks like:

"glazierConfig": {
  "consumes": [
    "unauthenticatedGithubApi",
    "authenticatedGithubApi",
    "repository",
    "identity"
  ],
  "assetHost": "http://glazier.s3.amazonaws.com",
  "shortName": "github-issues",
  "repositoryName": "yapplabs/github-issues"
}

In order to use the deploy task, you need to set environment variables with details for your bucket:

GLAZIER_S3_KEY
GLAZIER_S3_SECRET

Placing the following in your Gruntfile.js will give you the standard set of card grunt tasks:

var glazierCardGruntConfig = require('glazier-card-grunt-config'),
  sharedConfig = glazierCardGruntConfig.createSharedConfig(grunt);

grunt.initConfig(sharedConfig);
glazierCardGruntConfig.registerSharedTasks(grunt);

Tasks

  • build - copies concatenated assets into dist folder for use in dev
  • manifest - fingerprints assets and creates a manifest describing them
  • deploy - creates the manifest and fingerprinted assets and uploads them to S3
0.3.0

11 years ago

0.2.9

11 years ago

0.2.8

11 years ago

0.2.7

11 years ago

0.2.6

11 years ago

0.2.5

11 years ago

0.2.4

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago