From 5dc9b498d480e829ddb68c4ad945d8ffe6097e1e Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sat, 13 Nov 2021 00:57:41 +0100 Subject: [PATCH] sample jenkins test --- Jenkinsfile | 32 ++++++++++++++++++++++++++++++++ webpack.config.js | 41 +++++++++++++++++++++++++++++++++++------ 2 files changed, 67 insertions(+), 6 deletions(-) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..286b5e2 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,32 @@ +// required jenkins plugins: +// * https://plugins.jenkins.io/git/ + +pipeline { + agent any + + stages { + + // stage('Check for changes') { + // sh "env.GIT_COMMIT != env.GIT_PREVIOUS_COMMIT" + // } + + stage('Install dependencies') { + steps { + sh 'npm ci' + } + } + + stage('Build') { + steps { + sh 'npm run build-all' + } + } + + stage('Push to release server') { + steps { + sh "echo 'implement me pls!'" + } + } + } + +} diff --git a/webpack.config.js b/webpack.config.js index 8a04cd1..a8a7f49 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -50,16 +50,45 @@ const config = { }, { test: /\.css$/, - use: [MiniCssExtractPlugin.loader, 'css-loader'], + use: [ + MiniCssExtractPlugin.loader, { + loader: 'css-loader', + // options: { + // importLoaders: 2, + // modules: { + // localIdentName: "🔶uw_[local]" + // } + // } + }], }, { test: /\.scss$/, - use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'], - }, - { - test: /\.sass$/, - use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader?indentedSyntax'], + use: [ + MiniCssExtractPlugin.loader, + // 'css-loader', + { + loader: 'css-loader', + // options: { + // // importLoaders: 1, + // modules: { + // localIdentName: "🔶uw_[local]" + // } + // } + }, + 'sass-loader' + ], }, + // { + // test: /\.sass$/, + // use: [MiniCssExtractPlugin.loader, { + // loader: 'css-loader', + // options: { + // importLoaders: 2, + // modules: true, + // localIdentName: "🔶uw_[local]" + // } + // }, 'sass-loader?indentedSyntax'], + // }, { test: /\.(png|jpg|gif|svg|ico)$/, loader: 'file-loader',