Skip to content

Commit 96a7a18

Browse files
committed
updated readme
1 parent d492c20 commit 96a7a18

File tree

8 files changed

+129
-102
lines changed

8 files changed

+129
-102
lines changed

.jshintrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@
99
"undef": true,
1010
"boss": true,
1111
"eqnull": true,
12-
"node": true
12+
"node": true,
13+
"quotmark": "double",
14+
"trailing": false
1315
}

Gruntfile.js

+50-33
Original file line numberDiff line numberDiff line change
@@ -9,70 +9,85 @@
99
module.exports = function(grunt) {
1010

1111
var cssCopy = {
12-
flatten: true,
13-
expand: true,
14-
cwd: "<%= site.templates %>/<%= site.template %>/css/",
15-
src: ["*.*"],
12+
flatten: true,
13+
expand: true,
14+
cwd: "<%= site.templates %>/<%= site.template %>/css/",
15+
src: ["*.*"],
1616
dest: "<%= site.dest %>/css/"
1717
};
18-
18+
1919
var jsCopy = {
20-
flatten: true,
21-
expand: true,
22-
cwd: "<%= site.templates %>/<%= site.template %>/js/",
23-
src: ["*.*"],
20+
flatten: true,
21+
expand: true,
22+
cwd: "<%= site.templates %>/<%= site.template %>/js/",
23+
src: ["*.*"],
2424
dest: "<%= site.dest %>/js/"
2525
};
26-
26+
2727
var templateDir = "<%= site.templates %>/<%= site.template %>";
28-
28+
2929
// Project configuration.
3030
grunt.initConfig({
3131
pkg: grunt.file.readJSON("package.json"),
3232
site: grunt.file.readJSON("assemble.json"),
3333
vendor: grunt.file.readJSON(".bowerrc").directory,
3434
h5bp: "<%= vendor %>/h5bp",
35-
// Lint JavaScript
36-
jshint: {
37-
all: ["Gruntfile.js", "<%= site.helpers %>/*.js"],
38-
options: {
39-
jshintrc: ".jshintrc"
40-
}
41-
},
4235
// Build HTML from templates and data
4336
assemble: {
4437
options: {
4538
flatten: true,
4639
layouts: "<%= site.layouts %>",
4740
layout: "<%= site.layout %>",
48-
partials: ["<%= site.partials %>/*.html", templateDir + "/partials/*.html"],
41+
plugins: ["<%= site.plugins %>/*.js"],
42+
helpers: ["<%= site.helpers %>/*.js"],
43+
partials: ["<%= site.partials %>/*.{html,md}", templateDir + "/partials/*.{html,md}"],
4944
template: "<%= site.template %>",
45+
templateDir: templateDir,
5046
// Metadata
5147
pkg: "<%= pkg %>",
52-
site: "<%= site %>",
53-
data: ["<%= site.data %>"]
48+
site: "<%= site %>"
5449
},
5550
htmls: {
5651
files: {"<%= site.dest %>/": [templateDir + "/*.html"]}
52+
// data: {},
53+
// partials: [],
54+
// pages: { page: { }}
5755
},
5856
phps: ("<%= assemble.options.template %>" === "modern-business") ? {
59-
options: {
60-
ext: ".php"
61-
},
62-
files: {"<%= site.dest %>/": [templateDir + "/contact.php"]}
57+
options: {ext: ".php"},
58+
files: { "<%= site.dest %>/": [templateDir + "/contact.php"] }
6359
} : {}
6460
},
61+
// Lint JavaScript
62+
jshint: {
63+
all: ["Gruntfile.js", "<%= site.helpers %>/{,*/}*.js", "<%= site.plugins %>/{,*/}*.js"],
64+
options: {
65+
jshintrc: ".jshintrc"
66+
}
67+
},
68+
// Validate HTML
69+
validation: {
70+
options: {
71+
reset: true,
72+
stoponerror: false,
73+
reportpath: false,
74+
relaxerror: ["Bad value X-UA-Compatible for attribute http-equiv on element meta."] //ignores these errors
75+
},
76+
files: {
77+
src: ["<%= site.dest %>/{,*/}*.html"]
78+
}
79+
},
6580
// Prettify test HTML pages from Assemble task.
6681
prettify: {
6782
all: {
6883
files: [
6984
{expand: true, cwd: "<%= site.dest %>", src: ["*.html"], dest: "<%= site.dest %>/", ext: ".html"}
7085
]
7186
}
72-
},
87+
},
7388
// concat and minify scripts
7489
uglify: {
75-
},
90+
},
7691
// Copy H5BP files to new project, using replacement
7792
// patterns to convert files into templates.
7893
copy: {
@@ -81,7 +96,7 @@ module.exports = function(grunt) {
8196
// {flatten: true, expand: true, cwd: "<%= vendor %>/h5bp/", src: ["doc/**"], dest: "tmp/content/"}
8297
cssCopy, jsCopy,
8398
{flatten: true, expand: true, cwd: templateDir + "/img/", src: ["*.*"], dest: "<%= site.dest %>/img/"},
84-
{flatten: true, expand: true, cwd: templateDir + "/", src: ["*.html", "*.php"], dest: "<%= site.dest %>/"}
99+
{flatten: true, expand: true, cwd: templateDir + "/", src: ["*.html", "*.php"], dest: "<%= site.dest %>/"}
85100
]
86101
},
87102
essentials: {
@@ -100,10 +115,10 @@ module.exports = function(grunt) {
100115
clean: {
101116
dest: ["<%= site.dest %>/**"]
102117
},
103-
118+
104119
watch: {
105120
assemble: {
106-
files: [templateDir + "/{,*/}*.{md,yml,html}"],
121+
files: [templateDir + "/{,*/}*.{md,yml,html}", "<%= site.layouts %>/*.html"],
107122
tasks: ["assemble"]
108123
},
109124
css: {
@@ -155,13 +170,15 @@ module.exports = function(grunt) {
155170
grunt.loadNpmTasks("grunt-contrib-jshint");
156171
grunt.loadNpmTasks("grunt-contrib-watch");
157172
grunt.loadNpmTasks("grunt-contrib-connect");
173+
grunt.loadNpmTasks("grunt-html-validation");
158174
grunt.loadNpmTasks("grunt-prettify");
159175

160176
// Default tasks to be run.
161177
grunt.registerTask("default", ["test", "copy:content", "assemble", "copy:essentials", "prettify"]);
162178

163179
// Linting and tests.
164-
grunt.registerTask("test", ["clean", "jshint"]);
165-
grunt.registerTask("cb", ["clean", "default"]); // clean & build
166-
grunt.registerTask("server", ["cb", "connect:livereload", "watch"]); // watch & live reload
180+
grunt.registerTask("test", ["clean"]);
181+
grunt.registerTask("validate", ["jshint", "validation"]); // html && js validation
182+
grunt.registerTask("cb", ["default", "validate"]); // clean & build
183+
grunt.registerTask("server", ["default", "connect:livereload", "watch"]); // watch & live reload
167184
};

assemble.json

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
2-
"dest": "dist",
3-
"ga": "UA-XXXXX-X",
4-
"domain": "domain.com",
5-
"templates": "src",
6-
"pages": "<%= site.templates %>/pages",
7-
"partials": "<%= site.templates %>/partials",
8-
"layouts": "<%= site.templates %>/layouts",
9-
"layout": "default.html",
10-
"data": "data/*.{json,yml}",
11-
"template": "grayscale",
2+
"dest": "dist",
3+
"ga": "UA-XXXXX-X",
4+
"domain": "domain.com",
5+
"templates": "src",
6+
"plugins": "<%= site.templates %>/plugins",
7+
"helpers": "<%= site.templates %>/helpers",
8+
"partials": "<%= site.templates %>/partials",
9+
"layouts": "<%= site.templates %>/layouts",
10+
"layout": "default.html",
11+
"data": "<%= site.templates %>/data/*.{json,yml}",
12+
"template": "monolite",
1213
"theme": "flatly"
1314
}

package.json

+56-48
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,58 @@
11
{
2-
"name": "bootup",
3-
"description": "Website template with integrated Bootstrap, Assemble, HTML5 boilerplate and Bootswatch Simplex.",
4-
"version": "0.2.0",
5-
"homepage": "https://github.com/albogdano/bootup",
6-
"author": {
7-
"name": "Alex Bogdanovski",
8-
"url": "https://github.com/albogdano"
9-
},
10-
"repository": {
11-
"type": "git",
12-
"url": "https://github.com/albogdano/bootup.git"
13-
},
14-
"bugs": {
15-
"url": "https://github.com/albogdano/bootup/issues"
16-
},
17-
"licenses": [
18-
{
19-
"type": "MIT",
20-
"url": "https://github.com/albogdano/bootup/blob/master/LICENSE-MIT"
21-
}
22-
],
23-
"main": "Gruntfile.js",
24-
"scripts": {
25-
"test": "grunt test"
26-
},
27-
"devDependencies": {
28-
"assemble": ">=0.4.37",
29-
"grunt": ">=0.4.4",
30-
"grunt-contrib-clean": ">=0.5.0",
31-
"grunt-contrib-connect": ">=0.7.1",
32-
"grunt-contrib-copy": ">=0.5.0",
33-
"grunt-contrib-jshint": ">=0.8.0",
34-
"grunt-contrib-qunit": ">=0.4.0",
35-
"grunt-contrib-uglify": ">=0.4.0",
36-
"grunt-contrib-watch": ">=0.5.3",
37-
"grunt-prettify": ">=0.3.4"
38-
},
39-
"keywords": [
40-
"assemble",
41-
"assemble boilerplate",
42-
"boilerplate",
43-
"h5bp",
44-
"html5 boilerplate",
45-
"bootstrap",
46-
"bootstrap boilerplate",
47-
"bootup",
48-
"bootswatch"
49-
]
2+
"name": "bootup",
3+
"description": "Website template with integrated Bootstrap, Assemble, HTML5 boilerplate and Bootswatch themes.",
4+
"version": "0.2.0",
5+
"homepage": "https://github.com/albogdano/bootup",
6+
"author": {
7+
"name": "Alex Bogdanovski",
8+
"url": "https://github.com/albogdano"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/albogdano/bootup.git"
13+
},
14+
"bugs": {
15+
"url": "https://github.com/albogdano/bootup/issues"
16+
},
17+
"licenses": [
18+
{
19+
"type": "MIT",
20+
"url": "https://github.com/albogdano/bootup/blob/master/LICENSE"
21+
}
22+
],
23+
"main": "Gruntfile.js",
24+
"scripts": {
25+
"test": "grunt test"
26+
},
27+
"devDependencies": {
28+
"assemble": ">=0.4.37",
29+
"grunt": ">=0.4.4",
30+
"grunt-contrib-clean": ">=0.5.0",
31+
"grunt-contrib-connect": ">=0.7.1",
32+
"grunt-contrib-copy": ">=0.5.0",
33+
"grunt-contrib-jshint": ">=0.8.0",
34+
"grunt-contrib-uglify": ">=0.4.0",
35+
"grunt-contrib-watch": ">=0.5.3",
36+
"grunt-prettify": ">=0.3.4",
37+
"grunt-html-validation": "^0.1.15",
38+
"lodash": "^2.4.1",
39+
"gray-matter": "^0.3.4",
40+
"marked": "^0.3.2",
41+
"minimatch": "^0.2.14",
42+
"handlebars-helper-mdpartial": "*",
43+
"assemble-partial-data": "*"
44+
},
45+
"keywords": [
46+
"assemble",
47+
"assemble boilerplate",
48+
"boilerplate",
49+
"h5bp",
50+
"html5 boilerplate",
51+
"bootstrap",
52+
"bootstrap boilerplate",
53+
"bootup",
54+
"bootswatch",
55+
"handlebars-helper-mdpartial",
56+
"assemble-partial-data"
57+
]
5058
}

src/grayscale/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ <h2>Contact Start Bootstrap</h2>
6363
<div id="map"></div>
6464

6565
<!-- Google Maps API Key - You will need to use your own API key to use the map feature -->
66-
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCRngKslUGJTlibkQ3FkfTxj3Xss1UlZDA&sensor=false"></script>
66+
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCRngKslUGJTlibkQ3FkfTxj3Xss1UlZDA&amp;sensor=false"></script>

src/grayscale/js/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ var myOptions = {
123123
}]
124124
};
125125

126-
var map = new google.maps.Map(document.getElementById('map'), myOptions);
126+
var map = new google.maps.Map(document.getElementById("map"), myOptions);

src/layouts/default.html

+5-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
33
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
44
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
5-
<!--[if gt IE 8]><!-->
5+
<!--[if gt IE 8]><!-->
66
<html lang="en-us" class="no-js"> <!--<![endif]-->
77
<head>
88
<meta charset="utf-8">
@@ -11,15 +11,14 @@
1111
<meta name="description" content="{{description}}">
1212
<meta name="viewport" content="width=device-width, initial-scale=1">
1313

14-
1514
{{#is site.theme "default"}}
1615
<!-- Bootstrap Vanilla CSS -->
1716
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
1817
{{else}}
1918
<!-- Bootswatch Theme CSS -->
2019
<link href="//netdna.bootstrapcdn.com/bootswatch/3.1.1/{{site.theme}}/bootstrap.min.css" rel="stylesheet">
2120
{{/is}}
22-
21+
2322
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
2423
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
2524
<link href="css/main.css" rel="stylesheet">
@@ -28,16 +27,16 @@
2827
<!--[if lt IE 7]>
2928
<h1 class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</h1>
3029
<![endif]-->
31-
30+
3231
<!-- Navigation -->
3332
{{>navbar}}
34-
33+
3534
<!-- Main Content -->
3635
{{>body}}
3736

3837
<!-- Footer Content -->
3938
{{>footer}}
40-
39+
4140
<script src="//code.jquery.com/jquery.min.js"></script>
4241
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
4342
<script src="js/main.js"></script>

src/modern-business/js/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Activates the Carousel
2-
$('.carousel').carousel({
2+
$(".carousel").carousel({
33
interval: 5000
44
})
55

66
// Activates Tooltips for Social Links
7-
$('.tooltip-social').tooltip({
7+
$(".tooltip-social").tooltip({
88
selector: "a[data-toggle=tooltip]"
99
})

0 commit comments

Comments
 (0)