Skip to content
/ blanky Public

Github Action - for commenting/posting Webpack Duplicates on your Pull Requests

Notifications You must be signed in to change notification settings

gbmeow/blanky

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack Duplicates Action

Github Action - for commenting/posting Webpack Duplicates on your Pull Requests

Roadmap

  • [] Add Angular CLI capability

Example usage

Required

Your package.json should have the following:

  "dependencies": {
    ...
    "webpack-stats-duplicates": "https://github.com/georgebatalinski/webpack-stats-duplicates"
  },
  "scripts": {
    ...
    "build": "npx webpack --profile --json > stats.json & npx webpack-stats-duplicates stats.json --json"
  },

Add the following YML file to your local {YOUR_REPO}.github/workflows/blanky.yml

name: blanky 

on:
  pull_request:
    branches: [ main ] #your branch goes here

jobs:
  duplicates:
    runs-on: ubuntu-latest
    name: Webpack duplicates
    steps:
      - uses: actions/checkout@v2 #we need to checkout the repo - sice we need ./blanky.json available 
      - name: check webpack bundle for duplicates
        uses: georgebatalinski/blanky@v1.1
        with:
          myToken: ${{ secrets.PRIVATE_REPO_GITHUB_TOKEN }} #you will need a token - if its a private repo 

About

Github Action - for commenting/posting Webpack Duplicates on your Pull Requests

Resources

Stars

Watchers

Forks

Packages

No packages published