Skip to content

Commit

Permalink
chore: update project config
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Dec 3, 2019
1 parent defd12f commit 0b05854
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 101 deletions.
72 changes: 10 additions & 62 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
jobs:
test:
strategy:
fail-fast: false
matrix:
PLATFORM:
- "ubuntu-latest"
Expand All @@ -26,6 +27,7 @@ jobs:

name: Test on node ${{ matrix.NODE }} and ${{ matrix.PLATFORM }}
runs-on: ${{ matrix.PLATFORM }}
# needs: [build]
steps:
- name: Checkout
uses: actions/checkout@master
Expand All @@ -38,75 +40,21 @@ jobs:
- name: Install Dependencies
run: yarn

# - name: Download Artifact
# uses: actions/download-artifact@master
# with:
# name: dist
# path: dist

- name: Run Test
run: yarn test-coverage

- name: Upload Coverage Parallel
uses: coverallsapp/github-action@master
if: success()
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true

- name: Upload Coverage Finished
- name: Upload Coverage
uses: coverallsapp/github-action@master
if: success()
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

# test-dist:
# strategy:
# matrix:
# PLATFORM:
# - "ubuntu-latest"
# # - "macos-latest"
# # - "windows-latest"
# NODE:
# # - "13"
# - "12"
# # - "10"
# # exclude:
# # - PLATFORM: "macos-latest"
# # NODE: "12"

# name: Test on node ${{ matrix.NODE }} and ${{ matrix.PLATFORM }}
# runs-on: ${{ matrix.PLATFORM }}
# needs: [build]
# steps:
# - name: Checkout
# uses: actions/checkout@master

# - name: Setup Node.js
# uses: actions/setup-node@master
# with:
# node-version: ${{ matrix.NODE }}

# - name: Install Dependencies
# run: yarn

# - name: Download Artifact
# uses: actions/download-artifact@master
# with:
# name: dist
# path: dist

# - name: Run Test
# run: yarn test-coverage

# - name: Upload Coverage Parallel
# uses: coverallsapp/github-action@master
# if: success()
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# parallel: true

# - name: Upload Coverage Finished
# uses: coverallsapp/github-action@master
# if: success()
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# parallel-finished: true

lint:
name: Lint
Expand Down
81 changes: 42 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,30 @@
"name": "imagemin-upng",
"version": "1.3.1",
"description": "upng imagemin plugin",
"license": "MIT",
"repository": "fisker/imagemin-upng",
"author": {
"name": "fisker Cheung",
"email": "lionkay@gmail.com",
"url": "https://www.fiskercheung.com/"
},
"main": "dist/index.js",
"files": [
"dist"
],
"keywords": [
"apng",
"compress",
"image",
"imageminplugin",
"img",
"minify",
"optimize",
"png",
"apng",
"upng",
"upng-js"
],
"dependencies": {
"is-png": "2.0.0",
"upng-js": "2.1.0"
"repository": "fisker/imagemin-upng",
"license": "MIT",
"author": {
"name": "fisker Cheung",
"email": "lionkay@gmail.com",
"url": "https://www.fiskercheung.com/"
},
"files": [
"dist"
],
"sideEffects": false,
"main": "dist/index.js",
"scripts": {
"build": "run-p build:*",
"build:js": "rollup --config",
Expand All @@ -39,15 +36,40 @@
"format": "run-p format:*",
"format:eslint": "yarn lint:eslint --fix",
"format:markdown": "yarn lint:markdown --fix",
"format:package-json": "sort-package-json \"package.json\" \"packages/*/package.json\"",
"format:prettier": "yarn lint:prettier --write",
"lint": "run-p lint:*",
"lint:eslint": "eslint \"**/*.{js,mjs,vue}\"",
"lint:markdown": "markdownlint \"**/*.md\" --ignore \"**/node_modules/**\"",
"lint:package-json": "yarn run format:package-json --check",
"lint:prettier": "prettier \"**/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml}\" --check",
"release": "run-s build lint test format dist",
"test": "ava",
"test-coverage": "nyc ava"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"ava": {
"require": "esm",
"verbose": true
},
"nyc": {
"include": [
"src/**"
],
"reporter": [
"lcov",
"text"
],
"require": "esm"
},
"dependencies": {
"is-png": "2.0.0",
"upng-js": "2.1.0"
},
"devDependencies": {
"@babel/cli": "7.7.4",
"@babel/core": "7.7.4",
Expand All @@ -74,30 +96,11 @@
"rollup": "1.27.8",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-filesize": "6.2.1",
"rollup-plugin-prettier": "0.6.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
"rollup-plugin-prettier": "0.6.0",
"sort-package-json": "1.30.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"ava": {
"require": "esm",
"verbose": true
},
"nyc": {
"require": "esm",
"reporter": [
"lcov",
"text"
],
"include": [
"src/**"
]
},
"sideEffects": false
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}

0 comments on commit 0b05854

Please sign in to comment.