Skip to content

Commit

Permalink
feat: Adds ci implementation (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-rubio-go authored Feb 15, 2024
1 parent 4d7ff3b commit ad37f68
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 16 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/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/workflows/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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_STORE
.idea/
node_modules/
dist/

30 changes: 14 additions & 16 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var path = require('path')
var path = require('path');

const UglifyJSPlugin = require('uglifyjs-webpack-plugin');

Expand All @@ -8,28 +8,26 @@ var webpackConfig = {
sankey: './src/sankey.ts',
},
output: {
filename: "[name].js",
path: path.join(__dirname),
library: "[name]",
libraryTarget: "umd"
filename: 'bundle.js',
path: path.join(path.resolve(__dirname), '/dist'),
library: '[name]',
libraryTarget: 'umd',
},
resolve: {
extensions: [".ts", ".js"]
extensions: ['.ts', '.js'],
},
plugins: [
new UglifyJSPlugin()
],
plugins: [new UglifyJSPlugin()],
module: {
rules: [
{ test: /\.js$/, loader: "babel-loader" },
{ test: /\.ts$/, loader: "ts-loader" },
]
{test: /\.js$/, loader: 'babel-loader'},
{test: /\.ts$/, loader: 'ts-loader'},
],
},
performance: {
hints: false,
maxEntrypointSize: 512000,
maxAssetSize: 512000
}
}
maxAssetSize: 512000,
},
};

module.exports = webpackConfig
module.exports = webpackConfig;

0 comments on commit ad37f68

Please sign in to comment.