Changeset 56247
- Timestamp:
- 07/17/2023 02:05:51 PM (14 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r56065 r56247 1037 1037 } 1038 1038 }, 1039 jsvalidate:{1040 options: {1041 globals: {},1042 esprimaOptions:{},1043 verbose: false1044 },1045 build: {1046 files: {1047 src: [1048 WORKING_DIR + 'wp-{admin,includes}/**/*.js',1049 WORKING_DIR + 'wp-content/themes/twenty*/**/*.js',1050 '!' + WORKING_DIR + 'wp-content/themes/twenty*/node_modules/**/*.js',1051 '!' + WORKING_DIR + 'wp-includes/blocks/**/*.js',1052 '!' + WORKING_DIR + 'wp-includes/js/dist/**/*.js',1053 ]1054 }1055 },1056 dynamic: {1057 files: {1058 src: []1059 }1060 }1061 },1062 1039 imagemin: { 1063 1040 core: { … … 1192 1169 'js-enqueues': { 1193 1170 files: [SOURCE_DIR + 'js/_enqueues/**/*.js'], 1194 tasks: ['clean:dynamic', 'copy:dynamic-js', 'uglify:dynamic' , 'jsvalidate:dynamic'],1171 tasks: ['clean:dynamic', 'copy:dynamic-js', 'uglify:dynamic'], 1195 1172 options: { 1196 1173 dot: true, … … 1204 1181 'webpack-dev.config.js' 1205 1182 ], 1206 tasks: ['clean:dynamic', 'webpack:dev', 'uglify:dynamic' , 'jsvalidate:dynamic'],1183 tasks: ['clean:dynamic', 'webpack:dev', 'uglify:dynamic'], 1207 1184 options: { 1208 1185 dot: true, … … 1505 1482 'uglify:all', 1506 1483 'concat:tinymce', 1507 'concat:emoji', 1508 'jsvalidate:build' 1484 'concat:emoji' 1509 1485 ] ); 1510 1486 … … 1843 1819 grunt.config( [ 'copy', 'dynamic-js', 'files' ], files ); 1844 1820 } 1845 // For the webpack builds configure the jsvalidate task to only check those files buildby webpack.1821 // For the webpack builds configure the task to only check those files built by webpack. 1846 1822 } else if ( target === 'js-webpack' ) { 1847 1823 src = [ … … 1871 1847 if ( target === 'js-enqueues' ) { 1872 1848 grunt.config( [ 'uglify', 'dynamic', 'src' ], src ); 1873 grunt.config( [ ' jsvalidate', 'dynamic', 'files', 'src' ], src.map( function( dir ) { return WORKING_DIR + dir; } ) );1849 grunt.config( [ 'dynamic', 'files', 'src' ], src.map( function( dir ) { return WORKING_DIR + dir; } ) ); 1874 1850 } 1875 1851 // For webpack only validate the file, minification is handled by webpack itself. 1876 1852 if ( target === 'js-webpack' ) { 1877 grunt.config( [ ' jsvalidate', 'dynamic', 'files', 'src' ], src.map( function( dir ) { return WORKING_DIR + dir; } ) );1853 grunt.config( [ 'dynamic', 'files', 'src' ], src.map( function( dir ) { return WORKING_DIR + dir; } ) ); 1878 1854 } 1879 1855 // For css run the rtl task on just the changed file. -
trunk/package-lock.json
r56240 r56247 13904 13904 } 13905 13905 }, 13906 "grunt-jsvalidate": {13907 "version": "0.2.2",13908 "resolved": "https://registry.npmjs.org/grunt-jsvalidate/-/grunt-jsvalidate-0.2.2.tgz",13909 "integrity": "sha512-FWpPrwspDVc0oZmnraBrLm5yx81gXroTLO4sYZd0iCMXxki/9TzKKhx30iOzTpAUGtUM7Q4rym+Y00MMmijBYQ==",13910 "dev": true,13911 "requires": {13912 "esprima": "~1.0.0"13913 },13914 "dependencies": {13915 "esprima": {13916 "version": "1.0.4",13917 "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz",13918 "integrity": "sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA==",13919 "dev": true13920 }13921 }13922 },13923 13906 "grunt-known-options": { 13924 13907 "version": "2.0.0", -
trunk/package.json
r56229 r56247 51 51 "grunt-file-append": "0.0.7", 52 52 "grunt-jsdoc": "2.4.1", 53 "grunt-jsvalidate": "~0.2.2",54 53 "grunt-legacy-util": "^2.0.1", 55 54 "grunt-patch-wordpress": "~3.0.0",
Note: See TracChangeset
for help on using the changeset viewer.