7 changed files with 854 additions and 4 deletions
@ -0,0 +1,74 @@
@@ -0,0 +1,74 @@
|
||||
module.exports = function(grunt) { |
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({ |
||||
pkg: grunt.file.readJSON('package.json'), |
||||
uglify: { |
||||
main: { |
||||
src: 'js/<%= pkg.name %>.js', |
||||
dest: 'js/<%= pkg.name %>.min.js' |
||||
} |
||||
}, |
||||
less: { |
||||
expanded: { |
||||
options: { |
||||
paths: ["css"] |
||||
}, |
||||
files: { |
||||
"css/<%= pkg.name %>.css": "less/<%= pkg.name %>.less" |
||||
} |
||||
}, |
||||
minified: { |
||||
options: { |
||||
paths: ["css"], |
||||
cleancss: true |
||||
}, |
||||
files: { |
||||
"css/<%= pkg.name %>.min.css": "less/<%= pkg.name %>.less" |
||||
} |
||||
} |
||||
}, |
||||
banner: '/*!\n' + |
||||
' * <%= pkg.title %> v<%= pkg.version %> (<%= pkg.homepage %>)\n' + |
||||
' * Copyright 2013-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' + |
||||
' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' + |
||||
' */\n', |
||||
usebanner: { |
||||
dist: { |
||||
options: { |
||||
position: 'top', |
||||
banner: '<%= banner %>' |
||||
}, |
||||
files: { |
||||
src: ['css/<%= pkg.name %>.css', 'css/<%= pkg.name %>.min.css', 'js/<%= pkg.name %>.min.js'] |
||||
} |
||||
} |
||||
}, |
||||
watch: { |
||||
scripts: { |
||||
files: ['js/<%= pkg.name %>.js'], |
||||
tasks: ['uglify'], |
||||
options: { |
||||
spawn: false, |
||||
}, |
||||
}, |
||||
less: { |
||||
files: ['less/*.less'], |
||||
tasks: ['less'], |
||||
options: { |
||||
spawn: false, |
||||
} |
||||
}, |
||||
}, |
||||
}); |
||||
|
||||
// Load the plugins.
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify'); |
||||
grunt.loadNpmTasks('grunt-contrib-less'); |
||||
grunt.loadNpmTasks('grunt-banner'); |
||||
grunt.loadNpmTasks('grunt-contrib-watch'); |
||||
|
||||
// Default task(s).
|
||||
grunt.registerTask('default', ['uglify', 'less', 'usebanner']); |
||||
|
||||
}; |
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
/*! |
||||
* Agency v1.0.x (http://startbootstrap.com/template-overviews/agency)
|
||||
* Copyright 2013-2016 Start Bootstrap |
||||
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
|
||||
*/ |
||||
|
||||
$(function(){$("a.page-scroll").bind("click",function(a){var b=$(this);$("html, body").stop().animate({scrollTop:$(b.attr("href")).offset().top},1500,"easeInOutExpo"),a.preventDefault()})}),$("body").scrollspy({target:".navbar-fixed-top"}),$(".navbar-collapse ul li a:not(.dropdown-toggle)").click(function(){$(".navbar-toggle:visible").click()}); |
||||
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
{ |
||||
"name": "agency", |
||||
"title": "Agency", |
||||
"version": "1.0.x", |
||||
"homepage": "http://startbootstrap.com/template-overviews/agency", |
||||
"author": "Start Bootstrap", |
||||
"license": { |
||||
"type": "MIT", |
||||
"url": "https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE" |
||||
}, |
||||
"devDependencies": { |
||||
"grunt": "^0.4.5", |
||||
"grunt-banner": "~0.2.3", |
||||
"grunt-contrib-less": "~0.11.4", |
||||
"grunt-contrib-sass": "^0.9.2", |
||||
"grunt-contrib-uglify": "~0.5.1", |
||||
"grunt-contrib-watch": "~0.6.1" |
||||
}, |
||||
"repository": { |
||||
"type": "git", |
||||
"url": "https://github.com/BlackrockDigital/startbootstrap-agency.git" |
||||
} |
||||
} |
||||
Loading…
Reference in new issue