Skip to content

Commit

Permalink
refactor: move apps/ to packages/
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjark-Kuehl committed Jul 21, 2022
1 parent cd13a35 commit ed59f82
Show file tree
Hide file tree
Showing 34 changed files with 19 additions and 211 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
extends: [
'./apps/base',
// './apps/typescript',
'./packages/base'
],
rules: {
'unicorn/prefer-module': 'off',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- 'apps/*'
- 'packages/*'
- '.changeset/*.md'
workflow_dispatch:
inputs:
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,4 @@ yarn-error.log*
.env.test.local
.env.production.local

# turbo
.turbo

.eslintcache
5 changes: 0 additions & 5 deletions apps/typescript/tsconfig.json

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"@commitlint/config-conventional": "17.0.3",
"commitlint": "17.0.3",
"eslint": "^8",
"husky": "8.0.1",
"turbo": "^1.3.1"
"husky": "8.0.1"
},
"packageManager": "[email protected]",
"dependencies": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions apps/base/index.js → packages/base/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const env = require('environment');
const environment = require('./enviroment');

module.exports = {
extends: [
Expand All @@ -15,5 +15,5 @@ module.exports = {
// TODO: extract testing cfg
'./rules/jest',
],
env,
env: environment,
};
1 change: 0 additions & 1 deletion apps/base/package.json → packages/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"node": "^14 || >=16"
},
"dependencies": {
"environment": "workspace:*",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.26.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 0 additions & 9 deletions packages/environment/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/tsconfig/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions packages/tsconfig/package.json

This file was deleted.

File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions packages/typescript/enviroment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
browser: true,
es6: true,
commonjs: true,
jest: true,
node: true,
};
4 changes: 2 additions & 2 deletions apps/typescript/index.js → packages/typescript/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const env = require('environment');
const environment = require('./enviroment');

module.exports = {
extends: [
'./rules/base',
'./rules/import',
'./rules/typescriptEslint',
],
env,
env: environment,
parserOptions: {
project: 'tsconfig/base.json',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.0.0",
"environment": "workspace:*",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-import": "^2.26.0",
"tsconfig": "workspace:*"
"eslint-plugin-import": "^2.26.0"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
]
},
"exclude": ["node_modules"]
}
}
155 changes: 3 additions & 152 deletions pnpm-lock.yaml

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

1 change: 0 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
packages:
- "apps/*"
- "packages/*"

9 changes: 0 additions & 9 deletions turbo.json

This file was deleted.

0 comments on commit ed59f82

Please sign in to comment.