Skip to content

Commit 24dd4b3

Browse files
committed
feat: implement http-core
Release-As: 0.0.2
0 parents  commit 24dd4b3

File tree

211 files changed

+32720
-0
lines changed

Some content is hidden

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

211 files changed

+32720
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@pierrevensy

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## Description
2+
3+
Please provide a short summary of the changes you have made in this pull request. Include any context or background that might be helpful to reviewers.
4+
5+
## Related Issue
6+
7+
Fixes # (issue number)
8+
9+
## Type of Change
10+
11+
- [ ] Bug fix
12+
- [ ] New feature
13+
- [ ] Documentation update
14+
- [ ] Refactoring
15+
- [ ] Other (please describe):
16+
17+
## Checklist (Preconditions for Code Review)
18+
19+
- [ ] Lint your code to ensure it adheres to the project's style guidelines.
20+
- [ ] Run all existing and new unit tests locally to verify correctness.
21+
- [ ] Ensure code changes are covered with appropriate tests (unit, integration, etc.).
22+
- [ ] Update all dependencies to their latest compatible versions.
23+
- [ ] Update documentation where necessary to reflect the changes.
24+
- [ ] Resolve all linting and compilation errors.
25+
- [ ] Follow SOLID principles and other best practices in the code.
26+
- [ ] Review the code for potential security vulnerabilities.
27+
- [ ] Add comments for complex or hard-to-understand parts of the code.
28+
- [ ] Ensure the PR is appropriately scoped (small, focused, and easy to review).
29+
- [ ] Ensure commit messages adhere to the [Conventional commit message guidelines](https://www.conventionalcommits.org/en/v1.0.0/).
30+
- [ ] Add tests for any new features or bug fixes.
31+
- [ ] Clearly indicate if the pull request introduces any breaking changes.
32+
33+
## Screenshots (if applicable)
34+
35+
Please add screenshots to help explain your changes if applicable.
36+
37+
## Additional Information
38+
39+
Please provide any additional information that might be helpful during the review process.
40+

.github/dependabot.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: 2
2+
updates:
3+
# Check for updates to npm dependencies
4+
- package-ecosystem: "npm"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
open-pull-requests-limit: 5
9+
commit-message:
10+
prefix: "chore(deps)"
11+
include: "scope"
12+
labels:
13+
- "dependencies"
14+
reviewers:
15+
- "pierrevensy"
16+
assignees:
17+
- "pierrevensy"
18+
19+
# Check for updates to GitHub Actions
20+
- package-ecosystem: "github-actions"
21+
directory: "/"
22+
schedule:
23+
interval: "weekly"
24+
open-pull-requests-limit: 5
25+
commit-message:
26+
prefix: "chore(actions)"
27+
include: "scope"
28+
labels:
29+
- "github-actions"
30+
reviewers:
31+
- "pierrevensy"
32+
assignees:
33+
- "pierrevensy"

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Merge to Main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
- name: Install dependencies
23+
run: npm ci
24+
- name: Lint code
25+
run: npm run lint
26+
- name: Run tests
27+
run: npm run test:cvg
28+
- name: Build library
29+
run: npm run build
30+
31+
release-please:
32+
runs-on: ubuntu-latest
33+
needs: build
34+
steps:
35+
- uses: googleapis/release-please-action@v4
36+
with:
37+
release-type: node
38+
token: ${{ secrets.PAT_TOKEN }}

.github/workflows/pr.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
- name: Install dependencies
19+
run: npm ci
20+
- name: Lint code
21+
run: npm run lint
22+
- name: Run tests
23+
run: npm run test:cvg
24+
- name: Build library
25+
run: npm run build

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Package to npmjs
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
ref: ${{ github.event.release.tag_name }}
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
scope: '@stone-js'
22+
registry-url: https://registry.npmjs.org
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Build library
26+
run: npm run build
27+
- name: Publish to NPM
28+
run: npm publish --access public
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# These are some examples of commonly ignored file patterns.
2+
# You should customize this list as applicable to your project.
3+
# Learn more about .gitignore:
4+
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
5+
6+
# Node artifact files
7+
node_modules/
8+
dist/
9+
public/
10+
11+
# Istanbul Code coverage
12+
coverage
13+
.nyc_output
14+
15+
# Compiled Java class files
16+
*.class
17+
18+
# Compiled Python bytecode
19+
*.py[cod]
20+
21+
# Log files
22+
*.log
23+
24+
# Package files
25+
*.jar
26+
27+
# Maven
28+
target/
29+
30+
# JetBrains IDE
31+
.idea/
32+
33+
# Unit test reports
34+
TEST*.xml
35+
36+
# Generated by MacOS
37+
.DS_Store
38+
39+
# Generated by Windows
40+
Thumbs.db
41+
42+
# Applications
43+
*.app
44+
*.exe
45+
*.war
46+
47+
# Large media files
48+
*.mp4
49+
*.tiff
50+
*.avi
51+
*.flv
52+
*.mov
53+
*.wmv
54+
55+
# local env files
56+
# Comment for ./examples
57+
# .env
58+
# .env.dev
59+
# .env.prod
60+
# .env.production
61+
# .env.local
62+
# .env.*.local
63+
64+
# Log files
65+
npm-debug.log*
66+
yarn-debug.log*
67+
yarn-error.log*
68+
pnpm-debug.log*
69+
70+
# Editor directories and files
71+
.idea
72+
.vscode
73+
*.suo
74+
*.ntvs*
75+
*.njsproj
76+
*.sln
77+
*.sw?
78+
79+
# Index
80+
index.html
81+
82+
# Examples
83+
examples/
84+
85+
README_docs.md

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run lint

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
All notable changes to the "Stone.js Http core" extension will be documented in this file.
4+
5+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6+
7+
## Unreleased

0 commit comments

Comments
 (0)