-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
- Loading branch information
1 parent
188598c
commit 898776d
Showing
13 changed files
with
3,619 additions
and
5 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
** linguist-vendored |
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,10 @@ | ||
* | ||
!/.gitignore | ||
!/.gitattributes | ||
!/README.md | ||
!/.yarnrc.yml | ||
!/package.json | ||
!/yarn.lock | ||
!/webpack.config.js | ||
!/src | ||
!/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
yarnPath: .yarn/releases/yarn-4.3.0.cjs |
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,4 @@ | ||
# Test: Vue.js bundled with webpack5 in a yarn setup | ||
|
||
This setup is intended to create reproducible results (SBoM). | ||
It might install outdated, unmaintained or vulnerable components, for showcasing purposes. |
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,46 @@ | ||
{ | ||
"name": "@cyclonedx-webpack-plugin-tests/example-webpack5-vue2-yarn", | ||
"description": "example setup witch Vue2 in WebPack5 with yarn setup", | ||
"private": true, | ||
"homepage": "https://github.com/CycloneDX/cyclonedx-webpack-plugin/tree/master/tests/integration/webpack5-vue2#readme", | ||
"copyright": "Copyright OWASP Foundation", | ||
"license": "Apache-2.0", | ||
"author": { | ||
"name": "Jan Kowalleck", | ||
"email": "jan.kowalleck@gmail.com" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Jan Kowalleck", | ||
"email": "jan.kowalleck@gmail.com" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/CycloneDX/cyclonedx-webpack-plugin.git", | ||
"directory": "tests/integration/webpack5-vue2-yarn" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/CycloneDX/cyclonedx-webpack-plugin/issues" | ||
}, | ||
"main": "index.html", | ||
"scripts": { | ||
"prebuild:node": "node -r fs -e 'fs.rmSync(\"dist\",{recursive:true,force:true})'", | ||
"build": "webpack build" | ||
}, | ||
"dependencies": { | ||
"vue": "^2.6.14" | ||
}, | ||
"devDependencies": { | ||
"@cyclonedx/webpack-plugin": "portal:../../..", | ||
"html-inline-script-webpack-plugin": "^3.0.0", | ||
"html-webpack-plugin": "^5.5.0", | ||
"webpack": "^5", | ||
"webpack-cli": "^5" | ||
}, | ||
"engines": { | ||
"node": ">=18", | ||
"yarn": ">=4" | ||
}, | ||
"packageManager": "yarn@4.3.0" | ||
} |
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,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<title>Example</title> | ||
<meta charset="utf-8" /> | ||
</head> | ||
|
||
<body> | ||
<div id="app"> | ||
<!-- example /--> | ||
</div> | ||
</body> | ||
|
||
</html> |
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,14 @@ | ||
import Vue from 'vue' | ||
|
||
const app = new Vue({ | ||
data: {}, | ||
methods: {} | ||
}) | ||
|
||
document.addEventListener( | ||
'DOMContentLoaded', | ||
function () { | ||
app.$mount('#app') | ||
}, | ||
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,37 @@ | ||
const path = require('path') | ||
const HtmlWebpackPlugin = require('html-webpack-plugin') | ||
const HtmlInlineScriptPlugin = require('html-inline-script-webpack-plugin') | ||
|
||
const { CycloneDxWebpackPlugin } = require('@cyclonedx/webpack-plugin') | ||
|
||
module.exports = { | ||
entry: './src/index.js', | ||
// Webpack noise constrained to ALL details - for debugging purposes | ||
stats: 'detailed', | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: 'bundle.js' | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
template: './src/index.html' | ||
}), | ||
new HtmlInlineScriptPlugin(), | ||
new CycloneDxWebpackPlugin( | ||
{ | ||
specVersion: '1.6', | ||
outputLocation: '.bom', | ||
reproducibleResults: true, | ||
validateResults: true | ||
} | ||
) | ||
], | ||
externals: { | ||
// vue: 'Vue' | ||
}, | ||
resolve: { | ||
alias: { | ||
vue$: 'vue/dist/vue.esm.js' | ||
} | ||
} | ||
} |
Oops, something went wrong.