Add a bunch of example files to show how to use monty-python.
Showing
14 changed files
with
133 additions
and
0 deletions
... | @@ -36,6 +36,17 @@ module.exports = function(grunt) { | ... | @@ -36,6 +36,17 @@ module.exports = function(grunt) { |
36 | validateIndentation: 4, | 36 | validateIndentation: 4, |
37 | }, | 37 | }, |
38 | }; | 38 | }; |
39 | config.punch = { | ||
40 | }; | ||
41 | config.css = { | ||
42 | options: { | ||
43 | dirs: ['css'], | ||
44 | }, | ||
45 | }; | ||
46 | config.bower = { | ||
47 | directory: 'lib', | ||
48 | }; | ||
49 | config.useRev = true; | ||
39 | 50 | ||
40 | var montyPython = require('./grunt-monty-python')(grunt); | 51 | var montyPython = require('./grunt-monty-python')(grunt); |
41 | montyPython.createConfig(config); | 52 | montyPython.createConfig(config); | ... | ... |
bower.json
0 → 100644
src/css/style.css
0 → 100644
File mode changed
src/punch/contents/index.json
0 → 100644
1 | {} |
src/punch/templates/_html-head.mustache
0 → 100644
1 | <!doctype html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
5 | <title></title> | ||
6 | <!-- build:css({src, .grunt/usemin}) /css/style.css --> | ||
7 | <link href="/css/style.css" rel="stylesheet" type="text/css" /> | ||
8 | <!-- endbuild --> | ||
9 | <!-- build:js({src, .grunt/usemin}) /scripts/head-libs.js --> | ||
10 | <!-- endbuild --> | ||
11 | <!-- build:js({src,.grunt/holygrail}) /lib/requirejs/require.js --> | ||
12 | <script type="text/javascript" src="/scripts/config.js"></script> | ||
13 | <script type="text/javascript" src="/lib/requirejs/require.js"></script> | ||
14 | <!-- endbuild --> | ||
15 | <!-- build:js({src,.grunt/holygrail}) /scripts/main.js --> | ||
16 | <!-- endbuild --> | ||
17 | </head> | ||
18 |
src/punch/templates/_layout.mustache
0 → 100644
src/punch/templates/_nav.mustache
0 → 100644
src/scripts/config.js
0 → 100644
1 | /* global require:true */ | ||
2 | require = (function() { | ||
3 | 'use strict'; | ||
4 | var require = { | ||
5 | baseUrl: 'scripts', | ||
6 | deps: [ | ||
7 | 'main', | ||
8 | ], | ||
9 | map: { | ||
10 | '*': { | ||
11 | 'backbone': 'setup/backbone', | ||
12 | 'rivets': 'setup/rivets', | ||
13 | }, | ||
14 | 'setup/backbone': {backbone: 'backbone'}, | ||
15 | |||
16 | 'setup/rivets': {rivets: 'rivets'}, | ||
17 | 'rivets-backbone-adapter': {rivets: 'rivets'}, | ||
18 | }, | ||
19 | paths: { | ||
20 | jquery: '../lib/jquery/dist/jquery', | ||
21 | underscore: '../lib/underscore/underscore', | ||
22 | backbone: '../lib/backbone/backbone', | ||
23 | |||
24 | rivets: '../lib/rivets/dist/rivets.min', | ||
25 | sightglass: '../lib/sightglass/index', | ||
26 | }, | ||
27 | shim: { | ||
28 | backbone : { | ||
29 | deps: ['underscore', 'jquery'], | ||
30 | exports: 'Backbone' | ||
31 | }, | ||
32 | rivets : { | ||
33 | deps: ['sightglass'], | ||
34 | exports: 'rivets' | ||
35 | }, | ||
36 | 'rivets-backbone-adapter' : { | ||
37 | deps: ['rivets'] | ||
38 | }, | ||
39 | sightglass: { | ||
40 | exports: 'sightglass' | ||
41 | }, | ||
42 | underscore : { | ||
43 | exports: '_' | ||
44 | }, | ||
45 | }, | ||
46 | }; | ||
47 | return require; | ||
48 | })(); |
src/scripts/main.js
0 → 100644
src/scripts/setup/backbone.js
0 → 100644
-
Please register or sign in to post a comment