Skip to content

Commit

Permalink
Merge pull request #14 from ineka-dev/refactor/tooling
Browse files Browse the repository at this point in the history
Refactor and updated tooling
  • Loading branch information
ColinEspinas authored Aug 21, 2024
2 parents 756210a + 10d5840 commit ef37a22
Show file tree
Hide file tree
Showing 28 changed files with 4,462 additions and 19,273 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "ineka/engine" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/slow-icons-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ineka/engine": patch
---

Updated project tooling
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

41 changes: 0 additions & 41 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ As we are using TypeDoc for documentation generation we need you to use JSDoc/TS

## Need help?

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.
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.
43 changes: 21 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
name: 'PR check'
name: PR check
on: pull_request
jobs:
build-and-test:
name: 'Build and test project'
name: Build and lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Use Node.js LTS'
uses: actions/setup-node@v2
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: lts/*
- name: 'Cache node modules'
uses: actions/cache@v2
env:
cache-name: cache-node-modules
version: 9

- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: 'Install dependencies'
run: npm ci --prefer-offline
- name: 'Build project'
run: npm run build
- name: 'Lint project code'
run: npm run lint
node-version: lts/*
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Lint
run: pnpm lint
116 changes: 58 additions & 58 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
name: 'Documentation generation'
name: Documentation generation
on:
push:
branches:
- main
jobs:
build-and-test:
name: 'Build and test project before generating documentation'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Use Node.js LTS'
uses: actions/setup-node@v2
with:
node-version: lts/*
- name: 'Cache node modules'
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: 'Install dependencies'
run: npm ci --prefer-offline
- name: 'Build project'
run: npm run build
- name: 'Lint project code'
run: npm run lint
# build-and-test:
# name: Build and test project before generating documentation
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js LTS
# uses: actions/setup-node@v2
# with:
# node-version: lts/*
# - name: Cache node modules
# uses: actions/cache@v2
# env:
# cache-name: cache-node-modules
# with:
# path: ~/.npm
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}-
# ${{ runner.os }}-build-
# ${{ runner.os }}-
# - name: Install dependencies
# run: npm ci --prefer-offline
# - name: Build project
# run: npm run build
# - name: Lint project code
# run: npm run lint

build-docs:
name: 'Build and deploy documentation'
runs-on: ubuntu-latest
needs: [build-and-test]
steps:
- uses: actions/checkout@v2
- name: 'Use Node.js LTS'
uses: actions/setup-node@v2
with:
node-version: lts/*
- name: 'Cache node modules'
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: 'Install dependencies'
run: npm ci --prefer-offline
- name: 'Generate documentation'
run: npm run docs
- name: 'Deploy to GitHub Pages'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_branch: docs
# build-docs:
# name: Build and deploy documentation
# runs-on: ubuntu-latest
# needs: [build-and-test]
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js LTS
# uses: actions/setup-node@v2
# with:
# node-version: lts/*
# - name: Cache node modules
# uses: actions/cache@v2
# env:
# cache-name: cache-node-modules
# with:
# path: ~/.npm
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}-
# ${{ runner.os }}-build-
# ${{ runner.os }}-
# - name: Install dependencies
# run: npm ci --prefer-offline
# - name: Generate documentation
# run: npm run docs
# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./docs
# publish_branch: docs
96 changes: 47 additions & 49 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,72 +1,70 @@
name: 'Release'
name: Release
on:
push:
branches:
- main
- next
- beta
- alpha
jobs:
build-and-test:
name: 'Build and test project before release'
build:
name: Build and test project before release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Use Node.js LTS'
uses: actions/setup-node@v2
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: lts/*
- name: 'Cache node modules'
uses: actions/cache@v2
env:
cache-name: cache-node-modules
version: 9

- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: 'Install dependencies'
run: npm ci --prefer-offline
- name: 'Build project'
run: npm run build
- name: 'Lint project code'
run: npm run lint
- uses: actions/upload-artifact@v2
node-version: lts/*
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- uses: actions/upload-artifact@v4
with:
name: build
path: dist


release:
name: 'Release'
name: Release
runs-on: ubuntu-latest
needs: [build-and-test]
needs: [build]
with:
fetch-depth: 0
steps:
- uses: actions/checkout@v2
- name: 'Use Node.js LTS'
uses: actions/setup-node@v2
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: lts/*
- name: 'Cache node modules'
uses: actions/cache@v2
env:
cache-name: cache-node-modules
version: 9

- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: 'Install dependencies'
run: npm ci --prefer-offline
- uses: actions/download-artifact@v2
node-version: lts/*
cache: pnpm

- name: Install dependencies
run: pnpm install

- uses: actions/download-artifact@v4
with:
name: build
path: dist
- env:

- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
publish: pnpm release
version: pnpm version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
Loading

0 comments on commit ef37a22

Please sign in to comment.