From 2e883b266425748e58964dfedf858ac21d1ac2b9 Mon Sep 17 00:00:00 2001 From: 0prashantyadav0 Date: Wed, 15 Jul 2026 14:36:40 +0530 Subject: [PATCH] build: add script to insert license header --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown_pkg_readmes status: na - task: lint_markdown_docs status: na - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../wasm/dmeanors/scripts/postbuild.wat.js | 64 +++++++++++++++++++ .../stats/strided/wasm/dmeanors/src/Makefile | 1 + .../wasm/dmeanpw/scripts/postbuild.wat.js | 64 +++++++++++++++++++ .../stats/strided/wasm/dmeanpw/src/Makefile | 1 + .../wasm/dmeanwd/scripts/postbuild.wat.js | 64 +++++++++++++++++++ .../stats/strided/wasm/dmeanwd/src/Makefile | 1 + .../dnanvariancewd/scripts/postbuild.wat.js | 64 +++++++++++++++++++ .../strided/wasm/dnanvariancewd/src/Makefile | 1 + 8 files changed, 260 insertions(+) create mode 100644 lib/node_modules/@stdlib/stats/strided/wasm/dmeanors/scripts/postbuild.wat.js create mode 100644 lib/node_modules/@stdlib/stats/strided/wasm/dmeanpw/scripts/postbuild.wat.js create mode 100644 lib/node_modules/@stdlib/stats/strided/wasm/dmeanwd/scripts/postbuild.wat.js create mode 100644 lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/scripts/postbuild.wat.js diff --git a/lib/node_modules/@stdlib/stats/strided/wasm/dmeanors/scripts/postbuild.wat.js b/lib/node_modules/@stdlib/stats/strided/wasm/dmeanors/scripts/postbuild.wat.js new file mode 100644 index 000000000000..0d8edabe98d0 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/wasm/dmeanors/scripts/postbuild.wat.js @@ -0,0 +1,64 @@ +#!/usr/bin/env node + +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var licenseHeader = require( '@stdlib/_tools/licenses/header' ); +var insertHeader = require( '@stdlib/_tools/licenses/insert-header-file-list' ).sync; +var currentYear = require( '@stdlib/time/current-year' ); + + +// VARIABLES // + +var wpath = resolve( __dirname, '..', 'src', 'main.wat' ); + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +* @throws {Error} unexpected error +*/ +function main() { + var headers; + var files; + var err; + + files = [ + wpath + ]; + headers = { + 'wat': licenseHeader( 'Apache-2.0', 'wat', { + 'year': currentYear(), + 'copyright': 'The Stdlib Authors' + }) + }; + err = insertHeader( files, headers ); + if ( err ) { + throw err; + } +} + +main(); diff --git a/lib/node_modules/@stdlib/stats/strided/wasm/dmeanors/src/Makefile b/lib/node_modules/@stdlib/stats/strided/wasm/dmeanors/src/Makefile index 1b1f35347760..d263d9b6d777 100644 --- a/lib/node_modules/@stdlib/stats/strided/wasm/dmeanors/src/Makefile +++ b/lib/node_modules/@stdlib/stats/strided/wasm/dmeanors/src/Makefile @@ -202,6 +202,7 @@ $(wasm_targets): #/ $(wat_targets): %.wat: %.wasm $(QUIET) $(WASM_TO_WAT) -o $@ $(wasm_targets) + $(QUIET) $(NODEJS) ./../scripts/postbuild.wat.js #/ # Compiles WebAssembly binary files to JavaScript. diff --git a/lib/node_modules/@stdlib/stats/strided/wasm/dmeanpw/scripts/postbuild.wat.js b/lib/node_modules/@stdlib/stats/strided/wasm/dmeanpw/scripts/postbuild.wat.js new file mode 100644 index 000000000000..0d8edabe98d0 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/wasm/dmeanpw/scripts/postbuild.wat.js @@ -0,0 +1,64 @@ +#!/usr/bin/env node + +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var licenseHeader = require( '@stdlib/_tools/licenses/header' ); +var insertHeader = require( '@stdlib/_tools/licenses/insert-header-file-list' ).sync; +var currentYear = require( '@stdlib/time/current-year' ); + + +// VARIABLES // + +var wpath = resolve( __dirname, '..', 'src', 'main.wat' ); + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +* @throws {Error} unexpected error +*/ +function main() { + var headers; + var files; + var err; + + files = [ + wpath + ]; + headers = { + 'wat': licenseHeader( 'Apache-2.0', 'wat', { + 'year': currentYear(), + 'copyright': 'The Stdlib Authors' + }) + }; + err = insertHeader( files, headers ); + if ( err ) { + throw err; + } +} + +main(); diff --git a/lib/node_modules/@stdlib/stats/strided/wasm/dmeanpw/src/Makefile b/lib/node_modules/@stdlib/stats/strided/wasm/dmeanpw/src/Makefile index 1b1f35347760..d263d9b6d777 100644 --- a/lib/node_modules/@stdlib/stats/strided/wasm/dmeanpw/src/Makefile +++ b/lib/node_modules/@stdlib/stats/strided/wasm/dmeanpw/src/Makefile @@ -202,6 +202,7 @@ $(wasm_targets): #/ $(wat_targets): %.wat: %.wasm $(QUIET) $(WASM_TO_WAT) -o $@ $(wasm_targets) + $(QUIET) $(NODEJS) ./../scripts/postbuild.wat.js #/ # Compiles WebAssembly binary files to JavaScript. diff --git a/lib/node_modules/@stdlib/stats/strided/wasm/dmeanwd/scripts/postbuild.wat.js b/lib/node_modules/@stdlib/stats/strided/wasm/dmeanwd/scripts/postbuild.wat.js new file mode 100644 index 000000000000..0d8edabe98d0 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/wasm/dmeanwd/scripts/postbuild.wat.js @@ -0,0 +1,64 @@ +#!/usr/bin/env node + +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var licenseHeader = require( '@stdlib/_tools/licenses/header' ); +var insertHeader = require( '@stdlib/_tools/licenses/insert-header-file-list' ).sync; +var currentYear = require( '@stdlib/time/current-year' ); + + +// VARIABLES // + +var wpath = resolve( __dirname, '..', 'src', 'main.wat' ); + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +* @throws {Error} unexpected error +*/ +function main() { + var headers; + var files; + var err; + + files = [ + wpath + ]; + headers = { + 'wat': licenseHeader( 'Apache-2.0', 'wat', { + 'year': currentYear(), + 'copyright': 'The Stdlib Authors' + }) + }; + err = insertHeader( files, headers ); + if ( err ) { + throw err; + } +} + +main(); diff --git a/lib/node_modules/@stdlib/stats/strided/wasm/dmeanwd/src/Makefile b/lib/node_modules/@stdlib/stats/strided/wasm/dmeanwd/src/Makefile index 1b1f35347760..d263d9b6d777 100644 --- a/lib/node_modules/@stdlib/stats/strided/wasm/dmeanwd/src/Makefile +++ b/lib/node_modules/@stdlib/stats/strided/wasm/dmeanwd/src/Makefile @@ -202,6 +202,7 @@ $(wasm_targets): #/ $(wat_targets): %.wat: %.wasm $(QUIET) $(WASM_TO_WAT) -o $@ $(wasm_targets) + $(QUIET) $(NODEJS) ./../scripts/postbuild.wat.js #/ # Compiles WebAssembly binary files to JavaScript. diff --git a/lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/scripts/postbuild.wat.js b/lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/scripts/postbuild.wat.js new file mode 100644 index 000000000000..0d8edabe98d0 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/scripts/postbuild.wat.js @@ -0,0 +1,64 @@ +#!/usr/bin/env node + +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var licenseHeader = require( '@stdlib/_tools/licenses/header' ); +var insertHeader = require( '@stdlib/_tools/licenses/insert-header-file-list' ).sync; +var currentYear = require( '@stdlib/time/current-year' ); + + +// VARIABLES // + +var wpath = resolve( __dirname, '..', 'src', 'main.wat' ); + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +* @throws {Error} unexpected error +*/ +function main() { + var headers; + var files; + var err; + + files = [ + wpath + ]; + headers = { + 'wat': licenseHeader( 'Apache-2.0', 'wat', { + 'year': currentYear(), + 'copyright': 'The Stdlib Authors' + }) + }; + err = insertHeader( files, headers ); + if ( err ) { + throw err; + } +} + +main(); diff --git a/lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/src/Makefile b/lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/src/Makefile index 1b1f35347760..d263d9b6d777 100644 --- a/lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/src/Makefile +++ b/lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/src/Makefile @@ -202,6 +202,7 @@ $(wasm_targets): #/ $(wat_targets): %.wat: %.wasm $(QUIET) $(WASM_TO_WAT) -o $@ $(wasm_targets) + $(QUIET) $(NODEJS) ./../scripts/postbuild.wat.js #/ # Compiles WebAssembly binary files to JavaScript.