Skip to content

Commit ef37a22

Browse files
authored
Merge pull request #14 from ineka-dev/refactor/tooling
Refactor and updated tooling
2 parents 756210a + 10d5840 commit ef37a22

28 files changed

+4462
-19273
lines changed

.changeset/README.md

+8
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

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "ineka/engine" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/slow-icons-laugh.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ineka/engine": patch
3+
---
4+
5+
Updated project tooling

.eslintignore

-1
This file was deleted.

.eslintrc.cjs

-41
This file was deleted.

.github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ As we are using TypeDoc for documentation generation we need you to use JSDoc/TS
4646

4747
## Need help?
4848

49-
If you want to contribute but have any questions, concerns or doubts, feel free to ping maintainers. Ideally create a pull request with `WIP` (Work In Progress) in its title and ask questions in the pull request description.
49+
If you want to contribute but have any questions, concerns or doubts, feel free to ping maintainers. Ideally create a pull request with `WIP` (Work In Progress) in its title and ask questions in the pull request description.

.github/workflows/ci.yml

+21-22
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
1-
name: 'PR check'
1+
name: PR check
22
on: pull_request
33
jobs:
44
build-and-test:
5-
name: 'Build and test project'
5+
name: Build and lint
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
9-
- name: 'Use Node.js LTS'
10-
uses: actions/setup-node@v2
8+
- uses: actions/checkout@v4
9+
10+
- name: Install pnpm
11+
uses: pnpm/action-setup@v4
1112
with:
12-
node-version: lts/*
13-
- name: 'Cache node modules'
14-
uses: actions/cache@v2
15-
env:
16-
cache-name: cache-node-modules
13+
version: 9
14+
15+
- name: Use Node.js LTS
16+
uses: actions/setup-node@v4
1717
with:
18-
path: ~/.npm
19-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
20-
restore-keys: |
21-
${{ runner.os }}-build-${{ env.cache-name }}-
22-
${{ runner.os }}-build-
23-
${{ runner.os }}-
24-
- name: 'Install dependencies'
25-
run: npm ci --prefer-offline
26-
- name: 'Build project'
27-
run: npm run build
28-
- name: 'Lint project code'
29-
run: npm run lint
18+
node-version: lts/*
19+
cache: pnpm
20+
21+
- name: Install dependencies
22+
run: pnpm install
23+
24+
- name: Build
25+
run: pnpm build
26+
27+
- name: Lint
28+
run: pnpm lint

.github/workflows/docs.yml

+58-58
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
1-
name: 'Documentation generation'
1+
name: Documentation generation
22
on:
33
push:
44
branches:
55
- main
66
jobs:
7-
build-and-test:
8-
name: 'Build and test project before generating documentation'
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v2
12-
- name: 'Use Node.js LTS'
13-
uses: actions/setup-node@v2
14-
with:
15-
node-version: lts/*
16-
- name: 'Cache node modules'
17-
uses: actions/cache@v2
18-
env:
19-
cache-name: cache-node-modules
20-
with:
21-
path: ~/.npm
22-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
23-
restore-keys: |
24-
${{ runner.os }}-build-${{ env.cache-name }}-
25-
${{ runner.os }}-build-
26-
${{ runner.os }}-
27-
- name: 'Install dependencies'
28-
run: npm ci --prefer-offline
29-
- name: 'Build project'
30-
run: npm run build
31-
- name: 'Lint project code'
32-
run: npm run lint
7+
# build-and-test:
8+
# name: Build and test project before generating documentation
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - uses: actions/checkout@v2
12+
# - name: Use Node.js LTS
13+
# uses: actions/setup-node@v2
14+
# with:
15+
# node-version: lts/*
16+
# - name: Cache node modules
17+
# uses: actions/cache@v2
18+
# env:
19+
# cache-name: cache-node-modules
20+
# with:
21+
# path: ~/.npm
22+
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
23+
# restore-keys: |
24+
# ${{ runner.os }}-build-${{ env.cache-name }}-
25+
# ${{ runner.os }}-build-
26+
# ${{ runner.os }}-
27+
# - name: Install dependencies
28+
# run: npm ci --prefer-offline
29+
# - name: Build project
30+
# run: npm run build
31+
# - name: Lint project code
32+
# run: npm run lint
3333

34-
build-docs:
35-
name: 'Build and deploy documentation'
36-
runs-on: ubuntu-latest
37-
needs: [build-and-test]
38-
steps:
39-
- uses: actions/checkout@v2
40-
- name: 'Use Node.js LTS'
41-
uses: actions/setup-node@v2
42-
with:
43-
node-version: lts/*
44-
- name: 'Cache node modules'
45-
uses: actions/cache@v2
46-
env:
47-
cache-name: cache-node-modules
48-
with:
49-
path: ~/.npm
50-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
51-
restore-keys: |
52-
${{ runner.os }}-build-${{ env.cache-name }}-
53-
${{ runner.os }}-build-
54-
${{ runner.os }}-
55-
- name: 'Install dependencies'
56-
run: npm ci --prefer-offline
57-
- name: 'Generate documentation'
58-
run: npm run docs
59-
- name: 'Deploy to GitHub Pages'
60-
uses: peaceiris/actions-gh-pages@v3
61-
with:
62-
github_token: ${{ secrets.GITHUB_TOKEN }}
63-
publish_dir: ./docs
64-
publish_branch: docs
34+
# build-docs:
35+
# name: Build and deploy documentation
36+
# runs-on: ubuntu-latest
37+
# needs: [build-and-test]
38+
# steps:
39+
# - uses: actions/checkout@v2
40+
# - name: Use Node.js LTS
41+
# uses: actions/setup-node@v2
42+
# with:
43+
# node-version: lts/*
44+
# - name: Cache node modules
45+
# uses: actions/cache@v2
46+
# env:
47+
# cache-name: cache-node-modules
48+
# with:
49+
# path: ~/.npm
50+
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
51+
# restore-keys: |
52+
# ${{ runner.os }}-build-${{ env.cache-name }}-
53+
# ${{ runner.os }}-build-
54+
# ${{ runner.os }}-
55+
# - name: Install dependencies
56+
# run: npm ci --prefer-offline
57+
# - name: Generate documentation
58+
# run: npm run docs
59+
# - name: Deploy to GitHub Pages
60+
# uses: peaceiris/actions-gh-pages@v3
61+
# with:
62+
# github_token: ${{ secrets.GITHUB_TOKEN }}
63+
# publish_dir: ./docs
64+
# publish_branch: docs

.github/workflows/release.yml

+47-49
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,70 @@
1-
name: 'Release'
1+
name: Release
22
on:
33
push:
44
branches:
55
- main
6-
- next
7-
- beta
8-
- alpha
96
jobs:
10-
build-and-test:
11-
name: 'Build and test project before release'
7+
build:
8+
name: Build and test project before release
129
runs-on: ubuntu-latest
1310
steps:
14-
- uses: actions/checkout@v2
15-
- name: 'Use Node.js LTS'
16-
uses: actions/setup-node@v2
11+
- uses: actions/checkout@v4
12+
13+
- name: Install pnpm
14+
uses: pnpm/action-setup@v4
1715
with:
18-
node-version: lts/*
19-
- name: 'Cache node modules'
20-
uses: actions/cache@v2
21-
env:
22-
cache-name: cache-node-modules
16+
version: 9
17+
18+
- name: Use Node.js LTS
19+
uses: actions/setup-node@v4
2320
with:
24-
path: ~/.npm
25-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
26-
restore-keys: |
27-
${{ runner.os }}-build-${{ env.cache-name }}-
28-
${{ runner.os }}-build-
29-
${{ runner.os }}-
30-
- name: 'Install dependencies'
31-
run: npm ci --prefer-offline
32-
- name: 'Build project'
33-
run: npm run build
34-
- name: 'Lint project code'
35-
run: npm run lint
36-
- uses: actions/upload-artifact@v2
21+
node-version: lts/*
22+
cache: pnpm
23+
24+
- name: Install dependencies
25+
run: pnpm install
26+
27+
- name: Build
28+
run: pnpm build
29+
30+
- uses: actions/upload-artifact@v4
3731
with:
3832
name: build
3933
path: dist
4034

41-
4235
release:
43-
name: 'Release'
36+
name: Release
4437
runs-on: ubuntu-latest
45-
needs: [build-and-test]
38+
needs: [build]
39+
with:
40+
fetch-depth: 0
4641
steps:
47-
- uses: actions/checkout@v2
48-
- name: 'Use Node.js LTS'
49-
uses: actions/setup-node@v2
42+
- uses: actions/checkout@v4
43+
44+
- name: Install pnpm
45+
uses: pnpm/action-setup@v4
5046
with:
51-
node-version: lts/*
52-
- name: 'Cache node modules'
53-
uses: actions/cache@v2
54-
env:
55-
cache-name: cache-node-modules
47+
version: 9
48+
49+
- name: Use Node.js LTS
50+
uses: actions/setup-node@v4
5651
with:
57-
path: ~/.npm
58-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
59-
restore-keys: |
60-
${{ runner.os }}-build-${{ env.cache-name }}-
61-
${{ runner.os }}-build-
62-
${{ runner.os }}-
63-
- name: 'Install dependencies'
64-
run: npm ci --prefer-offline
65-
- uses: actions/download-artifact@v2
52+
node-version: lts/*
53+
cache: pnpm
54+
55+
- name: Install dependencies
56+
run: pnpm install
57+
58+
- uses: actions/download-artifact@v4
6659
with:
6760
name: build
6861
path: dist
69-
- env:
62+
63+
- name: Create Release Pull Request or Publish to npm
64+
uses: changesets/action@v1
65+
with:
66+
publish: pnpm release
67+
version: pnpm version
68+
env:
7069
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7170
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
72-
run: npx semantic-release

0 commit comments

Comments
 (0)