get closer to all bower static assets
This commit is contained in:
3
app.js
3
app.js
@ -95,7 +95,8 @@ app.use(express.static(__dirname + '/public', {maxAge: oneYear}));
|
||||
app.use(connectAssets({
|
||||
paths: [
|
||||
path.join(__dirname, 'public/css'),
|
||||
path.join(__dirname, 'public/js')
|
||||
path.join(__dirname, 'public/js'),
|
||||
path.join(__dirname, '/bower_components')
|
||||
],
|
||||
build: false,
|
||||
buildDir: false,
|
||||
|
29
bower.json
Normal file
29
bower.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "freecodecamp",
|
||||
"version": "0.0.0",
|
||||
"homepage": "http://freecodecamp.com",
|
||||
"authors": [
|
||||
"Quincy Larson <michaelqlarson@gmail.com>"
|
||||
],
|
||||
"license": "MIT",
|
||||
"private": true,
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"public/bower_components",
|
||||
"test",
|
||||
"tests"
|
||||
],
|
||||
"dependencies": {
|
||||
"angular-ui-bootstrap": "~0.13.0",
|
||||
"angular": "~1.3.15",
|
||||
"d3": "~3.5.5",
|
||||
"jquery": "~2.1.4",
|
||||
"cal-heatmap": "~3.5.2",
|
||||
"bootstrap": "~3.3.4",
|
||||
"font-awesome": "~4.3.0",
|
||||
"moment": "~2.10.2",
|
||||
"angular-route": "~1.3.15"
|
||||
}
|
||||
}
|
@ -13,7 +13,4 @@
|
||||
* scripts down below using //= filename.js notation.
|
||||
*/
|
||||
|
||||
//= require lib/jquery-2.1.1.min
|
||||
//= require lib/bootstrap.min
|
||||
//= require lib/moment/moment
|
||||
//= require main
|
||||
|
||||
|
@ -101,8 +101,6 @@ block content
|
||||
|
||||
.spacer
|
||||
.hidden-xs.hidden-sm.col-md-12
|
||||
script(src="//d3js.org/d3.v3.min.js")
|
||||
script(src="//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.min.js")
|
||||
#cal-heatmap.d3-centered
|
||||
script.
|
||||
$(document).ready(function() {
|
||||
|
@ -1,47 +0,0 @@
|
||||
script.
|
||||
var cb = function() {
|
||||
var l = document.createElement('link');
|
||||
l.rel = 'stylesheet';
|
||||
l.href = '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css';
|
||||
var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h);
|
||||
};
|
||||
var raf = requestAnimationFrame || mozRequestAnimationFrame ||
|
||||
webkitRequestAnimationFrame || msRequestAnimationFrame;
|
||||
if (raf) raf(cb);
|
||||
else window.addEventListener('load', cb);
|
||||
|
||||
var cb = function () {
|
||||
var l = document.createElement('link');
|
||||
l.rel = 'stylesheet';
|
||||
l.href = '//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css';
|
||||
var h = document.getElementsByTagName('head')[0];
|
||||
h.parentNode.insertBefore(l, h);
|
||||
};
|
||||
var raf = requestAnimationFrame || mozRequestAnimationFrame ||
|
||||
webkitRequestAnimationFrame || msRequestAnimationFrame;
|
||||
if (raf) raf(cb);
|
||||
else window.addEventListener('load', cb);
|
||||
|
||||
var cb = function () {
|
||||
var l = document.createElement('link');
|
||||
l.rel = 'stylesheet';
|
||||
l.href = 'http://fonts.googleapis.com/css?family=Lato:400|Inconsolata';
|
||||
var h = document.getElementsByTagName('head')[0];
|
||||
h.parentNode.insertBefore(l, h);
|
||||
};
|
||||
var raf = requestAnimationFrame || mozRequestAnimationFrame ||
|
||||
webkitRequestAnimationFrame || msRequestAnimationFrame;
|
||||
if (raf) raf(cb);
|
||||
else window.addEventListener('load', cb);
|
||||
|
||||
var cb = function () {
|
||||
var l = document.createElement('link');
|
||||
l.rel = 'stylesheet';
|
||||
l.href = '//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.css';
|
||||
var h = document.getElementsByTagName('head')[0];
|
||||
h.parentNode.insertBefore(l, h);
|
||||
};
|
||||
var raf = requestAnimationFrame || mozRequestAnimationFrame ||
|
||||
webkitRequestAnimationFrame || msRequestAnimationFrame;
|
||||
if (raf) raf(cb);
|
||||
else window.addEventListener('load', cb);
|
||||
|
@ -1,6 +1,15 @@
|
||||
script(src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js")
|
||||
script(src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.11/angular.min.js")
|
||||
script(src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.12.0/ui-bootstrap-tpls.min.js")
|
||||
script(src="/bower_components/jquery/dist/jquery.min.js")
|
||||
script(src="/bower_components/d3/d3.js")
|
||||
script(src="/bower_components/cal-heatmap/cal-heatmap.min.js")
|
||||
//script(src="/bower_components/angular/angular.min.js")
|
||||
//script(src="/bower_components/angular-route/angular-route.min.js")
|
||||
script(src="/bower_components/bootstrap/dist/js/bootstrap.min.js")
|
||||
script(src="/bower_components/moment/min/moment.min.js")
|
||||
script(src="/js/main.js")
|
||||
link(rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Lato:400|Inconsolata")
|
||||
link(rel="stylesheet" type="text/css" href="bower_components/cal-heatmap/cal-heatmap.css")
|
||||
link(rel='stylesheet', href='/css/main.less')
|
||||
|
||||
include meta
|
||||
title #{title} | Free Code Camp
|
||||
meta(charset='utf-8')
|
||||
|
Reference in New Issue
Block a user