Created
April 14, 2014 14:25
-
-
Save torounit/10652847 to your computer and use it in GitHub Desktop.
bower_concatを使う。bowerでインストールしたjsをassets/js/lib.jsにまとめる。
This file contains hidden or 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
module.exports = (grunt) -> | |
pkg = grunt.file.readJSON("package.json") | |
# | |
# taskをロード | |
# | |
for taskName of pkg.devDependencies | |
grunt.loadNpmTasks taskName if taskName.substring(0, 6) is "grunt-" | |
# | |
# Gruntの設定 | |
# | |
grunt.initConfig | |
# | |
# bowerでインストールしたものを、lib.jsにまとめる。 | |
# jQueryとmodernizrはCDNから呼ぶことが多いので、除去。 | |
# | |
bower_concat: | |
all: | |
dest: 'assets/js/lib.js' | |
exclude: [ | |
'jquery', | |
'modernizr' | |
] | |
bowerOptions: | |
relative: false | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment