Skip to content

Commit

Permalink
chore: CI implementation (#20)
Browse files Browse the repository at this point in the history
Hi! Patching from [this PR
](#18
I can fix the ci-workflow from Github as logs are no longer available in
that one.
  • Loading branch information
elivillalejos authored Jul 4, 2024
1 parent 41662c7 commit 5b5e9af
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 15 deletions.
11 changes: 11 additions & 0 deletions .github/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: ci-workflow
on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
ci-build-job:
uses: looker-open-source/reusable-actions/.github/workflows/marketplace-viz-ci-build.yml@main
21 changes: 21 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: ci-release-workflow

on:
push:
branches:
- master
workflow_dispatch:

# Cancels any release workflows in progress
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
ci-release-job:
permissions:
contents: write
pull-requests: write
uses: looker-open-source/reusable-actions/.github/workflows/marketplace-viz-release.yml@main
# Inherits the Looker Automation Bot token to create release PRs and releases
secrets: inherit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
.DS_STORE
dist/
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"scripts": {
"build": "webpack --config webpack.config.js",
"build:legacy": "env NODE_OPTIONS='--openssl-legacy-provider' webpack",
"watch": "webpack --config webpack.config.js --watch --progress"
},
"devDependencies": {
Expand Down
20 changes: 5 additions & 15 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ var webpackConfig = {
entry: {
histogram: "./src/histogram.js",
},
devServer: {
contentBase: __dirname,
},
output: {
filename: "[name].js",
path: __dirname,
filename: "bundle.js",
path: path.join(path.resolve(__dirname), "/dist"),
library: "[name]",
libraryTarget: "umd",
},
Expand All @@ -15,19 +18,6 @@ var webpackConfig = {
test: /\.css$/i,
loader: ["style-loader", "css-loader"],
},
{
test: /\.(?:js|mjs|cjs)$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: [
['@babel/preset-env', { targets: "defaults" }]
],
plugins: ['@babel/plugin-transform-nullish-coalescing-operator', '@babel/plugin-transform-optional-chaining']
}
}
},
{
test: /\.(woff|woff2|ttf|otf)$/,
loader: "url-loader",
Expand Down

0 comments on commit 5b5e9af

Please sign in to comment.