Skip to content

Commit

Permalink
Updated build process, removed jQuery, added Jade
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Dec 17, 2015
1 parent 08411f4 commit 3d7780b
Show file tree
Hide file tree
Showing 16 changed files with 104 additions and 203 deletions.
5 changes: 2 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "MyApp",
"version": "1.0.2",
"name": "SpringRoll",
"version": "1.0.3",
"dependencies": {
"jquery": "~1",
"normalize-less": "*"
},
"ignore": [
Expand Down
4 changes: 0 additions & 4 deletions deploy/assets/js/libraries.js

This file was deleted.

1 change: 1 addition & 0 deletions deploy/assets/js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 1 addition & 34 deletions deploy/index.html
Original file line number Diff line number Diff line change
@@ -1,34 +1 @@
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>SpringRoll</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="assets/css/libraries.css?v=1.0.2">
<link rel="stylesheet" href="assets/css/main.css?v=1.0.2">
<link rel="shortcut icon" type="image/png" href="assets/images/favicon.ico">
<link href='http://fonts.googleapis.com/css?family=Titillium+Web:300' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="frame">
<div class="splash">
<a href="https://github.com/SpringRoll/SpringRoll">
<img src="assets/images/logo.png?v=1.0.2" alt="SpringRoll logo" width="128" height="128">
</a>
<h1>SpringRoll</h1>
<div class="links">
<a href="https://github.com/SpringRoll/SpringRoll">Repo</a> |
<a href="https://wiki.springroll.io">Wiki</a> |
<a href="http://api.springroll.io">API Docs</a> |
<a href="http://examples.springroll.io">Examples</a>
</div>
</div>
<div class="glow"></div>
<footer>&copy; CloudKid 2015. MIT License.</footer>
</div>
<script src="assets/js/libraries.js?v=1.0.2"></script>
<script src="assets/js/main.js?v=1.0.2"></script>
</body>
</html>
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>SpringRoll</title><meta name="description" content=""><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"><link rel="stylesheet" href="assets/css/libraries.css?v=1.0.3"><link rel="stylesheet" href="assets/css/main.css?v=1.0.3"><link rel="shortcut icon" type="image/png" href="assets/images/favicon.ico"><link href="http://fonts.googleapis.com/css?family=Titillium+Web:300" rel="stylesheet" type="text/css"></head><body><div class="frame"><div class="splash"><a href="http://github.springroll.io"><img src="assets/images/logo.png?v=1.0.3" alt="SpringRoll logo" width="128" height="128"></a><h1>SpringRoll</h1><div class="links"><a href="http://github.springroll.io">Code | </a><a href="http://wiki.springroll.io">Wiki | </a><a href="http://api.springroll.io">API Docs | </a><a href="http://examples.springroll.io">Examples</a></div></div><div class="glow"></div><footer>&copy; CloudKid 2015. MIT License.</footer></div></body><script src="assets/js/main.js?v=1.0.3"></script></html>
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"private": true,
"version": "1.0.2",
"dependencies": {
"grunt": "~0.4.5",
"project-grunt": "*"
}
}
"private": true,
"version": "1.0.3",
"name": "SpringRoll",
"devDependencies": {
"grunt": "~0.4.5",
"project-grunt": "*",
"grunt-contrib-jade": "^0.15.0"
}
}
8 changes: 3 additions & 5 deletions project.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"name": "SpringRoll",
"version": "1.0.2",
"version": "1.0.3",
"main": [
"src/main.js",
"src/main.less"
],
"libraries": [
"components/normalize-less/normalize.less",
"components/jquery/dist/jquery.min.js"
"components/normalize-less/normalize.less"
],
"librariesDebug": [
"components/normalize-less/normalize.less",
"components/jquery/dist/jquery.js"
"components/normalize-less/normalize.less"
]
}
6 changes: 0 additions & 6 deletions scripts/banner.js

This file was deleted.

8 changes: 0 additions & 8 deletions scripts/config.json

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/package.json

This file was deleted.

39 changes: 0 additions & 39 deletions scripts/push.js

This file was deleted.

83 changes: 0 additions & 83 deletions scripts/update.js

This file was deleted.

25 changes: 25 additions & 0 deletions src/main.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
doctype html
html
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')
title=name
meta(name='description', content='')
meta(name='viewport', content='width=device-width, initial-scale=1.0, maximum-scale=1.0')
link(rel='stylesheet', href='assets/css/libraries.css?v=#{version}')
link(rel='stylesheet', href='assets/css/main.css?v=#{version}')
link(rel='shortcut icon', type='image/png', href='assets/images/favicon.ico')
link(href='http://fonts.googleapis.com/css?family=Titillium+Web:300', rel='stylesheet', type='text/css')
body: .frame
.splash
a(href='http://github.springroll.io')
img(src='assets/images/logo.png?v=#{version}', alt='SpringRoll logo', width='128', height='128')
h1=name
.links
a(href='http://github.springroll.io') Code |
a(href='http://wiki.springroll.io') Wiki |
a(href='http://api.springroll.io') API Docs |
a(href='http://examples.springroll.io') Examples
.glow
footer &copy; CloudKid #{year}. MIT License.
script(src='assets/js/main.js?v=#{version}')
17 changes: 10 additions & 7 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
(function(){

if (DEBUG)
{
console.log("Application started!");
}

}());
// Google Analytics from Google
/* jshint ignore:start */
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
/* jshint ignore:end */

ga('create', 'UA-71529255-1', 'auto');
ga('send', 'pageview');
21 changes: 21 additions & 0 deletions tasks/aliases.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = function(grunt)
{
// HTML tasks
grunt.registerTask('html', 'Build the site HTML', [
'clean:html',
'jade:release'
]);

grunt.registerTask('html-debug', 'Build the site HTML in debug mode', [
'jade:debug'
]);

// Build hooks
grunt.registerTask('_pre-build', [
'html'
]);

grunt.registerTask('_pre-build-debug', [
'html-debug'
]);
};
29 changes: 29 additions & 0 deletions tasks/jade.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
release: {
options: {
data: {
debug: false,
name: "<%= project.name %>",
version: "<%= project.version %>",
year: "<%= new Date().getFullYear() %>"
}
},
files: {
'<%= distFolder %>/index.html': 'src/main.jade'
}
},
debug: {
options: {
pretty: true,
data: {
debug: true,
name: "<%= project.name %>",
version: "<%= project.version %>",
year: "<%= new Date().getFullYear() %>"
}
},
files: {
'<%= distFolder %>/index.html': 'src/main.jade'
}
}
};
3 changes: 3 additions & 0 deletions tasks/overrides/clean.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
html: ['<%= distFolder %>/*.html']
};

0 comments on commit 3d7780b

Please sign in to comment.