e1ade724 by Adam Heath

Add a bunch of example files to show how to use monty-python.

1 parent 22f587dd
1 .*.sw? 1 .*.sw?
2 2
3 node_modules/ 3 node_modules/
4 .grunt/
5 dist/
6 src/lib/
......
...@@ -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);
......
1 {
2 "name": "grunt-monty-python",
3 "version": "2016.05.25-0",
4 "ignore": [
5 "**/.*",
6 "node_modules",
7 "src/lib"
8 ],
9 "dependencies": {
10 "jquery": "",
11 "requirejs": "",
12 "underscore": "",
13 "backbone": "",
14 "rivets": "",
15 "rivets-backbone-adapter": ""
16 }
17 }
18
File mode changed
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
1 {{> html-head}}
2
3 <body>
4 {{> nav}}
5 <div class="page">
6 </div>
7 {{> standard-footer}}
8 </body>
9 {{> standard-footer-scripts}}
10 </html>
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 })();
1 define(function(require) {
2
3
4 });
1 define(function(require) {
2 'use strict';
3 var Backbone = require('backbone');
4
5 return Backbone;
6 });
1 define(function(require) {
2 'use_strict';
3
4 var _ = require('underscore');
5 var rivets = require('rivets');
6 require('rivets-backbone-adapter');
7
8 return rivets;
9 });