Skip to content

Commit

Permalink
Updated to use latest version of scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
alanrodas committed Oct 19, 2023
1 parent d2a3fe7 commit a03d079
Show file tree
Hide file tree
Showing 214 changed files with 15,659 additions and 15,007 deletions.
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
---
name: Bug report
about: Create a report to help us improve

---

Before opening a new issue, please take a moment to review our [**guidelines**](https://github.com/gobstones/gobstones-guidelines) to make the contribution process easy and effective for everyone involved.

## Description

A clear and concise description of what the bug is.

## Steps to reproduce

Steps to reproduce the behavior:

(Add link to a demo on https://jsfiddle.net or similar if possible)

**Expected behavior**
A clear and concise description of what you expected to happen.


## Versions

- Library Version:
- Node/NPM Version (if any):
- Operating System Version:
- Browser Version:
- Library Version:
- Node/NPM Version (if any):
- Operating System Version:
- Browser Version:
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Feature request
about: Suggest an idea for this project

---

Before opening a new feature request, please take a moment to review our [**guidelines**](https://github.com/gobstones/gobstones-guidelines) to make the contribution process easy and effective for everyone involved.
Expand Down
16 changes: 8 additions & 8 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ merged into the project.

Before opening a pull request, please ensure:

- [ ] You have followed our [**guidelines**](https://github.com/gobstones/gobstones-guidelines)
- [ ] Double-check your branch is based on `main` and targets `main`
- [ ] Pull request has tests (we are going for 100% coverage!)
- [ ] Code is well-commented, linted and follows project conventions
- [ ] Documentation is updated (if necessary)
- [ ] Internal code generators and templates are updated (if necessary)
- [ ] Description explains the issue/use-case resolved and auto-closes related
issues
- [ ] You have followed our [**guidelines**](https://github.com/gobstones/gobstones-guidelines)
- [ ] Double-check your branch is based on `main` and targets `main`
- [ ] Pull request has tests (we are going for 100% coverage!)
- [ ] Code is well-commented, linted and follows project conventions
- [ ] Documentation is updated (if necessary)
- [ ] Internal code generators and templates are updated (if necessary)
- [ ] Description explains the issue/use-case resolved and auto-closes related
issues

Be kind to code reviewers, please try to keep pull requests as small and focused
as possible :)
Expand Down
Binary file added .github/favicon.ico
Binary file not shown.
19 changes: 9 additions & 10 deletions .github/issue-close-app.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
comment: This issue was automatically closed because it does not follow either one of our templates. Please open a new issue and fill out the template that appears instead of deleting it. If you're reporting an issue, it's especially important that you provide detailed steps for how to reproduce it.

issueConfigs:
- content:
- Description
- Steps to reproduce
- Versions

- content:
- Description
- Steps to reproduce
- Versions

- content:
- Is your feature request related to a problem
- Describe the solution you'd like
- Describe alternatives you've considered
- Additional context
- content:
- Is your feature request related to a problem
- Describe the solution you'd like
- Describe alternatives you've considered
- Additional context
7 changes: 3 additions & 4 deletions .github/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ lockLabel: 'Auto-Closed'

# Comment to post before locking. Set to `false` to disable
lockComment: >
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.
# Limit to only `issues` or `pulls`
only: issues

# Optionally, specify configuration settings just for `issues` or `pulls`
# issues:
# exemptLabels:
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/build.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/on-commit-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: on-commit-build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node version
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Remove Husky on prepare
run: npm pkg delete scripts.prepare
- name: Installing project dependencies
run: npm install
- name: Build the code
run: npm run build
env:
CI: true
29 changes: 29 additions & 0 deletions .github/workflows/on-commit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: on-commit-test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --experimental-modules
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node version
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Remove Husky on prepare
run: npm pkg delete scripts.prepare
- name: Installing project dependencies
run: npm install
- name: Build the code
run: npm test
env:
CI: true
34 changes: 34 additions & 0 deletions .github/workflows/on-tag-release-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: on-tag-release-github

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
publish-into-github:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node version
uses: actions/setup-node@v3
with:
node-version: '20'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Remove Husky on prepare
run: npm pkg delete scripts.prepare
- name: Installing project dependencies
run: npm install
- name: Create Release on GitHub
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{ github.event.head_commit.message }}
draft: false
prerelease: false
29 changes: 29 additions & 0 deletions .github/workflows/on-tag-release-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: on-tag-release-npm

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
publish-into-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node version
uses: actions/setup-node@v3
with:
node-version: '20'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Remove Husky on prepare
run: npm pkg delete scripts.prepare
- name: Installing project dependencies
run: npm install
- name: Publishing to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: 'public'
27 changes: 0 additions & 27 deletions .github/workflows/release-github.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/release-npm.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/test.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx gobstones-scripts run husky.commit
git add --all
exit
5 changes: 5 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx gobstones-scripts run husky.push
exit
22 changes: 20 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
dist/
# Node files #
node_modules/
npm-debug.log
yarn-error.log
.rollup.cache

# OS generated files #
.DS_Store
Thumbs.db
.tmp/

# Dist #
dist/
coverage/
tsconfig.build.json

# IDE #
.idea/

# PackageManager specific #
pnpm-lock.yaml
package-lock.json
yarn.lock
package.json
Loading

0 comments on commit a03d079

Please sign in to comment.