Browse Source

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
master
David Miller 11 years ago
parent
commit
2f3ed586a7
  1. 82
      Gruntfile.js
  2. 17
      bower.json
  3. BIN
      dist/fonts/glyphicons-halflings-regular.eot
  4. BIN
      dist/fonts/glyphicons-halflings-regular.ttf
  5. BIN
      dist/fonts/glyphicons-halflings-regular.woff
  6. BIN
      dist/img/about/2.jpg
  7. BIN
      dist/img/header-bg.jpg
  8. BIN
      dist/img/map-image.png
  9. BIN
      dist/img/portfolio/dreams-preview.png
  10. BIN
      dist/img/portfolio/dreams.png
  11. BIN
      dist/img/portfolio/escape-preview.png
  12. BIN
      dist/img/portfolio/escape.png
  13. BIN
      dist/img/portfolio/golden-preview.png
  14. BIN
      dist/img/portfolio/golden.png
  15. BIN
      dist/img/portfolio/roundicons-free.png
  16. BIN
      dist/img/portfolio/roundicons.png
  17. BIN
      dist/img/portfolio/startup-framework-preview.png
  18. BIN
      dist/img/portfolio/startup-framework.png
  19. BIN
      dist/img/portfolio/treehouse-preview.png
  20. BIN
      dist/img/portfolio/treehouse.png
  21. BIN
      dist/img/team/2.jpg
  22. 8
      dist/index.html
  23. 0
      dist/js/plugins/cbpAnimatedHeader.js
  24. 0
      dist/js/plugins/classie.js
  25. 0
      dist/js/plugins/contact_me.js
  26. 0
      dist/js/plugins/jqBootstrapValidation.js
  27. 8
      index.html
  28. 0
      js/plugins/cbpAnimatedHeader.js
  29. 0
      js/plugins/classie.js
  30. 0
      js/plugins/contact_me.js
  31. 0
      js/plugins/jqBootstrapValidation.js
  32. 2
      package.json

82
Gruntfile.js

@ -3,30 +3,53 @@ module.exports = function(grunt) { @@ -3,30 +3,53 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
copy: {
main: {
src: ['*.html', 'mail/**', 'js/**', 'img/**'],
dest: 'dist/',
},
jquery: {
files: {
'dist/js/jquery.min.js': ['bower_components/jquery/dist/jquery.min.js'],
'dist/js/jquery.js': ['bower_components/jquery/dist/jquery.js']
}
files: [
{
expand: true,
cwd: 'bower_components/jquery/dist/',
src: [
'jquery.min.js',
'jquery.js',
],
dest: 'dist/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'],
}
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/'
},
]
},
},
copy: {
main: {
src: ['*.html', 'mail/**', 'js/*.js'],
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: {
@ -48,19 +71,9 @@ module.exports = function(grunt) { @@ -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) { @@ -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 @@ @@ -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

Binary file not shown.

BIN
dist/fonts/glyphicons-halflings-regular.ttf vendored

Binary file not shown.

BIN
dist/fonts/glyphicons-halflings-regular.woff vendored

Binary file not shown.

BIN
dist/img/about/2.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

BIN
dist/img/header-bg.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB

After

Width:  |  Height:  |  Size: 233 KiB

BIN
dist/img/map-image.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 KiB

After

Width:  |  Height:  |  Size: 356 KiB

BIN
dist/img/portfolio/dreams-preview.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 109 KiB

BIN
dist/img/portfolio/dreams.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

BIN
dist/img/portfolio/escape-preview.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 162 KiB

BIN
dist/img/portfolio/escape.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

BIN
dist/img/portfolio/golden-preview.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

After

Width:  |  Height:  |  Size: 173 KiB

BIN
dist/img/portfolio/golden.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 91 KiB

BIN
dist/img/portfolio/roundicons-free.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 253 KiB

After

Width:  |  Height:  |  Size: 253 KiB

BIN
dist/img/portfolio/roundicons.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 117 KiB

BIN
dist/img/portfolio/startup-framework-preview.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 253 KiB

After

Width:  |  Height:  |  Size: 256 KiB

BIN
dist/img/portfolio/startup-framework.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 183 KiB

BIN
dist/img/portfolio/treehouse-preview.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 148 KiB

BIN
dist/img/portfolio/treehouse.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 78 KiB

BIN
dist/img/team/2.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

8
dist/index.html vendored

@ -647,12 +647,12 @@ @@ -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>

0
dist/js/cbpAnimatedHeader.js → dist/js/plugins/cbpAnimatedHeader.js vendored

0
dist/js/classie.js → dist/js/plugins/classie.js vendored

0
dist/js/contact_me.js → dist/js/plugins/contact_me.js vendored

0
dist/js/jqBootstrapValidation.js → dist/js/plugins/jqBootstrapValidation.js vendored

8
index.html

@ -647,12 +647,12 @@ @@ -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>

0
js/cbpAnimatedHeader.js → js/plugins/cbpAnimatedHeader.js

0
js/classie.js → js/plugins/classie.js

0
js/contact_me.js → js/plugins/contact_me.js

0
js/jqBootstrapValidation.js → js/plugins/jqBootstrapValidation.js

2
package.json

@ -4,9 +4,7 @@ @@ -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"
}
}

Loading…
Cancel
Save