Skip to content

Commit

Permalink
chore(config): initial config
Browse files Browse the repository at this point in the history
  • Loading branch information
csantiago132 committed Oct 31, 2024
1 parent 51ba948 commit 708728d
Show file tree
Hide file tree
Showing 18 changed files with 8,574 additions and 1 deletion.
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'],
};
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.codesanbox
.devcontainer
codesanbox
devcontainer
node_modules
vitest.config.ts

32 changes: 32 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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',
},
overrides: [
{
files: ['app/**/*.ts', 'app/**/*.tsx'],
},
],
};
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

0 comments on commit 708728d

Please sign in to comment.