sample jenkins test

This commit is contained in:
Tamius Han 2021-11-13 00:57:41 +01:00
parent cda6b4e10d
commit 5dc9b498d4
2 changed files with 67 additions and 6 deletions

32
Jenkinsfile vendored Normal file
View File

@ -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!'"
}
}
}
}

View File

@ -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',