Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update Gruntfile for new WinningJS-build.

  • Loading branch information...
commit f1752ff7355d5d75a7b594840eb30f6a216cb316 1 parent 38fc4b1
@domenic domenic authored
Showing with 9 additions and 11 deletions.
  1. +8 −11 grunt.js
  2. +1 −0  package.json
View
19 grunt.js
@@ -1,22 +1,19 @@
"use strict";
-var winningJSBuild = require("WinningJS-Build");
-
module.exports = function (grunt) {
- winningJSBuild(grunt);
-
+ grunt.loadNpmTasks("winningjs-build");
+
grunt.initConfig({
- lint: {
- all: ["lib/**/*.js"]
- },
- winningJS: {
+ "WinningJS-build": {
+ src: "index.jade",
dest: "out/index.html",
browserify: {
- entry: "lib/start",
+ entry: "lib/start.js",
dest: "out/browserified",
aliases: {
"jquery": "jquery-browserify"
- }
+ },
+ middleware: [require("simple-jadeify")]
},
stylus: {
src: ["styles/**/*.styl", "components/**/*.styl"],
@@ -25,5 +22,5 @@ module.exports = function (grunt) {
}
});
- grunt.registerTask("default", "winningJS");
+ grunt.registerTask("default", "WinningJS-build");
};
View
1  package.json
@@ -21,6 +21,7 @@
"knockoutify": ">= 2.2.0",
"pubit": ">= 1.2.1",
"q": ">= 0.8.10",
+ "simple-jadeify": ">= 1.0.0",
"WinningJS": "git://github.com/NobleJS/WinningJS.git",
"winningjs-build": ">= 0.2.0"
},
Please sign in to comment.
Something went wrong with that request. Please try again.