Skip to content

Commit

Permalink
feat: Adds CI implementation (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-rubio-go authored Jan 24, 2024
1 parent 2d8f4cc commit cdf3f51
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 17 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: ci-build
on: [push, pull_request, workflow_dispatch]

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

on:
workflow_dispatch:
push:
branches:
- master

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

jobs:
release:
permissions:
contents: write
pull-requests: write
uses: looker-open-source/reusable-actions/.github/workflows/marketplace-viz-release.yml@main
secrets: inherit
1 change: 1 addition & 0 deletions dist/bundle.js

Large diffs are not rendered by default.

32 changes: 15 additions & 17 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,29 +8,27 @@ var webpackConfig = {
collapsible_tree: './src/collapsible_tree/collapsible_tree.ts',
},
output: {
filename: "[name].js",
path: path.join(__dirname),
library: "[name]",
libraryTarget: "umd"
filename: 'collapsible_tree.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: /\.css$/, loader: [ 'to-string-loader', 'css-loader' ] }
]
{test: /\.js$/, loader: 'babel-loader'},
{test: /\.ts$/, loader: 'ts-loader'},
{test: /\.css$/, loader: ['to-string-loader', 'css-loader']},
],
},
performance: {
hints: false,
maxEntrypointSize: 512000,
maxAssetSize: 512000
}
}
maxAssetSize: 512000,
},
};

module.exports = webpackConfig
module.exports = webpackConfig;

0 comments on commit cdf3f51

Please sign in to comment.