Skip to content

Commit

Permalink
fix: update dependencies and add node 12 as target
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkr00t committed Feb 24, 2020
1 parent eae8124 commit e6f8249
Show file tree
Hide file tree
Showing 10 changed files with 2,291 additions and 4,834 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,27 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
node-version: [8.x, 12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run ci:validate
- run: npm run ci:test:coverage
env:
CI: true
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run ci:validate
- run: npm run ci:test:coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
path-to-lcov: ./coverage/lcov.info # optional (default value)

env:
CI: true
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Node Package Publish

on:
push:
branches:
- master

jobs:
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Conventional Changelog Action
uses: TriPSs/conventional-changelog-action@v1.2.0
with:
github-token: ${{ secrets.github_token }}
git-message: "chore(release): {version}"
preset: "angular"
tag-prefix: "v"
output-file: "CHANGELOG.md"
changelog-release-count: 10
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion lib/__tests__/__snapshots__/analyze.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The actual snapshot is saved in `analyze.js.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## should handle stats file with a chunk which has empty modules

Expand Down
2 changes: 1 addition & 1 deletion lib/console/__tests__/__snapshots__/progress-bar.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The actual snapshot is saved in `progress-bar.js.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## should output correct progress for {"progress":0}

Expand Down
2 changes: 1 addition & 1 deletion lib/normalize-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = function normalizeStats(

(stats.children || []).forEach(child => {
let normalizedChild = normalizeStats(child);
chunks = { ...chunks, ...normalizedChild.chunks };
chunks = Object.assign({}, { ...chunks, ...normalizedChild.chunks });
normalizedChild.modules.forEach(m => {
modules.set(m.id, m);
});
Expand Down
16 changes: 8 additions & 8 deletions lib/reporter/__tests__/__snapshots__/print.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The actual snapshot is saved in `print.js.snap`.

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## should properly print multi entry stats.json

Expand Down Expand Up @@ -1470,13 +1470,6 @@ Generated by [AVA](https://ava.li).
'––––––––––––––––––––',
'',
'',
` FILE ./index.js + 14 modules [entry]␊
├─ imported: 1 time␊
├─ size: 36 KiB␊
└─ chunks: main`,
'––––––––––––––––––––',
'',
'',
` FILE ./components/main.css␊
├─ imported: 1 time␊
├─ size: 1 KiB␊
Expand All @@ -1487,6 +1480,13 @@ Generated by [AVA](https://ava.li).
'––––––––––––––––––––',
'',
'',
` FILE ./index.js + 14 modules [entry]␊
├─ imported: 1 time␊
├─ size: 36 KiB␊
└─ chunks: main`,
'––––––––––––––––––––',
'',
'',
` MODULE html-webpack-plugin [entry]␊
├─ imported: 1 time␊
├─ deps count: 1␊
Expand Down
Binary file modified lib/reporter/__tests__/__snapshots__/print.js.snap
Binary file not shown.
Loading

0 comments on commit e6f8249

Please sign in to comment.