Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e62caff
test: use jest-matcher-deep-close-to for Webpack size
Dec 3, 2021
8ef5eb4
ci: switch to GitHub workflow for testing
Dec 3, 2021
e1486e8
fix(ci): test on Node.js 10 (#2)
Dec 3, 2021
3aae37b
update webpack -> 5
Dec 3, 2021
fef5740
update Webpack externals callback for Webpack 5
Dec 3, 2021
e61aef6
update tests for code size with Webpack 5
Dec 3, 2021
ee178b4
use toMatchCloseTo in another test case
Dec 3, 2021
dc5900f
add Node.js 17 to CI testing
Dec 3, 2021
790ea0c
fix(doc): remove old build status
Dec 6, 2021
9463092
docs: add npm badge
Dec 6, 2021
1402533
fix(docs): remove trailing spaces
Dec 6, 2021
2483cc6
update webpack -> ^5.65.0
Dec 6, 2021
7085084
Merge branch 'update-webpack-to-v5' into urgent-updates-2021
Dec 6, 2021
6d97558
fix(package.json): add LICENSE to files
Dec 7, 2021
f2be38c
ci: trigger on all branches
Dec 7, 2021
c3fc4ad
test: add test-build to test Babel build output
Dec 7, 2021
ab1c0b5
fix(deps): update jest-diff -> ^26.6.2
Dec 7, 2021
f4f84e5
build: update @babel devDependencies
Dec 7, 2021
baf322a
build remove babel-jest from devDependencies
Dec 7, 2021
af532f5
test: update jest -> 27 --dev
Dec 7, 2021
da2672e
build: remove flow-bin from devDependencies
Dec 7, 2021
e58bc5a
refactor: remove [obsolete] flow-typed items
Dec 7, 2021
cb12b2f
fix(deps): update @rollup/plugin-replace -> 3
Dec 7, 2021
f8d641a
test: check Prettier formatting
Dec 7, 2021
da1d0bd
fix(deps): update acorn -> 8
Dec 7, 2021
b3e0ba6
fix(deps): update bytes -> ^3.1.1
Dec 7, 2021
c83adb4
lint: update prettier -> ~2.5.1 --dev
Dec 7, 2021
ca76ae1
test: update redux -> ^4.1.2 --dev
Dec 7, 2021
db6ca32
ci: add npm & build test with [email protected]
Dec 7, 2021
f2ce431
build: update rollup -> ^2.60.2
Dec 7, 2021
a3e326d
test: update rollup-plugin-terser -> 7 --dev
Dec 7, 2021
c1c0688
ci: remove extra `npm run build` step
Dec 7, 2021
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
34 changes: 34 additions & 0 deletions .github/workflows/ci-test-build.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI test build

on:
- push
- pull_request

jobs:
build:

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

strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
node-version:
# try lowest & highest for now, at least
- 10.x
- 17.x

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# (with no npm cache)
- run: yarn
- run: yarn test-build
37 changes: 37 additions & 0 deletions .github/workflows/ci-test-node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI test

on:
- push
- pull_request

jobs:
build:

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

strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version:
- 10.x
- 12.x
- 14.x
- 16.x
- 17.x

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# (with no npm cache)
- run: yarn
- run: npm test
35 changes: 35 additions & 0 deletions .github/workflows/ci-test-rollup-2.0.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: rollup 2.0.0 npm & build test

on:
- push
- pull_request

jobs:
build:

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

strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
node-version:
- 16.x

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# (with no npm cache)
- run: yarn
- run: yarn add --dev [email protected]
- run: yarn why rollup # should show use of [email protected]
- run: npm test
- run: yarn test-build # test if generated dist will work with [email protected]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
temp
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# rollup-plugin-size-snapshot [![Build Status][travis-img]][travis]
# rollup-plugin-size-snapshot

[travis-img]: https://travis-ci.org/TrySound/rollup-plugin-size-snapshot.svg
[travis]: https://travis-ci.org/TrySound/rollup-plugin-size-snapshot
[![npm](https://img.shields.io/npm/v/rollup-plugin-size-snapshot)](https://www.npmjs.com/package/rollup-plugin-size-snapshot)

<img src="example2.png" />

Expand Down Expand Up @@ -59,14 +58,14 @@ export default {

### snapshotPath

type: `string`
type: `string`
default: `'.size-snapshot.json'`

### matchSnapshot

This option allows you to verify that contributors don't forget to build or commit the `.size-snapshot.json` file. If this is `true`, the plugin will validate the snapshot against an existing one. Typically, one would define this option's value as true during continuous integration; [using it locally is unintended](https://github.com/TrySound/rollup-plugin-size-snapshot/issues/33).

type: `boolean`
type: `boolean`
default: `false`

### threshold
Expand All @@ -75,14 +74,14 @@ Possible difference between sizes in actual snapshot and generated one.

Note: Make sense only when `matchSnapshot` is `true`.

type: `number`
type: `number`
default: `0`

### printInfo

Allows you to disable log to terminal.

type: `boolean`
type: `boolean`
default: `true`

# License
Expand Down
6 changes: 0 additions & 6 deletions flow-typed/npm/flow-bin_v0.x.x.js

This file was deleted.

Loading