Last active
August 29, 2015 14:13
-
-
Save matmar10/006a4702d7e8ed159ca4 to your computer and use it in GitHub Desktop.
Sample Gruntfile for use with grunt-bower-update-main and grunt-wiredep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "package-name-here", | |
"main": [ | |
"all-your-files-get-included-in-here-automagically.js" | |
], | |
"version": "0.0.1", | |
"authors": [ | |
"Matthew J. Martin <matthew@blossomfinance.com>" | |
], | |
"description": "Blossom integration docs for SDK and REST API", | |
"license": "MIT", | |
"homepage": "http://www.blossomfinance.com", | |
"ignore": [ | |
"app/bower_components", | |
"node_modules" | |
], | |
"dependencies": { | |
"es5-shim": "~4.0.3", | |
"json3": "~3.3.2", | |
"bootstrap": "~3.2.0", | |
"angular": "~1.3.8", | |
"angular-cookies": "~1.2.25", | |
"angular-local-storage": "~0.0.7", | |
"angular-translate": "~2.3.0", | |
"angular-ui-router": "~0.2.13", | |
"font-awesome": "~4.2.0", | |
"iso-3166-country-codes-angular": "~1.1.0", | |
"angular-resource": "~1.3.8", | |
"angulartics": "~0.17.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = function (grunt) { | |
// load all configured grunt tasks | |
require('load-grunt-tasks')(grunt); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
bowerUpdateMain: { | |
target: { | |
main: [ | |
'<%= pkg.appPath %>/scripts/**/*.js', | |
'<%= pkg.appPath %>/styles/**/*.css' | |
] | |
} | |
}, | |
wiredep: { | |
target: { | |
directory: '<%= pkg.appPath %>/bower_components', | |
includeSelf: true, | |
src: ['<%= pkg.appPath %>/index.html'], | |
exclude: [/bootstrap\.css/] | |
} | |
} | |
}); | |
grunt.registerTask('make', [ | |
'bowerUpdateMain', | |
'wiredep' | |
]); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Some Page Title</title> | |
<!-- build:css styles/all.css --> | |
<!-- bower:css --> | |
<!-- endbower --> | |
<!-- endbuild --> | |
</head> | |
<body> | |
(PAGE CONTENT HERE) | |
<!-- build:js scripts/all.js --> | |
<!-- bower:js --> | |
<!-- endbower --> | |
<!-- endbuild --> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devDependencies": { | |
"grunt": "^0.4.5", | |
"grunt-bower-update-main": "^0.1.2", | |
"grunt-wiredep": "^1.9.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment