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: use nx to simplify running commands on the monorepo #25

Merged
merged 12 commits into from
Jan 30, 2024
  •  
  •  
  •  
30 changes: 11 additions & 19 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
**/*.*
!**/*.ts
!**/*.tsx
!**/*.js
!**/*.jsx
!**/*.json
!**/*.mjs
!**/*.mts
!.eslintignore
!.eslintrc
.DS_Store
.eslintignore
.prettierignore

**/.vscode/
**/__test__/cases/
**/__tmp__/
**/*.hbs

.nx/
.yarn/
**/coverage/
**/boilerplate/
**/demo/
**/dist/
**/doc/
**/example/
**/fixtures/
**/lib/
**/node_modules/
**/resource/
**/resources/
**/*.styl.d.ts
**/test-workspace
**/__test__/cases/
**/__test__/fixtures/


packages/character/src/constant/entity.ts
7 changes: 6 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"overrides": [
{
"files": ["**/*.js", "**/*.mjs"],
"files": ["**/*.js"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2018,
Expand All @@ -15,6 +15,11 @@
"allowImportExportEverywhere": true
}
},
{
"files": ["**/*.mjs"],
"extends": ["@guanghechen", "prettier"],
"parser": "@typescript-eslint/parser"
},
{
"files": ["packages/ast/src/nodes/**/*.ts"],
"rules": {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
strategy:
matrix:
node-version:
- 16.x
- 18.x
- 20.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
31 changes: 12 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
.DS_Store
*.env.local
*.env.*.local
*.ntvs*
*.njsproj
*.sln
*.suo
*.sw*
*.tsbuildinfo

__tmp__/
lib/
build/
.nx/
coverage/
dist/
lib/
node_modules/
release/
target/
**/*.styl.d.ts

*.tsbuildinfo
tmp/

# local env files
.env.local
.env.*.local

# Log files

npm-debug.log*
yarn-debug.log*
lerna-debug.log*
Expand All @@ -26,16 +24,11 @@ yarn-error.log*

# Editor directories and files
.idea/

.vscode/*
!.vscode/settings.json
!.vscode/launch.json

.yarn/*
!.yarn/plugins
!.yarn/releases

*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged --allow-empty
29 changes: 10 additions & 19 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
**/*.*
!**/*.ts
!**/*.tsx
!**/*.js
!**/*.jsx
!**/*.json
!**/*.mjs
!**/*.mts
!.eslintignore
!.eslintrc
.DS_Store
.eslintignore
.prettierignore

**/.vscode/
**/__test__/cases/
**/__tmp__/
**/*.hbs

.nx/
.yarn/
**/coverage/
**/boilerplate/
**/demo/
**/dist/
**/doc/
**/example/
**/fixtures/
**/lib/
**/node_modules/
**/resource/
**/resources/
**/*.styl.d.ts
**/test-workspace
**/__test__/cases/
**/__test__/fixtures/

packages/character/src/constant/entity.ts
4 changes: 2 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
nodeLinker: node-modules

npmRegistryServer: "https://registry.npmjs.org/"
npmRegistryServer: 'https://registry.npmjs.org/'

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
spec: '@yarnpkg/plugin-interactive-tools'

preferInteractive: true

Expand Down
56 changes: 28 additions & 28 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.3.0](https://github.com/yozorajs/yozora/compare/v2.2.0...v2.3.0) (2023-09-18)


### Features

* ✨ add method 'collectInlineNodes' ([4f80ba4](https://github.com/yozorajs/yozora/commit/4f80ba4be1e2926162bd33f79019236d32a04712))

- ✨ add method 'collectInlineNodes'
([4f80ba4](https://github.com/yozorajs/yozora/commit/4f80ba4be1e2926162bd33f79019236d32a04712))

### Performance Improvements

* :fire: remove 'tsconfig.json's in sub packages ([1e6a8b3](https://github.com/yozorajs/yozora/commit/1e6a8b39b1f4f4b84f01829b8956b1ef664e8743))
* ⬆️ upgrade devDependencies ([0097a04](https://github.com/yozorajs/yozora/commit/0097a0459a9bfb89ac7157f86373d3232ac298a5))




- :fire: remove 'tsconfig.json's in sub packages
([1e6a8b3](https://github.com/yozorajs/yozora/commit/1e6a8b39b1f4f4b84f01829b8956b1ef664e8743))
- ⬆️ upgrade devDependencies
([0097a04](https://github.com/yozorajs/yozora/commit/0097a0459a9bfb89ac7157f86373d3232ac298a5))

# [2.2.0](https://github.com/yozorajs/yozora/compare/v2.1.5...v2.2.0) (2023-08-21)


### Features

* ✨ export async methods for mutate ast ([b52e30e](https://github.com/yozorajs/yozora/commit/b52e30ed9492c07243abef8193451680c36af7ba))

- ✨ export async methods for mutate ast
([b52e30e](https://github.com/yozorajs/yozora/commit/b52e30ed9492c07243abef8193451680c36af7ba))

### Performance Improvements

* 🔧 fix build configs ([cfe731c](https://github.com/yozorajs/yozora/commit/cfe731c95431c26943a48848d24d52d0a362890b))
* 📝 fix typos ([3deab05](https://github.com/yozorajs/yozora/commit/3deab0535c9e861a1e76de8c95ecc899e5ebde36))
* ⬆️ upgrade devDependencies ([bc46ce2](https://github.com/yozorajs/yozora/commit/bc46ce20cacb2eb46147d6129e42fe1390ee19fb))




- 🔧 fix build configs
([cfe731c](https://github.com/yozorajs/yozora/commit/cfe731c95431c26943a48848d24d52d0a362890b))
- 📝 fix typos
([3deab05](https://github.com/yozorajs/yozora/commit/3deab0535c9e861a1e76de8c95ecc899e5ebde36))
- ⬆️ upgrade devDependencies
([bc46ce2](https://github.com/yozorajs/yozora/commit/bc46ce20cacb2eb46147d6129e42fe1390ee19fb))

## [2.1.5](https://github.com/yozorajs/yozora/compare/v2.1.4...v2.1.5) (2023-05-13)


### Performance Improvements

* 🔧 don't sourcemaps into tarball ([fc37aa8](https://github.com/yozorajs/yozora/commit/fc37aa8847ac4ad78ecb31f198e1cd6a85e91bcf))
* 🔧 fix npm script ([3e09973](https://github.com/yozorajs/yozora/commit/3e0997329a00d9459f5e6594c3db12120fffc8d3))
* 📝 update CHANGELOG ([ec2893f](https://github.com/yozorajs/yozora/commit/ec2893faed0b189541d643962d4668441f416f87))
* 📝 update CHANGELOGs ([c51b283](https://github.com/yozorajs/yozora/commit/c51b283874f8a562b6ed9fad46a0b7d578f6eb42))
* 🔧 update lerna config publish sub packages independent & remove gitmoji-changelog ([bdb8a70](https://github.com/yozorajs/yozora/commit/bdb8a70fb99c874a002e53344ce7467ba6f0dd1b))
* ⬆️ upgrade dependencies ([aa83988](https://github.com/yozorajs/yozora/commit/aa839886b4cf5be92466b318193f877d824932e6))
- 🔧 don't sourcemaps into tarball
([fc37aa8](https://github.com/yozorajs/yozora/commit/fc37aa8847ac4ad78ecb31f198e1cd6a85e91bcf))
- 🔧 fix npm script
([3e09973](https://github.com/yozorajs/yozora/commit/3e0997329a00d9459f5e6594c3db12120fffc8d3))
- 📝 update CHANGELOG
([ec2893f](https://github.com/yozorajs/yozora/commit/ec2893faed0b189541d643962d4668441f416f87))
- 📝 update CHANGELOGs
([c51b283](https://github.com/yozorajs/yozora/commit/c51b283874f8a562b6ed9fad46a0b7d578f6eb42))
- 🔧 update lerna config publish sub packages independent & remove gitmoji-changelog
([bdb8a70](https://github.com/yozorajs/yozora/commit/bdb8a70fb99c874a002e53344ce7467ba6f0dd1b))
- ⬆️ upgrade dependencies
([aa83988](https://github.com/yozorajs/yozora/commit/aa839886b4cf5be92466b318193f877d824932e6))
Loading
Loading