Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup repository #976

Merged
merged 3 commits into from
Jul 19, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
41 changes: 15 additions & 26 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,18 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install npm@latest
run: npm i -g npm@latest --registry=https://registry.npmjs.org
- name: npm install, build, and test
run: |
npm install
npm test
- name: sizereport
run: ./node_modules/.bin/sizereport --config

# Could add this for canary versions
# publish-gpr:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/setup-node@v1
# with:
# node-version: 12
# registry-url: https://npm.pkg.github.com/
# scope: '@preact'
# - run: |
# npm install
# npm config set registry https://npm.pkg.github.com/
# npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm
# This uses the same name as the build-action so we can share the caches.
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm ci
JoviDeCroock marked this conversation as resolved.
Show resolved Hide resolved
- name: npm build and test
run: npm test
25 changes: 25 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: compressed-size
on:
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: compressed-size-action
uses: preactjs/compressed-size-action@v2
with:
pattern: 'dist/!(*.js.map)'
build-script: build
repo-token: '${{ secrets.GITHUB_TOKEN }}'

- name: compressed-size-action
uses: preactjs/compressed-size-action@v2
with:
pattern: 'test/fixtures/**/dist/!(*.map)'
build-script: 'test'
repo-token: '${{ secrets.GITHUB_TOKEN }}'
16 changes: 0 additions & 16 deletions appveyor.yml

This file was deleted.

5 changes: 0 additions & 5 deletions bors.toml

This file was deleted.

112 changes: 1 addition & 111 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 14 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
"main": "dist/microbundle.js",
"source": "src/index.js",
"bin": "dist/cli.js",
"repository": "developit/microbundle",
"keywords": [
"bundle",
"rollup",
"micro library"
],
"files": [
"src",
"dist",
"index.d.ts"
],
"author": "Jason Miller <jason@developit.ca> (http://jasonformat.com)",
"license": "MIT",
"scripts": {
"build": "npm run -s build:babel && npm run -s build:self",
"build:babel": "babel-node src/cli.js --target=node --format cjs src/{cli,index}.js",
Expand All @@ -18,7 +31,6 @@
"changeset": "changeset",
"release": "npm run -s prepare && npm test && changeset publish"
},
"repository": "developit/microbundle",
"prettier": {
"singleQuote": true,
"trailingComma": "all",
Expand Down Expand Up @@ -55,23 +67,6 @@
"pre-commit": "lint-staged"
}
},
"greenkeeper": {
"lockfiles": {
"outOfRangeUpdatesOnly": true
}
},
"keywords": [
"bundle",
"rollup",
"micro library"
],
"files": [
"src",
"dist",
"index.d.ts"
],
"author": "Jason Miller <jason@developit.ca> (http://jasonformat.com)",
"license": "MIT",
"dependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-class-properties": "7.12.1",
Expand Down Expand Up @@ -139,7 +134,6 @@
"regenerator-runtime": "^0.13.7",
"rimraf": "^3.0.2",
"shell-quote": "^1.7.2",
"strip-ansi": "^6.0.0",
"travis-size-report": "^1.1.0"
"strip-ansi": "^6.0.0"
}
}
5 changes: 0 additions & 5 deletions sizereport.config.js

This file was deleted.