Remove Bower package - simplify Grunt task
Removing Bower package in favor of creating a Yeoman scaffold because a template is more of a scaffold than a component
84
Gruntfile.js
@ -3,31 +3,54 @@ module.exports = function(grunt) {
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
concat: {
|
||||
jquery: {
|
||||
files: {
|
||||
'dist/js/jquery.min.js': ['bower_components/jquery/dist/jquery.min.js'],
|
||||
'dist/js/jquery.js': ['bower_components/jquery/dist/jquery.js']
|
||||
}
|
||||
},
|
||||
bootstrap: {
|
||||
files: {
|
||||
'dist/js/bootstrap.min.js': ['bower_components/bootstrap/dist/js/bootstrap.min.js'],
|
||||
'dist/js/bootstrap.js': ['bower_components/bootstrap/dist/js/bootstrap.js'],
|
||||
'dist/css/bootstrap.min.css': ['bower_components/bootstrap/dist/css/bootstrap.min.css'],
|
||||
'dist/css/bootstrap.css': ['bower_components/bootstrap/dist/css/bootstrap.css'],
|
||||
'dist/fonts/glyphicons-halflings-regular.eot': ['bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot'],
|
||||
'dist/fonts/glyphicons-halflings-regular.svg': ['bower_components/bootstrap/fonts/glyphicons-halflings-regular.svg'],
|
||||
'dist/fonts/glyphicons-halflings-regular.ttf': ['bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf'],
|
||||
'dist/fonts/glyphicons-halflings-regular.woff': ['bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff'],
|
||||
}
|
||||
},
|
||||
},
|
||||
copy: {
|
||||
main: {
|
||||
src: ['*.html', 'mail/**', 'js/*.js'],
|
||||
src: ['*.html', 'mail/**', 'js/**', 'img/**'],
|
||||
dest: 'dist/',
|
||||
},
|
||||
jquery: {
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'bower_components/jquery/dist/',
|
||||
src: [
|
||||
'jquery.min.js',
|
||||
'jquery.js',
|
||||
],
|
||||
dest: 'dist/js/'
|
||||
},
|
||||
]
|
||||
},
|
||||
bootstrap: {
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'bower_components/bootstrap/dist/',
|
||||
src: [
|
||||
'js/bootstrap.js',
|
||||
'js/bootstrap.min.js',
|
||||
'css/bootstrap.css',
|
||||
'css/bootstrap.min.css'
|
||||
],
|
||||
dest: 'dist/'
|
||||
},
|
||||
]
|
||||
},
|
||||
glyphicons: {
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'bower_components/bootstrap/',
|
||||
src: [
|
||||
'fonts/glyphicons-halflings-regular.eot',
|
||||
'fonts/glyphicons-halflings-regular.svg',
|
||||
'fonts/glyphicons-halflings-regular.ttf',
|
||||
'fonts/glyphicons-halflings-regular.woff',
|
||||
],
|
||||
dest: 'dist/'
|
||||
},
|
||||
]
|
||||
},
|
||||
},
|
||||
less: {
|
||||
development: {
|
||||
@ -48,19 +71,9 @@ module.exports = function(grunt) {
|
||||
}
|
||||
}
|
||||
},
|
||||
imagemin: {
|
||||
dynamic: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: 'img/',
|
||||
src: ['**/*.{png,jpg,gif}'],
|
||||
dest: 'dist/img/'
|
||||
}]
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
scripts: {
|
||||
files: ['js/*.js'],
|
||||
files: ['js/**'],
|
||||
tasks: ['concat'],
|
||||
options: {
|
||||
spawn: false,
|
||||
@ -84,15 +97,12 @@ module.exports = function(grunt) {
|
||||
});
|
||||
|
||||
// Load the plugins.
|
||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
grunt.loadNpmTasks('grunt-contrib-less');
|
||||
grunt.loadNpmTasks('grunt-contrib-imagemin');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
|
||||
// Default task(s).
|
||||
grunt.registerTask('default', ['concat', 'copy', 'less', 'imagemin']);
|
||||
grunt.registerTask('build-css', ['less']);
|
||||
|
||||
grunt.registerTask('default', ['copy', 'less']);
|
||||
grunt.registerTask('less-compile', ['less']);
|
||||
|
||||
};
|
||||
|
17
bower.json
@ -1,17 +0,0 @@
|
||||
{
|
||||
"name": "startbootstrap-agency",
|
||||
"version": "1.0.0",
|
||||
"homepage": "https://github.com/IronSummitMedia/startbootstrap-agency",
|
||||
"authors": [
|
||||
"David Miller <david@ironsummitmedia.com>"
|
||||
],
|
||||
"description": "A one page HTML theme for agencies created by Start Bootstrap",
|
||||
"main": "/",
|
||||
"license": "Apache 2.0",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"test",
|
||||
"tests"
|
||||
]
|
||||
}
|
BIN
dist/fonts/glyphicons-halflings-regular.eot
vendored
BIN
dist/fonts/glyphicons-halflings-regular.ttf
vendored
BIN
dist/fonts/glyphicons-halflings-regular.woff
vendored
BIN
dist/img/about/2.jpg
vendored
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
BIN
dist/img/header-bg.jpg
vendored
Before Width: | Height: | Size: 229 KiB After Width: | Height: | Size: 233 KiB |
BIN
dist/img/map-image.png
vendored
Before Width: | Height: | Size: 246 KiB After Width: | Height: | Size: 356 KiB |
BIN
dist/img/portfolio/dreams-preview.png
vendored
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 109 KiB |
BIN
dist/img/portfolio/dreams.png
vendored
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
BIN
dist/img/portfolio/escape-preview.png
vendored
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 162 KiB |
BIN
dist/img/portfolio/escape.png
vendored
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
BIN
dist/img/portfolio/golden-preview.png
vendored
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 173 KiB |
BIN
dist/img/portfolio/golden.png
vendored
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 91 KiB |
BIN
dist/img/portfolio/roundicons-free.png
vendored
Before Width: | Height: | Size: 253 KiB After Width: | Height: | Size: 253 KiB |
BIN
dist/img/portfolio/roundicons.png
vendored
Before Width: | Height: | Size: 111 KiB After Width: | Height: | Size: 117 KiB |
BIN
dist/img/portfolio/startup-framework-preview.png
vendored
Before Width: | Height: | Size: 253 KiB After Width: | Height: | Size: 256 KiB |
BIN
dist/img/portfolio/startup-framework.png
vendored
Before Width: | Height: | Size: 180 KiB After Width: | Height: | Size: 183 KiB |
BIN
dist/img/portfolio/treehouse-preview.png
vendored
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 148 KiB |
BIN
dist/img/portfolio/treehouse.png
vendored
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 78 KiB |
BIN
dist/img/team/2.jpg
vendored
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
8
dist/index.html
vendored
@ -647,12 +647,12 @@
|
||||
|
||||
<!-- Plugin JavaScript -->
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
|
||||
<script src="js/classie.js"></script>
|
||||
<script src="js/cbpAnimatedHeader.js"></script>
|
||||
<script src="js/plugins/classie.js"></script>
|
||||
<script src="js/plugins/cbpAnimatedHeader.js"></script>
|
||||
|
||||
<!-- Contact Form JavaScript -->
|
||||
<script src="js/jqBootstrapValidation.js"></script>
|
||||
<script src="js/contact_me.js"></script>
|
||||
<script src="js/plugins/jqBootstrapValidation.js"></script>
|
||||
<script src="js/plugins/contact_me.js"></script>
|
||||
|
||||
<!-- Custom Theme JavaScript -->
|
||||
<script src="js/agency.js"></script>
|
||||
|
@ -647,12 +647,12 @@
|
||||
|
||||
<!-- Plugin JavaScript -->
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
|
||||
<script src="js/classie.js"></script>
|
||||
<script src="js/cbpAnimatedHeader.js"></script>
|
||||
<script src="js/plugins/classie.js"></script>
|
||||
<script src="js/plugins/cbpAnimatedHeader.js"></script>
|
||||
|
||||
<!-- Contact Form JavaScript -->
|
||||
<script src="js/jqBootstrapValidation.js"></script>
|
||||
<script src="js/contact_me.js"></script>
|
||||
<script src="js/plugins/jqBootstrapValidation.js"></script>
|
||||
<script src="js/plugins/contact_me.js"></script>
|
||||
|
||||
<!-- Custom Theme JavaScript -->
|
||||
<script src="js/agency.js"></script>
|
||||
|
@ -4,9 +4,7 @@
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.5",
|
||||
"grunt-contrib-copy": "~0.5.0",
|
||||
"grunt-contrib-concat": "~0.5.0",
|
||||
"grunt-contrib-less": "~0.11.4",
|
||||
"grunt-contrib-imagemin": "~0.8.0",
|
||||
"grunt-contrib-watch": "~0.6.1"
|
||||
}
|
||||
}
|
||||
|