Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(config): installs stable release @kurocado-studio/styleguide #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@kurocado-studio/styleguide/commitlint'],
};
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.codesanbox
.devcontainer
codesanbox
devcontainer
node_modules
vitest.config.ts
setup.react.ts

27 changes: 27 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
extends: [
require.resolve('@kurocado-studio/styleguide/eslint/node'),
require.resolve('@kurocado-studio/styleguide/eslint/react'),
],
parserOptions: {
ecmaVersion: 2020,
project: './tsconfig.json',
sourceType: 'module',
tsconfigRootDir: __dirname,
},
ignorePatterns: ['build/**/*'],
settings: {
'import/resolver': {
alias: {
map: [['~', './app']],
extensions: ['.ts', '.tsx', '.js', '.jsx'],
},
typescript: {
project: './tsconfig.json',
},
},
},
rules: {
'import/no-cycle': 'off',
},
};
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI/CD Pipeline

permissions:
contents: write
id-token: write
pages: write
pull-requests: write

on:
pull_request:
push:
branches:
- main
- alpha
- beta
- canary
- pre/rc

jobs:
lint:
uses: kurocado-studio/styleguide/.github/workflows/workflow.lint.yml@main
secrets: inherit

test:
needs: lint
uses: kurocado-studio/styleguide/.github/workflows/workflow.test.yml@main
secrets: inherit

document:
needs: test
uses: kurocado-studio/styleguide/.github/workflows/workflow.document.yml@main
secrets: inherit

release:
needs: test
uses: kurocado-studio/styleguide/.github/workflows/workflow.release.yml@main
secrets: inherit
with:
branch_name: ${{ github.ref }}
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/material_theme_project_new.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/styleguide-npm-template.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package-lock.json
package.json
pnpm-lock.yaml
1 change: 1 addition & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require.resolve('@kurocado-studio/styleguide/release/npm');
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# styleguide-npm-template
# styleguide-npm-template
32 changes: 32 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "@kurocado-studio/styleguide-npm-template",
"version": "0.0.0-semantically-released",
"description": "",
"main": "index.js",
"scripts": {
"commitlint": "pnpm exec commitlint --edit",
"eslint-check": "eslint --max-warnings=0 .",
"prepare": "husky install",
"prettier-check": "prettier --check .",
"prettier-fix": "prettier --check . --write",
"semantic-release": "semantic-release",
"test": "vitest run",
"build": "echo \"no build needed\" && exit 0"
},
"keywords": [],
"author": "",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "^19.0.3",
"@commitlint/config-conventional": "^19.0.3",
"@kurocado-studio/styleguide": "^1.2.0",
"@vitejs/plugin-react": "^4.3.3",
"eslint": "^8.57.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"semantic-release": "^23.0.2",
"vite": "^5.4.10",
"vitest": "^2.1.4"
}
}
Loading
Loading