Changeset 12574
- Timestamp:
- 03/25/2020 05:52:59 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.gitignore
r11038 r12574 2 2 phpunit.xml 3 3 .idea 4 .cache 4 5 5 6 lib-cov -
trunk/.jshintignore
r11763 r12574 2 2 src/bp-core/js/vendor/**/* 3 3 src/bp-messages/js/autocomplete/* 4 5 // Blocks Scripts 6 src/**/js/blocks/*.js 7 src/**/js/block-components/*.js 8 src/**/js/block-components/**/*.js 9 src/bp-core/js/block-components.js -
trunk/Gruntfile.js
r12552 r12574 16 16 BP_JS = [ 17 17 '**/*.js' 18 ], 19 20 BP_EXCLUDED_JS = [ 21 '!**/js/blocks/*.js', 22 '!**/js/block-components/*.js', 23 '!**/js/block-components/**/*.js', 24 '!**/js/block-components.js' 18 25 ], 19 26 … … 165 172 } 166 173 }, 167 makepot: {168 target: {169 options: {170 cwd: BUILD_DIR,171 domainPath: '.',172 mainFile: 'bp-loader.php',173 potFilename: 'buddypress.pot',174 processPot: function( pot ) {175 pot.headers['report-msgid-bugs-to'] = 'https://buddypress.trac.wordpress.org';176 pot.headers['last-translator'] = 'JOHN JAMES JACOBY <jjj@buddypress.org>';177 pot.headers['language-team'] = 'ENGLISH <jjj@buddypress.org>';178 return pot;179 },180 type: 'wp-plugin'181 }182 }183 },184 174 imagemin: { 185 175 core: { … … 202 192 dot: true, 203 193 expand: true, 204 src: ['**', '!**/.{svn,git }/**'].concat( BP_EXCLUDED_MISC )194 src: ['**', '!**/.{svn,git,cache}/**', '!js/**'].concat( BP_EXCLUDED_MISC ) 205 195 }, 206 196 { … … 246 236 expand: true, 247 237 ext: '.min.js', 248 src: BP_JS 238 src: BP_JS.concat( BP_EXCLUDED_JS, BP_EXCLUDED_MISC ) 249 239 } 250 240 }, … … 333 323 cwd: BUILD_DIR, 334 324 stdout: false 325 }, 326 makepot: { 327 command: 'wp i18n make-pot build build/buddypress.pot --headers=\'{"Project-Id-Version": "BuddyPress", "Report-Msgid-Bugs-To": "https://buddypress.trac.wordpress.org", "Last-Translator": "JOHN JAMES JACOBY <jjj@buddypress.org>", "Language-Team": "ENGLISH <jjj@buddypress.org>"}\'', 328 stdout: true 329 }, 330 blocks_src: { 331 command: 'npm run dev', 332 cwd: SOURCE_DIR, 333 stdout: true 334 }, 335 blocks_build: { 336 command: 'npm run build', 337 cwd: SOURCE_DIR, 338 stdout: true 335 339 } 336 340 }, … … 343 347 build: { 344 348 files: { 345 src: [BUILD_DIR + '/**/*.js'] 349 src: [BUILD_DIR + '/**/*.js'].concat( BP_EXCLUDED_JS, BP_EXCLUDED_MISC ) 346 350 } 347 351 }, 348 352 src: { 349 353 files: { 350 src: [SOURCE_DIR + '/**/*.js'].concat( BP_EXCLUDED_ MISC )354 src: [SOURCE_DIR + '/**/*.js'].concat( BP_EXCLUDED_JS, BP_EXCLUDED_MISC ) 351 355 } 352 356 } … … 368 372 */ 369 373 grunt.registerTask( 'src', ['checkDependencies', 'jsvalidate:src', 'jshint', 'stylelint', 'sass', 'postcss', 'rtlcss'] ); 374 grunt.registerTask( 'makepot', ['exec:makepot'] ); 370 375 grunt.registerTask( 'commit', ['src', 'checktextdomain', 'imagemin', 'phplint', 'exec:phpcompat'] ); 371 376 grunt.registerTask( 'bp_rest', [ 'exec:rest_api', 'copy:bp_rest_components', 'copy:bp_rest_core', 'clean:bp_rest' ] ); 372 grunt.registerTask( 'build', ['commit', 'clean:all', 'copy:files', 'uglify ', 'jsvalidate:build', 'cssmin', 'bp_rest', 'makepot', 'exec:bpdefault', 'exec:cli'] );377 grunt.registerTask( 'build', ['commit', 'clean:all', 'copy:files', 'uglify:core', 'jsvalidate:build', 'exec:blocks_src', 'cssmin', 'bp_rest', 'makepot', 'exec:blocks_build', 'exec:bpdefault', 'exec:cli'] ); 373 378 grunt.registerTask( 'release', ['build'] ); 374 379 -
trunk/composer.json
r12278 r12574 32 32 }, 33 33 "require-dev": { 34 34 "phpcompatibility/phpcompatibility-wp": "*", 35 35 "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3" 36 36 }
Note: See TracChangeset
for help on using the changeset viewer.