Skip to content

Commit ec690a4

Browse files
committed
Merge branch 'main' of github.com:adityak74/gpt-crawler into api-server-crawler
2 parents 4508c38 + 3ec5fee commit ec690a4

File tree

17 files changed

+17030
-2768
lines changed

17 files changed

+17030
-2768
lines changed

.DS_Store

-6 KB
Binary file not shown.

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ storage
88

99
# installed files
1010
node_modules
11+
12+
# ignore base image 'main.js'
13+
main.js

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build workflow
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
jobs:
8+
build:
9+
name: build
10+
runs-on: ubuntu-latest
11+
env:
12+
CI_JOB_NUMBER: 1
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
cache: npm
18+
node-version: 18
19+
- run: npm i
20+
- run: npm run build
21+
- uses: preactjs/compressed-size-action@v2
22+
with:
23+
pattern: ".dist/**/*.{js,ts,json}"

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
name: release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
cache: npm
17+
node-version: 18
18+
- run: npm i
19+
- run: npm run build
20+
- run: npm run semantic-release
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Test workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
prettier_check:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Set up Node.js
12+
uses: actions/setup-node@v2
13+
with:
14+
node-version: "20"
15+
- name: Install Dependencies
16+
run: npm ci
17+
- name: Run prettier
18+
run: npm run prettier:check

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ node_modules
66
apify_storage
77
crawlee_storage
88
storage
9+
.DS_Store
10+
11+
!package.json
12+
!package-lock.json
13+
!tsconfig.json
914

1015
# any output from the crawler
1116
*.json
12-
.env
17+
.env
18+
pnpm-lock.yaml

.releaserc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/changelog",
8+
"@semantic-release/npm",
9+
"@semantic-release/git",
10+
"@semantic-release/github"
11+
]
12+
}

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ RUN npm --quiet set progress=false \
4545
# for most source file changes.
4646
COPY --chown=myuser . ./
4747

48-
4948
# Run the image. If you know you won't need headful browsers,
5049
# you can remove the XVFB start script for a micro perf gain.
51-
CMD ./start_xvfb_and_run_cmd.sh && npm run start:prod --silent
50+
CMD ./start_xvfb_and_run_cmd.sh && npm run start:prod --silent

LICENSE

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

License

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ISC License
2+
3+
Copyright (c) 2023 BuilderIO
4+
5+
Permission to use, copy, modify, and/or distribute this software for any purpose
6+
with or without fee is hereby granted, provided that the above copyright notice
7+
and this permission notice appear in all copies.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
13+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
14+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
15+
THIS SOFTWARE.

0 commit comments

Comments
 (0)