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

New build #27

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
13 changes: 9 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/cloudflare-worker"
schedule:
interval: "weekly"
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'

- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: 'npm'

- name: Install
run: npm ci --no-fund

- name: Tests
run: npm run test

- name: Lint
run: npm run lint

- name: Build
run: npm run build

deploy:
name: Deploy
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dist/
coverage/
node_modules/
tsconfig.json
.wrangler
.idea
public
package-lock.json
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"printWidth": 250,
"singleQuote": true,
"trailingComma": "all",
"semi": true,
"tabWidth": 4,
"bracketSpacing": false,
"bracketSameLine": false,
"arrowParens": "avoid"
}
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,22 @@ Source files for the frontend of [packages.echocat.org](https://packages.echocat

## TOC

* [Usage](#usage)
* [Deployment](#deployment)
* [Contributing](#contributing)
* [License](#license)
- [Usage](#usage)
- [Deployment](#deployment)
- [Contributing](#contributing)
- [License](#license)

## Usage

* [Maven](#maven)
* [Helm](#helm)
- [Maven](#maven)
- [Helm](#helm)

### Maven

This is a Maven repository access proxy for echocat's projects and can be accessed via `https://packages.echocat.org/maven/<artifact>`. Simply add this repository to your projects using:

#### For dependencies

```xml
<repositories>
<repository>
Expand All @@ -29,6 +30,7 @@ This is a Maven repository access proxy for echocat's projects and can be access
```

#### For dependencies with snapshots

```xml
<repositories>
<repository>
Expand All @@ -42,6 +44,7 @@ This is a Maven repository access proxy for echocat's projects and can be access
```

#### For plugins

```xml
<pluginRepositories>
<pluginRepository>
Expand Down Expand Up @@ -70,7 +73,7 @@ $ helm repo add https://packages.echocat.org/helm

```bash
$ npm install
$ npm run start
$ npm run start
```

[More details.](https://developers.cloudflare.com/workers/cli-wrangler/commands#dev)
Expand All @@ -80,10 +83,10 @@ $ npm run start
1. Ensure everything works in [local development](#local-development).
2. Commit/Push the latest changes to git.
3. [Publish the changes](https://developers.cloudflare.com/workers/cli-wrangler/commands#publish)
```bash
$ npm install
$ npm run deploy
```
```bash
$ npm install
$ npm run deploy
```

## Contributing

Expand Down
19 changes: 19 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"preset": "ts-jest/presets/default-esm",
"globals": {
"ts-jest": {
"tsconfig": "./tsconfig.json",
"useESM": true
}
},
"transform": {
"^.+\\.(t|j)sx?$": "ts-jest"
},
"testRegex": "/src/.*\\.test\\.ts$",
"testEnvironment": "miniflare",
"testEnvironmentOptions": {
"scriptPath": "./src/index.ts",
"modules": true
},
"collectCoverageFrom": ["src/**/*.{ts,tsx}"]
}
Loading
Loading