build: put licenses in separate file

This commit is contained in:
jean-emmanuel 2025-09-13 11:07:27 +02:00
parent 563414226a
commit 0b52921181
4 changed files with 12 additions and 22 deletions

View file

@ -72,11 +72,10 @@ module.exports = {
}
},
watch ? {} :license({
banner: {
content: {
file: path.join(__dirname, 'license-header.txt'),
},
}
thirdParty: {
includeSelf: true,
output: 'app/client/LICENSES',
},
}),
watch ? {} : copy({
targets: [

View file

@ -32,11 +32,10 @@ module.exports = {
nodeResolve(),
terser(),
license({
banner: {
content: {
file: path.join(__dirname, 'license-header.txt'),
},
}
thirdParty: {
includeSelf: true,
output: 'app/launcher/LICENSES',
},
}),
copy({
targets: [

View file

@ -1,7 +0,0 @@
Bundle of <%= pkg.name %>
Generated: <%= moment().format('YYYY-MM-DD') %>
Version: <%= pkg.version %>
Dependencies:
<% _.forEach(dependencies, function (dependency) { %>
<%= dependency.text() %>
<% }) %>

View file

@ -37,11 +37,10 @@ module.exports = {
preferBuiltins: true
}),
license({
banner: {
content: {
file: path.join(__dirname, 'license-header.txt'),
},
}
thirdParty: {
includeSelf: true,
output: 'app/server/LICENSES',
},
}),
terser({
sourceMap: true,