Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 9 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,23 @@ on:

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
# TODO(68): Add `windows-latest` and support.
os: [ubuntu-latest]
node-version: [14.x, 16.x, 18.x]
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

# Note: Yarn root cache restore is slow (1:30) on Windows, so only do on Linux.
- name: Get Yarn cache directory
if: runner.os != 'Windows'
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Use Yarn cache
if: runner.os != 'Windows'
uses: actions/cache@v2
id: yarn-cache
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-${{ runner.os }}-${{ matrix.node-version }}-
yarn-${{ runner.os }}-
node-version: 18
cache: "yarn"

- name: Use node_modules cache
id: node-modules-cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }}
key: node-modules-${{ runner.os }}-${{ hashFiles('./yarn.lock') }}
restore-keys: |
node-modules-${{ runner.os }}-${{ matrix.node-version }}-
node-modules-${{ runner.os }}-

- name: Project installation
Expand All @@ -67,4 +43,4 @@ jobs:
env:
# Webpack fails due to crypto enforcements in Node 17+
# See, e.g., https://github.com/webpack/webpack/issues/14532
NODE_OPTIONS: ${{ matrix.node-version == '18.x' && '--openssl-legacy-provider' || '' }}
NODE_OPTIONS: "--openssl-legacy-provider"
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
packages: write
pull-requests: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18

Expand Down
32 changes: 25 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
[![Webpack Stats Plugin — Formidable, We build the modern web](https://raw.githubusercontent.com/FormidableLabs/webpack-stats-plugin/master/webpack-stats-plugin-Hero.png)](https://formidable.com/open-source/)

[![npm version][npm_img]][npm_site]
[![Actions Status][actions_img]][actions_site]
[![MIT license][lic_img]][lic_site]
[![Maintenance Status][maintenance_image]](#maintenance-status)
<a href="https://commerce.nearform.com/open-source/" target="_blank">
<img alt="Victory — Formidable, We build the modern web" src="https://oss.nearform.com/api/banner.svg?badge=Webpack%20Stats%20Plugin&bg=e8b25a" />
</a>

<br />
<br />

<p align="center">
<a href="https://npmjs.com/package/webpack-stats-plugin">
<img alt="weekly downloads" src="https://img.shields.io/npm/dw/webpack-stats-plugin">
</a>
<a href="https://npmjs.com/package/webpack-stats-plugin">
<img alt="current version" src="https://img.shields.io/npm/v/webpack-stats-plugin">
</a>
<a href="https://github.com/FormidableLabs/webpack-stats-plugin/actions">
<img alt="build status" src="https://github.com/FormidableLabs/webpack-stats-plugin/actions/workflows/ci.yml/badge.svg">
</a>
<a href="https://github.com/FormidableLabs/webpack-stats-plugin#maintenance-status">
<img alt="Maintenance Status" src="https://img.shields.io/badge/maintenance-active-green.svg" />
</a>
<a href="https://github.com/FormidableLabs/webpack-stats-plugin/blob/main/LICENSE.txt">
<img alt="license" src="https://img.shields.io/npm/l/webpack-stats-plugin"j>
</a>
</p>

This plugin will ingest the webpack [stats](https://webpack.js.org/configuration/stats/#stats) object, process / transform the object and write out to a file for further consumption.

Expand Down Expand Up @@ -199,7 +217,7 @@ In earlier webpack, the plugin uses the much later [`emit`](https://webpack.js.o

## Maintenance Status

**Active:** Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.
**Active:** NearForm is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.

[npm_img]: https://badge.fury.io/js/webpack-stats-plugin.svg
[npm_site]: http://badge.fury.io/js/webpack-stats-plugin
Expand Down
Loading