Skip to content

Commit 459faac

Browse files
committed
Makin’ a website.
1 parent 930d06d commit 459faac

32 files changed

+1548
-509
lines changed

Gruntfile.js

Lines changed: 7 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,14 @@ module.exports = function(grunt) {
1414
'* Copyright (c) <%= grunt.template.today("yyyy") %> ' +
1515
'Authored by Filament Group, Inc. */',
1616
clean: {
17-
dist: [ "_dist/" ],
18-
grunticon: [ ".grunticon-temp" ]
17+
dist: [ "_dist/" ]
1918
},
2019
concat: {
2120
options: {
2221
banner: '<%= banner %>'
2322
},
2423
js_initial: {
2524
src: [
26-
'_tmpl/_js/_lib/modernizr.js',
2725
'_tmpl/_js/app-globals.js',
2826
'_tmpl/_js/initial.config.js'
2927
],
@@ -32,6 +30,8 @@ module.exports = function(grunt) {
3230
js_main: {
3331
src: [
3432
// keep this globalenhance file last!
33+
'_tmpl/_js/_lib/jquery.js',
34+
'_tmpl/_js/_lib/*',
3535
'_tmpl/_js/globalenhance.js'
3636
],
3737
dest: '_dist/_js/main.js'
@@ -53,18 +53,12 @@ module.exports = function(grunt) {
5353
copy: {
5454
dist: {
5555
files: [
56-
{ expand: true, cwd: '_tmpl/docs/', src: ["*.html"], dest: "_dist/docs/" },
5756
{ expand: true, cwd: '_tmpl/_includes/', src: ["**"], dest: "_dist/_includes/" },
5857
{ expand: true, cwd: "_tmpl/_img/", src: ["**"], dest: "_dist/_img/" },
5958
{ expand: true, cwd: "_tmpl/_img/svg/", src: ["*.png"], dest: "_dist/_img/_svg/" },
60-
{ expand: true, cwd: "_tmpl/_css/_img/", src: ["**"], dest: "_dist/_css/_img/" },
59+
{ expand: true, cwd: "_tmpl/_css/", src: ["**"], dest: "_dist/_css/" },
6160
{ expand: true, cwd: "_tmpl/", src: ["*.html","*.php","*.json"], dest: "_dist/" },
6261
{ expand: true, cwd: "_tmpl/", src: [".htaccess"], dest: "_dist/" }]
63-
},
64-
grunticon: {
65-
files: [
66-
{ expand: true, cwd: "_tmpl/_css/_svg/", src: ["**"], dest: ".grunticon-temp" }
67-
]
6862
}
6963
},
7064
watch: {
@@ -85,10 +79,6 @@ module.exports = function(grunt) {
8579
js: {
8680
files: ['_tmpl/_js/**/*'],
8781
tasks: 'watch-js'
88-
},
89-
grunticon: {
90-
files: ['_tmpl/_css/_svg/*'],
91-
tasks: 'watch-grunticon'
9282
}
9383
},
9484
cssmin: {
@@ -127,37 +117,6 @@ module.exports = function(grunt) {
127117
dest: '<%= concat.js_respond.dest %>'
128118
}
129119
},
130-
svgmin: { // Task
131-
options: { // Configuration that will be passed directly to SVGO
132-
plugins: [{
133-
removeViewBox: false
134-
}]
135-
},
136-
tmpl: {
137-
files: [
138-
{
139-
expand: true,
140-
cwd: '.grunticon-temp/',
141-
src: ['**/*.svg'],
142-
dest: '.grunticon-temp/'
143-
}
144-
]
145-
}
146-
},
147-
grunticon: {
148-
all: {
149-
options: {
150-
src: ".grunticon-temp/",
151-
dest: "_dist/_css/_grunticon/",
152-
svgo: true,
153-
pngcrush: false,
154-
cssbasepath: "/",
155-
colors: {
156-
"green": "#0C756D"
157-
}
158-
}
159-
}
160-
},
161120
criticalcss: {
162121
custom_options: {
163122
options: {
@@ -198,21 +157,10 @@ module.exports = function(grunt) {
198157
'qunit',
199158
'concat',
200159
'copy',
201-
'svgmin',
202-
'grunticon',
203160
'criticalcss',
204161
'chmod:readonly'
205162
]);
206163

207-
grunt.registerTask('icons', [
208-
'chmod:writeable',
209-
'clean:grunticon',
210-
'copy:grunticon',
211-
'svgmin',
212-
'grunticon',
213-
'chmod:readonly'
214-
]);
215-
216164
// NOTE these watch tasks try to run only relevant tasks per file save
217165

218166
grunt.registerTask('watch-endpoints', [
@@ -225,12 +173,12 @@ module.exports = function(grunt) {
225173
'chmod:writeable',
226174
'qunit',
227175
'copy',
228-
'svgmin',
229176
'chmod:readonly'
230177
]);
231178

232179
grunt.registerTask('watch-css', [
233180
'chmod:writeable',
181+
'copy',
234182
'concat:css_main',
235183
'chmod:readonly'
236184
]);
@@ -240,27 +188,15 @@ module.exports = function(grunt) {
240188
'concat:js_initial',
241189
'concat:js_main',
242190
'concat:js_respond',
243-
'concat:js_docs',
244-
'chmod:readonly'
245-
]);
246-
247-
grunt.registerTask('watch-grunticon', [
248-
'chmod:writeable',
249-
'clean:grunticon',
250-
'copy:grunticon',
251-
'svgmin',
252-
'grunticon',
253191
'chmod:readonly'
254192
]);
255193

256194
grunt.registerTask('stage', [
257195
'clean',
258196
'qunit',
197+
'copy',
259198
'concat',
260199
'cssmin',
261-
'uglify',
262-
'copy',
263-
'svgmin',
264-
'grunticon'
200+
'uglify'
265201
]);
266202
};

_dist/_css/_svg/star.svg

Lines changed: 19 additions & 0 deletions
Loading

_dist/_css/_type/dinweb-cond.ttf

29.8 KB
Binary file not shown.

_dist/_css/_type/proximanova-bold.ttf

32.7 KB
Binary file not shown.

_dist/_css/_type/proximanova-reg.ttf

32.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)