Skip to content

Commit 2e5952a

Browse files
committed
first commit
0 parents  commit 2e5952a

File tree

14 files changed

+1198
-0
lines changed

14 files changed

+1198
-0
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Setup Node, deno, pnpm & install'
2+
3+
description: 'Setup node, deno, pnpm and install'
4+
5+
runs:
6+
using: "composite"
7+
steps:
8+
- uses: pnpm/action-setup@v4.0.0
9+
with:
10+
version: 8
11+
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: '20'
15+
cache: 'pnpm'
16+
cache-dependency-path: './pnpm-lock.yaml'
17+
18+
- uses: denoland/setup-deno@v1
19+
with:
20+
deno-version: v1.x
21+
22+
- name: Install
23+
shell: bash
24+
run: pnpm install --frozen-lockfile
25+

.github/workflows/changeset.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release Changeset
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
permissions:
13+
contents: write
14+
issues: write
15+
pull-requests: write
16+
17+
name: Release
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout Repo
21+
uses: actions/checkout@v4
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: Setup Javascript
26+
uses: ./.github/actions/setup-project
27+
28+
- name: Create Release Pull Request
29+
uses: changesets/action@v1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
publish: "pnpm run ci:publish"
34+
version: "pnpm run ci:version"
35+
title: "🎉 Release"
36+
createGithubReleases: true

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Continous integration
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
checkout:
10+
runs-on: ubuntu-latest
11+
12+
name: 'Install, lint and test'
13+
14+
steps:
15+
- name: 'Checkout'
16+
uses: actions/checkout@v4
17+
18+
- name: 'Setup Javascript'
19+
uses: ./.github/actions/setup-project
20+
21+
- name: 'Lint'
22+
run: deno task lint
23+
24+
- name: 'Test'
25+
run: deno task test

.github/workflows/on-merge.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: On merge changeset
2+
3+
on:
4+
# To enable the Changeset pattern, you'll need to uncomment those line so each
5+
# time a Pull Request is closed you run this action.
6+
# pull_request:
7+
# types: [closed]
8+
# branches:
9+
# - 'main'
10+
# Every push on main are going to run this action.
11+
push:
12+
branches:
13+
- 'main'
14+
15+
permissions:
16+
id-token: write
17+
contents: read
18+
19+
jobs:
20+
publish:
21+
# To ensure you only run this action when closing a Release PR, you should
22+
# uncomment this
23+
# if: contains(github.event.pull_request.head.ref, 'changeset-release')
24+
25+
name: 'Upload script'
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Check out repository code
30+
uses: actions/checkout@v4
31+
32+
- name: 'Setup Javascript'
33+
uses: ./.github/actions/setup-project
34+
35+
- name: Bundle the script into a single file
36+
run: deno task build
37+
38+
- name: Publish the script to Bunny
39+
uses: 'BunnyWay/actions/deploy-script@main'
40+
with:
41+
script_id: ${{ secrets.SCRIPT_ID }}
42+
file: "dist/index.ts"

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
/dist/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
.vscode
29+
30+
# local env files
31+
.env*.local
32+
33+
# vercel
34+
.vercel
35+
36+
# typescript
37+
*.tsbuildinfo
38+
next-env.d.ts

CHANGELOG.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# es-empty-script
2+
3+
## 0.7.3
4+
5+
### Patch Changes
6+
7+
- c8182db: Use new version of edge scripting to avoid indicating the port & host
8+
9+
## 0.7.2
10+
11+
### Patch Changes
12+
13+
- 39d2c9c: Bump version
14+
15+
## 0.7.1
16+
17+
### Patch Changes
18+
19+
- cdac6b4: Bump version
20+
21+
## 0.7.0
22+
23+
### Minor Changes
24+
25+
- 74101f9: Bump version
26+
27+
### Patch Changes
28+
29+
- 6ba8db6: Update action to use the latest one
30+
31+
## 0.6.0
32+
33+
### Minor Changes
34+
35+
- c2f7c2d: Bump version
36+
37+
## 0.5.0
38+
39+
### Minor Changes
40+
41+
- ec632f1: Bump version
42+
43+
## 0.4.0
44+
45+
### Minor Changes
46+
47+
- 9bb78cb: Bump version
48+
49+
## 0.3.0
50+
51+
### Minor Changes
52+
53+
- d09f29a: Bump version
54+
55+
## 0.2.1
56+
57+
### Patch Changes
58+
59+
- 7f19c0c: Fix publish
60+
61+
## 0.2.0
62+
63+
### Minor Changes
64+
65+
- 0347485: Dump version
66+
67+
### Patch Changes
68+
69+
- 1b0b186: Fix tests passing because no tests for now

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Template: es-wasm-application
2+
3+
This templates demonstrates a WASM application built for Bunny using a local `Deno`.
4+
5+
> You do not want to use Deno? Feel free to use something else, [here](https://bunny.net) is a full
6+
> fledged example with `node` instead!
7+
8+
## Setup
9+
10+
To run this example you'll need to have a valid
11+
[Deno](https://docs.deno.com/runtime/manual/getting_started/installation/) installation.
12+
13+
When you have the `deno` binary available, you should be able to run the `check`
14+
task which is the task ensuring everything is compiling fine.
15+
16+
```
17+
# A tiny lint just to be sure!
18+
deno task lint
19+
20+
# We ensure everything is type compliant!
21+
deno task check
22+
```
23+
24+
We also use `pnpm` to use `changeset`.
25+
26+
## Changeset
27+
28+
This template uses [changeset](https://github.com/changesets/changesets) for
29+
version management. Changeset helps track and document changes in your project,
30+
making it easier to manage releases and generate changelogs.
31+
32+
When you make changes to the project, you should create a changeset to describe
33+
those changes:
34+
35+
1. Run the following command:
36+
```
37+
pnpm changeset
38+
```
39+
2. Follow the prompts to select the type of change (major, minor, or patch) and provide a brief description.
40+
3. Commit the generated changeset file along with your code changes.
41+
42+
This process ensures that all modifications are properly documented and
43+
versioned, facilitating smoother releases and better communication about
44+
project updates.
45+
46+
When you merge a pull request that includes a changeset, it will automatically
47+
create an associated pull request to release your changes.
48+
49+
This new pull request will trigger the release process of the script to your
50+
PullZone in Bunny.
51+
52+
53+
> This behavior is disabled by default, every pushes on main are now pushed to
54+
> Bunny directly.
55+
> You can enable this pattern again by updating this
56+
> [action](./.github/workflows/on-merge.yml)

package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "es-wasm-application",
3+
"version": "0.1.0",
4+
"main": "src/index.ts",
5+
"type": "module",
6+
"private": true,
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/BunnyWay/es-wasm-application.git"
10+
},
11+
"keywords": [
12+
"github",
13+
"bunny"
14+
],
15+
"author": "Bunny Devs",
16+
"license": "MIT",
17+
"scripts": {
18+
"lint": "deno lint",
19+
"test": "deno test --allow-none -A src/**/*.test.ts",
20+
"check": "deno check src/main.ts",
21+
"build": "mkdir -p dist && deno bundle src/main.ts dist/index.ts",
22+
"dev": "deno run src/main.ts",
23+
"release": "echo \"No release\"",
24+
"ci:version": "pnpm changeset version",
25+
"ci:publish": "./scripts/publish.sh"
26+
},
27+
"devDependencies": {
28+
"@changesets/cli": "^2.26.2"
29+
}
30+
}

0 commit comments

Comments
 (0)