Skip to content

Commit

Permalink
chore: refactor project architecture (#30)
Browse files Browse the repository at this point in the history
* chore(yarn): bump yarn from 3.2.1 to 4.0.0-rc.14

Signed-off-by: Lexus Drumgold <[email protected]>

* chore: migrate dependencies and scripts

Signed-off-by: Lexus Drumgold <[email protected]>

* chore: switch back to prettier

Signed-off-by: Lexus Drumgold <[email protected]>

* chore: update eslint config

Signed-off-by: Lexus Drumgold <[email protected]>

* chore: add editorconfig

- https://editorconfig.org

Signed-off-by: Lexus Drumgold <[email protected]>

* chore: add cspell config

- https://cspell.org

Signed-off-by: Lexus Drumgold <[email protected]>

* chore: update esm setup

Signed-off-by: Lexus Drumgold <[email protected]>

* chore(tests): use vitest

- https://vitest.dev

Signed-off-by: Lexus Drumgold <[email protected]>

* chore(github): update git ignore

Signed-off-by: Lexus Drumgold <[email protected]>

* chore: update lint-staged config

Signed-off-by: Lexus Drumgold <[email protected]>

* style(types): use `export type { * as default }` syntax

Signed-off-by: Lexus Drumgold <[email protected]>

* chore(github): add git attributes

Signed-off-by: Lexus Drumgold <[email protected]>

* chore(github): update commit scopes

Signed-off-by: Lexus Drumgold <[email protected]>

* ci(workflows): update @dependabot config

Signed-off-by: Lexus Drumgold <[email protected]>

* ci(workflows): update dependencies and settings

Signed-off-by: Lexus Drumgold <[email protected]>

* chore(vscode): update workspace settings

Signed-off-by: Lexus Drumgold <[email protected]>

* docs: update contributing guide

Signed-off-by: Lexus Drumgold <[email protected]>

* docs: install from git

Signed-off-by: Lexus Drumgold <[email protected]>

* build: only distribute dist folder + add `.cts` and `.mts` outputs

- https://github.com/unjs/unbuild

Signed-off-by: Lexus Drumgold <[email protected]>

* chore(yarn): add `yarn version` settings

- https://yarnpkg.com/cli/version

Signed-off-by: Lexus Drumgold <[email protected]>

* chore(release): add local workflow

Signed-off-by: Lexus Drumgold <[email protected]>

* chore(release): update changelog settings

- https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli

Signed-off-by: Lexus Drumgold <[email protected]>

* chore(github): fix pr naming link in pr template

Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Aug 3, 2022
1 parent 733a379 commit a1a564c
Show file tree
Hide file tree
Showing 178 changed files with 7,708 additions and 8,768 deletions.
6 changes: 4 additions & 2 deletions .commitlintrc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* @file Commitlint Configuration
* @module config/commitlint
* @see https://commitlint.js.org/#/guides-local-setup
* @see https://commitlint.js.org/#/reference-configuration
*/
Expand All @@ -18,7 +19,6 @@ const config: UserConfig = {
'always',
[
'cjs',
'deploy',
'deps',
'deps-dev',
'deps-opt',
Expand All @@ -28,16 +28,18 @@ const config: UserConfig = {
'exports',
'github',
'guards',
'helpers',
'husky',
'hybrid',
'interfaces',
'pkg',
'publish',
'release',
'scripts',
'tests',
'tools',
'ts',
'types',
'typescript',
'vscode',
'workflows',
'yarn'
Expand Down
37 changes: 37 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"allowCompoundWords": true,
"caseSensitive": false,
"dictionaries": ["@flex-development/tutils"],
"dictionaryDefinitions": [
{
"name": "@flex-development/tutils",
"path": "./.dictionary.txt"
}
],
"enableGlobDot": true,
"failFast": false,
"flagWords": [],
"ignorePaths": [
"**/*.snap",
"**/.gitignore",
".cspell.json",
".env*",
".git/",
".husky/_/",
".yarn/",
"CHANGELOG.md",
"LICENSE.md",
"__tests__/report.json",
"yarn.lock"
],
"ignoreRegExpList": [],
"ignoreWords": [],
"language": "en-US",
"patterns": [],
"readonly": true,
"useGitignore": true,
"usePnP": false,
"version": "0.2",
"words": ["fldv", "tutils"]
}
41 changes: 41 additions & 0 deletions .dictionary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
ahmadnassri
autocrlf
autosetuprebase
bdel
bdelr
booleanish
bren
bson
cefc
chbb
chbf
chbh
chbr
commitlintrc
dedupe
dessant
dohm
duid
esbenp
fbca
fpnv
gpgsign
iife
lcov
lintstagedrc
micnncim
mkdist
nocheck
npmjs
npmrc
nums
nvmrc
pdel
rickstaa
safecrlf
syncer
tsnode
tspaths
vates
vsicons
yarnrc
99 changes: 0 additions & 99 deletions .dprint.json

This file was deleted.

15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EDITORCONFIG
# https://editorconfig.org

# indicate top-most editorconfig file
root = true

# universal rules
[*]
charset = 'utf-8'
end_of_line = lf
indent_size = 2
indent_style = 'space'
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true
7 changes: 7 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ENVIRONMENT VARIABLES - TEST
#
# References:
#
# - https://vitejs.dev/guide/env-and-mode.html#env-files

NODE_ENV=test
10 changes: 10 additions & 0 deletions .env.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ENVIRONMENT VARIABLES - ZSH
#
# References:
#
# - https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/dotenv

NODE_NO_WARNINGS=1
NODE_OPTIONS='--es-module-specifier-resolution=node'
PROJECT_CWD=$(node -e "console.log(path.resolve('.'))")
TS_NODE_PROJECT=$PROJECT_CWD/tsconfig.tsnode.json
11 changes: 6 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
# https://eslint.org/docs/user-guide/configuring#ignoring-files-and-directories

# DIRECTORIES & FILES
**/*.snap
**/.DS_Store
.eslintcache
.yarn/*
CHANGELOG.md
cjs/*
__tests__/report.json
coverage/*
dist/*
esm/*
node_modules/*
types/*
yarn.lock

# NEGATED PATTERNS
!**/.*.*
!src/types/*
!/.*
Loading

0 comments on commit a1a564c

Please sign in to comment.