forked from CycloneDX/cyclonedx-webpack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3.0.0 - rewrite in TS with CDX-lib (CycloneDX#70)
This is a reboot, written in _TypeScript_ and compiled to _JavaScript_. * BREAKING changes * Requires _Node.js_ `>= 14.0.0` now, was `>= 12.0.0`. * Requires _webpack_ version `^5` as a `peerDependency`, was `>=4 <6`. * Changed: * The optional configuration options changed in name and meaning. Consult the `README` for details. * Added * Added an optional switch to select the desired CycloneDX spec version for the output. The value currently defaults to `'1.4'`. (fixes [CycloneDX#53] via [CycloneDX#70]) * Full support for typing. This will make the configuration of this plugin easier. * Lots of small features got added due to the fact that the data processing is managed by `@cyclonedx/cyclonedx-library` now. * Fixed * Dependency graph no longer has `null` or `undefined` values. (fixes [CycloneDX#31] via [CycloneDX#70]) * Removed * The optional config option `emitStats` and its functionality were dropped. You may use _webpack_'s `--stats` switch instead. * Misc * Uses `@cyclonedx/cyclonedx-library` now, instead of `@cyclonedx/bom`. [CycloneDX#31]: CycloneDX#31 [CycloneDX#53]: CycloneDX#53 [CycloneDX#70]: CycloneDX#70 Signed-off-by: Jan Kowalleck <[email protected]>
- Loading branch information
1 parent
7c2e1a2
commit f0e5cc9
Showing
47 changed files
with
22,509 additions
and
32,200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
# trailing white spaces are used for linebreaks in paragraphs. | ||
trim_trailing_whitespace = false | ||
|
||
[*.{ts,js,cjs,mjs}] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{json,cjson,cjsn}] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.html] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/node_modules/** | ||
|
||
/tests/integration/*/ | ||
|
||
/examples/*/dist | ||
/examples/*/dist.*/** | ||
|
||
/dist/** | ||
/dist.*/** | ||
|
||
!/src/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,35 @@ | ||
// https://eslint.org/ | ||
/*! | ||
This file is part of CycloneDX Webpack plugin. | ||
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. | ||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright (c) OWASP Foundation. All Rights Reserved. | ||
*/ | ||
|
||
/** | ||
* @see {@link https://eslint.org/} | ||
* @type {import('eslint').Linter.Config} | ||
*/ | ||
module.exports = { | ||
root: true, | ||
// see https://github.com/standard/standard | ||
extends: 'standard' | ||
// see https://github.com/standard/ts-standard | ||
extends: 'standard-with-typescript', | ||
parserOptions: { | ||
project: './tsconfig.json' | ||
}, | ||
env: { | ||
node: true, | ||
browser: false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
tsconfig.json linguist-language=JSON-with-Comments | ||
tsconfig.*.json linguist-language=JSON-with-Comments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.