Skip to content

Commit fd4ea1a

Browse files
Cleanup repository (#976)
* remove bors, appveyor and replace sizereport with our own * remove install from size * Update .github/workflows/nodejs.yml Co-authored-by: Ryan Christian <[email protected]> Co-authored-by: Ryan Christian <[email protected]>
1 parent 88241dd commit fd4ea1a

File tree

7 files changed

+55
-183
lines changed

7 files changed

+55
-183
lines changed

.github/workflows/nodejs.yml

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,18 @@ jobs:
2121
uses: actions/setup-node@v1
2222
with:
2323
node-version: ${{ matrix.node-version }}
24-
- name: install npm@latest
25-
run: npm i -g npm@latest --registry=https://registry.npmjs.org
26-
- name: npm install, build, and test
27-
run: |
28-
npm install
29-
npm test
30-
- name: sizereport
31-
run: ./node_modules/.bin/sizereport --config
32-
33-
# Could add this for canary versions
34-
# publish-gpr:
35-
# needs: build
36-
# runs-on: ubuntu-latest
37-
# steps:
38-
# - uses: actions/checkout@v1
39-
# - uses: actions/setup-node@v1
40-
# with:
41-
# node-version: 12
42-
# registry-url: https://npm.pkg.github.com/
43-
# scope: '@preact'
44-
# - run: |
45-
# npm install
46-
# npm config set registry https://npm.pkg.github.com/
47-
# npm publish
48-
# env:
49-
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
24+
- name: Cache node modules
25+
uses: actions/cache@v1
26+
env:
27+
cache-name: cache-node-modules
28+
with:
29+
path: ~/.npm
30+
# This uses the same name as the build-action so we can share the caches.
31+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
32+
restore-keys: |
33+
${{ runner.os }}-build-${{ env.cache-name }}-
34+
${{ runner.os }}-build-
35+
${{ runner.os }}-
36+
- run: npm ci --ignore-scripts
37+
- name: npm build and test
38+
run: npm test

.github/workflows/size.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: compressed-size
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: compressed-size-action
14+
uses: preactjs/compressed-size-action@v2
15+
with:
16+
pattern: 'dist/!(*.js.map)'
17+
build-script: build
18+
repo-token: '${{ secrets.GITHUB_TOKEN }}'
19+
20+
- name: compressed-size-action
21+
uses: preactjs/compressed-size-action@v2
22+
with:
23+
pattern: 'test/fixtures/**/dist/!(*.map)'
24+
build-script: 'test'
25+
repo-token: '${{ secrets.GITHUB_TOKEN }}'

appveyor.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

bors.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

package-lock.json

Lines changed: 1 addition & 111 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@
55
"main": "dist/microbundle.js",
66
"source": "src/index.js",
77
"bin": "dist/cli.js",
8+
"repository": "developit/microbundle",
9+
"keywords": [
10+
"bundle",
11+
"rollup",
12+
"micro library"
13+
],
14+
"files": [
15+
"src",
16+
"dist",
17+
"index.d.ts"
18+
],
19+
"author": "Jason Miller <[email protected]> (http://jasonformat.com)",
20+
"license": "MIT",
821
"scripts": {
922
"build": "npm run -s build:babel && npm run -s build:self",
1023
"build:babel": "babel-node src/cli.js --target=node --format cjs src/{cli,index}.js",
@@ -18,7 +31,6 @@
1831
"changeset": "changeset",
1932
"release": "npm run -s prepare && npm test && changeset publish"
2033
},
21-
"repository": "developit/microbundle",
2234
"prettier": {
2335
"singleQuote": true,
2436
"trailingComma": "all",
@@ -55,23 +67,6 @@
5567
"pre-commit": "lint-staged"
5668
}
5769
},
58-
"greenkeeper": {
59-
"lockfiles": {
60-
"outOfRangeUpdatesOnly": true
61-
}
62-
},
63-
"keywords": [
64-
"bundle",
65-
"rollup",
66-
"micro library"
67-
],
68-
"files": [
69-
"src",
70-
"dist",
71-
"index.d.ts"
72-
],
73-
"author": "Jason Miller <[email protected]> (http://jasonformat.com)",
74-
"license": "MIT",
7570
"dependencies": {
7671
"@babel/core": "^7.12.10",
7772
"@babel/plugin-proposal-class-properties": "7.12.1",
@@ -139,7 +134,6 @@
139134
"regenerator-runtime": "^0.13.7",
140135
"rimraf": "^3.0.2",
141136
"shell-quote": "^1.7.2",
142-
"strip-ansi": "^6.0.0",
143-
"travis-size-report": "^1.1.0"
137+
"strip-ansi": "^6.0.0"
144138
}
145139
}

sizereport.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)