Changeset 9149
- Timestamp:
- 11/16/2014 04:26:48 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r9148 r9149 3 3 module.exports = function( grunt ) { 4 4 var SOURCE_DIR = 'src/', 5 BUILD_DIR = 'build/', 6 7 // CSS 5 BUILD_DIR = 'build/', 6 8 7 BP_CSS = [ 9 8 '**/*.css' … … 15 14 ], 16 15 17 // JavaScript - Core18 16 BP_JS = [ 19 17 '**/*.js' 18 ], 19 20 BP_EXCLUDED_MISC = [ 21 '!bp-forums/bbpress/**/*' 20 22 ]; 21 23 … … 75 77 extDot: 'last', 76 78 ext: '-rtl.css', 77 src: BP_CSS.concat( BP_EXCLUDED_CSS ),79 src: BP_CSS.concat( BP_EXCLUDED_CSS, BP_EXCLUDED_MISC ), 78 80 options: { generateExactDuplicates: true } 79 81 } … … 101 103 }, 102 104 files: { 103 src: SOURCE_DIR + '**/*.php', 105 cwd: SOURCE_DIR, 106 src: ['**/*.php'].concat( BP_EXCLUDED_MISC ), 104 107 expand: true 105 108 } … … 126 129 expand: true, 127 130 cwd: SOURCE_DIR, 128 src: ['**/*.{gif,jpg,jpeg,png}'] ,131 src: ['**/*.{gif,jpg,jpeg,png}'].concat( BP_EXCLUDED_MISC ), 129 132 dest: SOURCE_DIR 130 133 } … … 141 144 dot: true, 142 145 expand: true, 143 src: ['**', '!**/.{svn,git}/**'] 146 src: ['**', '!**/.{svn,git}/**'].concat( BP_EXCLUDED_MISC ) 144 147 } 145 148 ] … … 206 209 build: { 207 210 files: { 208 src: [BUILD_DIR + '/**/*.js' 211 src: [BUILD_DIR + '/**/*.js'] 209 212 } 210 213 }, 211 214 src: { 212 215 files: { 213 src: [SOURCE_DIR + '/**/*.js' ]216 src: [SOURCE_DIR + '/**/*.js'].concat( BP_EXCLUDED_MISC ) 214 217 } 215 218 }
Note: See TracChangeset
for help on using the changeset viewer.