Include sourcebuster as npm package

This commit is contained in:
Justin Palmer 2023-11-14 01:17:32 +01:00
parent 7f100ac88a
commit 9ad289cea3
No known key found for this signature in database
GPG Key ID: ACAB7C35AA2577AF
5 changed files with 29 additions and 1074 deletions

View File

@ -229,10 +229,21 @@ module.exports = function ( grunt ) {
],
},
js: {
cwd: '<%= dirs.js %>/',
expand: true,
src: '**',
dest: '<%= dirs.jsDest %>/',
files: [
{
cwd: '<%= dirs.js %>/',
expand: true,
src: '**',
dest: '<%= dirs.jsDest %>/',
},
{
flatten: true,
expand: true,
src: 'node_modules/sourcebuster/dist/sourcebuster.js',
dest: '<%= dirs.jsDest %>/frontend/',
filter: 'isFile'
}
],
},
},
} );

File diff suppressed because it is too large Load Diff

View File

@ -17,11 +17,11 @@
"browserslist": "4.19.3",
"caniuse-lite": "1.0.30001146",
"grunt": "1.3.0",
"grunt-contrib-uglify-es": "^3.3.0",
"grunt-contrib-clean": "2.0.0",
"grunt-contrib-concat": "1.0.1",
"grunt-contrib-copy": "1.0.0",
"grunt-contrib-cssmin": "3.0.0",
"grunt-contrib-uglify-es": "^3.3.0",
"grunt-contrib-watch": "1.1.0",
"grunt-move": "1.0.3",
"grunt-newer": "1.3.0",
@ -34,5 +34,8 @@
"nodemon": "^2.0.21",
"sass": "^1.45.0",
"stylelint": "13.8.0"
},
"dependencies": {
"sourcebuster": "^1.1.0"
}
}

View File

@ -3697,6 +3697,10 @@ importers:
version: 5.1.6
plugins/woocommerce/client/legacy:
dependencies:
sourcebuster:
specifier: ^1.1.0
version: 1.1.0
devDependencies:
'@types/node':
specifier: ^16.18.18
@ -44503,6 +44507,10 @@ packages:
resolution: {integrity: sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==}
engines: {node: '>= 8'}
/sourcebuster@1.1.0:
resolution: {integrity: sha512-+A8MHjtnARAYsqd0OI+aXbgUa/p6mhmXHwGUu3TxdujqfVqS1mjSq+2fkctGDozoxrRSBb55WScJJtJ5YILxSQ==}
dev: false
/space-separated-tokens@1.1.5:
resolution: {integrity: sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==}
dev: true

View File

@ -58,7 +58,8 @@
"inputs": [
"css/**/*.scss",
"css/**/*.css",
"js/**/*.js"
"js/**/*.js",
"node_modules/**/*.js"
],
"outputMode": "new-only"
},