Add a CLI interface to the upload-sarif action

This commit is contained in:
Robert Brignull 2020-08-11 12:42:42 +01:00
parent bcf676e52d
commit 6d7a135fea
15 changed files with 355 additions and 89 deletions

26
webpack.config.js Normal file
View file

@ -0,0 +1,26 @@
const path = require('path');
module.exports = {
entry: './src/cli.ts',
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
target: 'node',
resolve: {
extensions: [ '.ts', '.js' ],
},
output: {
filename: 'cli.js',
path: path.resolve(__dirname, 'cli'),
},
optimization: {
// We no not want to minimize our code.
minimize: false
},
};