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

feat: initial commit #5

Merged
merged 2 commits into from
Mar 26, 2024
Merged
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
4 changes: 2 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
}
],
"commit": false,
"fixed": [["@alanlu-dev/*-config"]],
"linked": [],
"fixed": [],
"linked": [["@alanlu-dev/mastercss-*"]],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
Expand Down
18 changes: 18 additions & 0 deletions .changeset/metal-beers-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
"@alanlu-dev/markdownlint-config": major
"@alanlu-dev/eslint-config-base": major
"@alanlu-dev/lint-staged-config": major
"@alanlu-dev/commitlint-config": major
"@alanlu-dev/stylelint-config": major
"@alanlu-dev/prettier-config": major
"@alanlu-dev/mastercss-helpers": major
"@alanlu-dev/tsconfig": major
"@alanlu-dev/mastercss-config": major
"@alanlu-dev/changeset": major
"@alanlu-dev/nuxt-base": major
"@alanlu-dev/types": major
"@alanlu-dev/utils": major
"@alanlu-dev/scss": major
---

feat: initial commit
71 changes: 1 addition & 70 deletions .commitlintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,70 +1 @@
/** @type {import('czg').UserConfig} */
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// @see: https://commitlint.js.org/#/reference-rules
// 'scope-enum': [2, 'always', scopes],
},
prompt: {
alias: { fd: 'docs: fix typos' },
messages: {
type: `Select the type of change that you're committing:`,
scope: 'Denote the SCOPE of this change (optional):',
customScope: 'Denote the SCOPE of this change:',
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
footerPrefixesSelect: 'Select the ISSUES type of changeList by this change (optional):',
customFooterPrefix: 'Input ISSUES prefix:',
footer: 'List any ISSUES by this change. E.g.: #31, #34:\n',
generatingByAI: 'Generating your AI commit subject...',
generatedSelectByAI: 'Select suitable subject by AI generated:',
confirmCommit: 'Are you sure you want to proceed with the commit above?',
},
types: [
{ value: 'feat', name: 'feat: AASD new feature', emoji: ':sparkles:' },
{ value: 'fix', name: 'fix: A bug fix', emoji: ':bug:' },
{ value: 'docs', name: 'docs: Documentation only changes', emoji: ':memo:' },
{ value: 'style', name: 'style: Changes that do not affect the meaning of the code', emoji: ':lipstick:' },
{ value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature', emoji: ':recycle:' },
{ value: 'perf', name: 'perf: A code change that improves performance', emoji: ':zap:' },
{ value: 'test', name: 'test: Adding missing tests or correcting existing tests', emoji: ':white_check_mark:' },
{ value: 'build', name: 'build: Changes that affect the build system or external dependencies', emoji: ':package:' },
{ value: 'ci', name: 'ci: Changes to our CI configuration files and scripts', emoji: ':ferris_wheel:' },
{ value: 'chore', name: `chore: Other changes that don't modify src or test files`, emoji: ':hammer:' },
{ value: 'revert', name: 'revert: Reverts a previous commit', emoji: ':rewind:' },
],
useEmoji: false,
emojiAlign: 'center',
useAI: false,
aiNumber: 1,
themeColorCode: '',
scopes: [],
allowCustomScopes: true,
allowEmptyScopes: true,
customScopesAlign: 'bottom',
customScopesAlias: 'custom',
emptyScopesAlias: 'empty',
upperCaseSubject: false,
markBreakingChangeMode: false,
allowBreakingChanges: ['feat', 'fix'],
breaklineNumber: 100,
breaklineChar: '|',
skipQuestions: [],
issuePrefixes: [{ value: 'closed', name: 'closed: ISSUES has been processed' }],
customIssuePrefixAlign: 'top',
emptyIssuePrefixAlias: 'skip',
customIssuePrefixAlias: 'custom',
allowCustomIssuePrefix: true,
allowEmptyIssuePrefix: true,
confirmColorize: true,
maxHeaderLength: Number.POSITIVE_INFINITY,
maxSubjectLength: Number.POSITIVE_INFINITY,
minSubjectLength: 0,
scopeOverrides: undefined,
defaultBody: '',
defaultIssues: '',
defaultScope: '',
defaultSubject: '',
},
}
module.exports = require('@alanlu-dev/commitlint-config')
3 changes: 0 additions & 3 deletions .cspell/other.txt

This file was deleted.

5 changes: 0 additions & 5 deletions .cspell/repo.txt

This file was deleted.

9 changes: 8 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,22 @@ root = true

# Matches all files
[*]
# Non-configurable Prettier behaviors
charset = utf-8
insert_final_newline = true
# Caveat: Prettier won’t trim trailing whitespace inside template strings, but your editor might.
trim_trailing_whitespace = true

# Configurable Prettier behaviors
# (change these if your Prettier config differs)
end_of_line = lf
indent_style = space
indent_size = 2
max_line_length = 200

[Makefile]
[*.{md,mdx}]
indent_style = tab
max_line_length = off

