Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
Release-As: 0.1.0
  • Loading branch information
Adrian Sieger committed Jan 4, 2023
0 parents commit 6140fca
Show file tree
Hide file tree
Showing 75 changed files with 30,377 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: ['custom'],
}
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

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

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- OS: [e.g. Windows 11]
- Version [e.g. 0.2.6]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you would like**
A clear and concise description of what you want to happen.

**Describe alternatives you have considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Question
about: Ask a question
title: ''
labels: question
assignees: ''

---

**What you are trying to do**
A clear and concise description of what you want to happen.

**What you have already tried**
A clear and concise description of any alternative solutions or features you have considered.

**Any error messages you are getting**
If any, please list the errors you are getting.

**Environment (please complete the following information):**
- OS: [e.g. Windows 11]
- Version [e.g. 0.2.6]
22 changes: 22 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Describe the PR

A clear and concise description of what the pull request does.

## Small replication

If the change is large enough, a small replication can help demonstrate the changes made. This is optional, but can help observe the intended changes. A mentioned issue that contains a replication also works.

## PR checklist

<!-- (Update "[ ]" to "[x]" to check a box) -->

**What kind of change does this PR introduce?** (check at least one)

- [ ] Bugfix :bug: - `fix(...)`
- [ ] Feature - `feat(...)`
- [ ] ARIA accessibility - `fix(...)`
- [ ] Other (please describe)

**The PR fulfills these requirements:**

- [ ] Pull request title and all commits follow the [**Conventional Commits**](https://www.conventionalcommits.org/) convention or have an [**override**](https://github.com/googleapis/release-please#how-can-i-fix-release-notes) in this pull request body **This is very important, as the `CHANGELOG` is generated from these messages, and determines the next version type. Pull requests that do not follow conventional commits or do not have an override will be denied**
118 changes: 118 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: ci

on:
push:
branches:
- dev
- main
pull_request:
branches:
- dev
- main

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/[email protected]

- name: Set node version to 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --ignore-scripts

- name: Build library
run: pnpm run build
test-lint:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/[email protected]

- name: Set node version to 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --ignore-scripts

- name: Test lint
run: pnpm run test:lint
test-unit:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/[email protected]

- name: Set node version to 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --ignore-scripts

- name: Test unit
run: pnpm run test:unit

test-coverage:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/[email protected]

- name: Set node version to 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --ignore-scripts

- name: Test coverage
run: pnpm run test:coverage
44 changes: 44 additions & 0 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: npm-publish

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/[email protected]

- name: Set node version to 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --ignore-scripts

- name: Build library
run: pnpm run build

- name: Test library
run: pnpm test

- name: Publish
run: pnpm publish --access public --filter "@boindil/bootstrap-vue-3-icons"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
70 changes: 70 additions & 0 deletions .github/workflows/release-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# This workflow is for the release please action. It automates releases when using conventional commit messages
# It also auto publishes releases to npm under the @develop tag
# For more information see: https://github.com/google-github-actions/release-please-action

name: release-dev

on:
push:
branches:
- dev

jobs:
release-please:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]

steps:
- name: Use release please
uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
path: packages/bootstrap-vue-3-icons
package-name: "@boindil/bootstrap-vue-3-icons"
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
default-branch: dev
release-labels: 'autorelease: published'

# The logic below handles the npm publication:

- name: Clone repository
uses: actions/checkout@v3
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.releases_created }}

- name: Install pnpm
uses: pnpm/[email protected]
if: ${{ steps.release.outputs.releases_created }}

- name: Set node version to 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.releases_created }}

- name: Install dependencies
run: pnpm install --ignore-scripts
if: ${{ steps.release.outputs.releases_created }}

- name: Build library
run: pnpm run build
if: ${{ steps.release.outputs.releases_created }}

- name: Test library
run: pnpm test
if: ${{ steps.release.outputs.releases_created }}

- name: Publish
run: pnpm publish --access public --tag develop --filter "@boindil/bootstrap-vue-3-icons"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.releases_created }}
Loading

0 comments on commit 6140fca

Please sign in to comment.