Skip to content

Commit dda378d

Browse files
committed
Reset old code
1 parent e3b9aff commit dda378d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+31
-11376
lines changed

.github/workflows/ci-test.yml

Lines changed: 22 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -12,50 +12,27 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node_version: [18.x, 20.x, 22.x]
15+
deno-version: [1.44.4]
1616

1717
steps:
18-
- uses: actions/checkout@v4
19-
20-
- name: setup Node.js v${{ matrix.node_version }}
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: ${{ matrix.node_version }}
24-
25-
- name: run npm scripts
26-
env:
27-
FACEBOOK_APP_ID: ${{ secrets.FACEBOOK_APP_ID }}
28-
FACEBOOK_CLIENT_TOKEN: ${{ secrets.FACEBOOK_CLIENT_TOKEN }}
29-
PROXY_SERVER: ${{ secrets.PROXY_SERVER }}
30-
run: |
31-
npm install
32-
npm run lint
33-
npm run build --if-present
34-
npm run test
35-
36-
- name: Coveralls Parallel
37-
uses: coverallsapp/github-action@v2
38-
with:
39-
flag-name: run-${{ join(matrix.*, '-') }}
40-
parallel: true
41-
github-token: ${{ secrets.GITHUB_TOKEN }}
42-
43-
- name: cache node modules
44-
uses: actions/cache@v4
45-
with:
46-
path: ~/.npm
47-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
48-
restore-keys: |
49-
${{ runner.os }}-node-
50-
51-
finish:
52-
needs: test
53-
if: ${{ always() }}
54-
runs-on: ubuntu-latest
55-
steps:
56-
- name: Coveralls Finished
57-
uses: coverallsapp/github-action@v2
58-
with:
59-
parallel-finished: true
60-
carryforward: "run-18.x,run-20.x,run-21.x"
61-
18+
- name: Git Checkout Deno Module
19+
uses: actions/checkout@v4
20+
- name: Use Deno Version ${{ matrix.deno-version }}
21+
uses: denoland/setup-deno@v1
22+
with:
23+
deno-version: ${{ matrix.deno-version }}
24+
- name: format check
25+
run: deno fmt --check mod.ts utils/* scripts/* tests/*
26+
- name: run linter
27+
run: deno lint mod.ts utils/* scripts/* tests/*
28+
- name: run test
29+
run: deno test --allow-all --coverage=cov/
30+
31+
- name: Generate coverage report
32+
run: deno coverage --lcov cov > cov.lcov
33+
34+
- name: Upload coverage to Coveralls.io
35+
uses: coverallsapp/github-action@v2
36+
with:
37+
github-token: ${{ secrets.GITHUB_TOKEN }}
38+
path-to-lcov: cov.lcov

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
132

143
on:

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ logs
99

1010
node_modules
1111
coverage
12-
coverage.lcov
1312
.nyc_output
1413

1514
yarn.lock
16-
pnpm-lock.yaml
15+
coverage.lcov
1716
package-lock.json
17+
pnpm-lock.yaml
1818
deno.lock
19+
20+
npm
21+
cov
22+
cov.lcov

.npmignore

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

CONTRIBUTING.md

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,48 +6,17 @@ Collaborations and pull requests are always welcomed, though larger proposals sh
66

77
As an OSS, it's better to follow the Unix philosophy: "do one thing and do it well".
88

9+
910
## Third-party libraries
1011

1112
Please avoid using libaries other than those available in the standard library, unless necessary.
1213

1314
This library needs to be simple and flexible to run on multiple platforms such as Deno, Bun, or even browser.
1415

1516

16-
## Coding convention
17-
18-
Make sure your code lints before opening a pull request.
19-
20-
21-
```bash
22-
cd oembed-extractor
23-
24-
# check coding convention issue
25-
npm run lint
26-
27-
# auto fix coding convention issue
28-
npm run lint:fix
29-
```
30-
31-
*When you run `npm test`, the linting process will be triggered at first.*
32-
33-
34-
## Testing
35-
36-
Be sure to run the unit test suite before opening a pull request. An example test run is shown below.
37-
38-
```bash
39-
cd oembed-extractor
40-
npm test
41-
```
42-
43-
![oembed-extractor unit test](https://i.imgur.com/Nr5BgUx.png)
44-
45-
If test coverage decreased, please check test scripts and try to improve this number.
46-
47-
4817
## Documentation
4918

50-
If you've changed APIs, please update README and [the examples](examples).
19+
If you've changed APIs, please update README.
5120

5221

5322
## Clean commit histories

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ Description above is a general rule and may be altered on case by case basis.
1212

1313
You can report low severity vulnerabilities as GitHub issues.
1414

15-
More severe vulnerabilities should be reported to email extractus.security@skiff.com.
15+
More severe vulnerabilities should be reported to email extractus@pwshub.com.
1616

1717
---

eslint.config.js

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

eval.js

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

examples/browser-oembed-parser/.gitignore

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

examples/browser-oembed-parser/README.md

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

0 commit comments

Comments
 (0)