e1ade724 by Adam Heath

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

1 parent 22f587dd
.*.sw?
node_modules/
.grunt/
dist/
src/lib/
......
......@@ -36,6 +36,17 @@ module.exports = function(grunt) {
validateIndentation: 4,
},
};
config.punch = {
};
config.css = {
options: {
dirs: ['css'],
},
};
config.bower = {
directory: 'lib',
};
config.useRev = true;
var montyPython = require('./grunt-monty-python')(grunt);
montyPython.createConfig(config);
......
{
"name": "grunt-monty-python",
"version": "2016.05.25-0",
"ignore": [
"**/.*",
"node_modules",
"src/lib"
],
"dependencies": {
"jquery": "",
"requirejs": "",
"underscore": "",
"backbone": "",
"rivets": "",
"rivets-backbone-adapter": ""
}
}
File mode changed
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<!-- build:css({src, .grunt/usemin}) /css/style.css -->
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<!-- endbuild -->
<!-- build:js({src, .grunt/usemin}) /scripts/head-libs.js -->
<!-- endbuild -->
<!-- build:js({src,.grunt/holygrail}) /lib/requirejs/require.js -->
<script type="text/javascript" src="/scripts/config.js"></script>
<script type="text/javascript" src="/lib/requirejs/require.js"></script>
<!-- endbuild -->
<!-- build:js({src,.grunt/holygrail}) /scripts/main.js -->
<!-- endbuild -->
</head>
{{> html-head}}
<body>
{{> nav}}
<div class="page">
</div>
{{> standard-footer}}
</body>
{{> standard-footer-scripts}}
</html>
/* global require:true */
require = (function() {
'use strict';
var require = {
baseUrl: 'scripts',
deps: [
'main',
],
map: {
'*': {
'backbone': 'setup/backbone',
'rivets': 'setup/rivets',
},
'setup/backbone': {backbone: 'backbone'},
'setup/rivets': {rivets: 'rivets'},
'rivets-backbone-adapter': {rivets: 'rivets'},
},
paths: {
jquery: '../lib/jquery/dist/jquery',
underscore: '../lib/underscore/underscore',
backbone: '../lib/backbone/backbone',
rivets: '../lib/rivets/dist/rivets.min',
sightglass: '../lib/sightglass/index',
},
shim: {
backbone : {
deps: ['underscore', 'jquery'],
exports: 'Backbone'
},
rivets : {
deps: ['sightglass'],
exports: 'rivets'
},
'rivets-backbone-adapter' : {
deps: ['rivets']
},
sightglass: {
exports: 'sightglass'
},
underscore : {
exports: '_'
},
},
};
return require;
})();
define(function(require) {
});
define(function(require) {
'use strict';
var Backbone = require('backbone');
return Backbone;
});
define(function(require) {
'use_strict';
var _ = require('underscore');
var rivets = require('rivets');
require('rivets-backbone-adapter');
return rivets;
});