[*.{yaml,yml,conf}]
indent_size = 2
Expand Down
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: ['@alanlu-dev/base'],
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
version: pnpm run version
publish: pnpm run release
commit: "chore: new release"
title: "chore: new release candidate"
version: pnpm run update:version
publish: pnpm run publish
commit: "chore(release): version update"
title: "chore(release): version update"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ node_modules
.virtual
.turbo
dist
build
tsx-0
node-jiti

# Logs
logs
.log
*.log

# Miscellaneous
.DS_Store
Expand Down
9 changes: 1 addition & 8 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
module.exports = {
'*': 'cspell --no-progress --no-must-find-files',
'*.json': ['eslint --fix', 'prettier --write'],
'*.{js,jsx,ts,tsx}': ['eslint --fix', 'prettier --write'],
'*.vue': ['eslint --fix', 'prettier --write'],
'*.{css,scss,postcss,less,html}': ['eslint --fix', 'prettier --write'],
'*.{md,mdx}': ['markdownlint-cli2 --fix'],
}
module.exports = require('@alanlu-dev/lint-staged-config')
8 changes: 8 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@
public-hoist-pattern[]=*types*
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*prettier*
public-hoist-pattern[]=*stylelint*
public-hoist-pattern[]=*markdownlint*

Check warning on line 6 in .npmrc

View workflow job for this annotation

GitHub Actions / Lint

Unknown word (markdownlint)
public-hoist-pattern[]=*commitlint*
public-hoist-pattern[]=czg
public-hoist-pattern[]=lint-staged
public-hoist-pattern[]=sass
public-hoist-pattern[]=postcss*

Check warning on line 11 in .npmrc

View workflow job for this annotation

GitHub Actions / Lint

Unknown word (postcss)
public-hoist-pattern[]=@alanlu-dev/*
public-hoist-pattern[]=@master/*
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
**/.virtual
**/.turbo
**/dist
**/build
**/tsx-0
**/node-jiti
**/coverage

# Logs
**/logs
Expand Down
30 changes: 30 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Dependencies
node_modules

# Build files
.output
.nuxt
.nitro
.cache
.virtual
.turbo
dist
build
tsx-0
node-jiti
coverage

# Logs
logs
*.log

# Miscellaneous
.DS_Store
.fleet
.idea
pnpm-lock.yaml

# Local environment files
.env
.env.*
!.env.example
1 change: 1 addition & 0 deletions .stylelintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@alanlu-dev/stylelint-config')
7 changes: 6 additions & 1 deletion .cspell/name.txt → .vscode/.cspell/name.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Custom Dictionary Words
alanlu
Anson
antfu
dbaeumer
esbenp
Anson
Giraudel
Indrek
indrekpaas
Paas
Riethmuller's
21 changes: 21 additions & 0 deletions .vscode/.cspell/other.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Custom Dictionary Words
abjad
akar
autorestart
bluewood
breakline
datetime
evenodd
Fira
fullname
jiti
multistep
noborder
Noto
Overriden
preinstall
stroustrup
typecheck
unref
wght
zod's
30 changes: 30 additions & 0 deletions .vscode/.cspell/repo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Custom Dictionary Words
commitlint
commitlintrc
deepmerge
fontaine
formkit
gtag
iconify
intlify
lintstagedrc
manypkg
maska
mastercss
mcss
nuxt
nuxtjs
persistedstate
pinia
resvg
splide
splidejs
Stylelint
stylelintrc
taze
toastify
tsup
Turborepo
unplugin
unstorage
vueuse
2 changes: 1 addition & 1 deletion cspell.json → .vscode/cspell.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"ignorePaths": ["node_modules", "pnpm-lock.yaml"],
"ignorePaths": ["node_modules", ".output", ".nuxt", ".nitro", ".cache", ".virtual", ".turbo", "dist", "build", "tsx-0", "node-jiti", "coverage", "pnpm-lock.yaml"],
"dictionaryDefinitions": [
{
"name": "name",
Expand Down
29 changes: 15 additions & 14 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,22 @@
"source.fixAll.markdownlint": "explicit"
},

"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "html", "json", "jsonc", "yaml", "toml"],

// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "html", "markdown", "json", "jsonc", "yaml", "toml"],
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "format/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
{ "rule": "*-order", "severity": "off" },
{ "rule": "*-dangle", "severity": "off" },
{ "rule": "*-newline", "severity": "off" },
{ "rule": "*quotes", "severity": "off" },
{ "rule": "*semi", "severity": "off" }
],
// "eslint.experimental.useFlatConfig": true,
// "eslint.rules.customizations": [
// { "rule": "style/*", "severity": "off" },
// { "rule": "format/*", "severity": "off" },
// { "rule": "*-indent", "severity": "off" },
// { "rule": "*-spacing", "severity": "off" },
// { "rule": "*-spaces", "severity": "off" },
// { "rule": "*-order", "severity": "off" },
// { "rule": "*-dangle", "severity": "off" },
// { "rule": "*-newline", "severity": "off" },
// { "rule": "*quotes", "severity": "off" },
// { "rule": "*semi", "severity": "off" }
// ],

"stylelint.enable": true,
"stylelint.validate": ["css", "less", "postcss", "sass", "scss", "vue", "html"],
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 alanlu-dev
Copyright (c) 2024-present alanlu-dev

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading
Loading