Replace tsc with SWC for package compilation and file watching (#675)

* Updated turbo version

* Added taskr to packages/local

* Move json files

* Include missing extension

* Fixed prettierignore

* Updated swc plugin

* Moved swc plugin to its own package

* Added note

* Removed unused package

* Added watch for file changes

* Added taskr deps to every package

* Added taskfile to every package

* Updated scripts in every package

* Added 2 utiity scripts

* Fix turbo dev script

* Update swc plugin to include jsx import

* Updated build script in main package.json
This commit is contained in:
Luis Alvarez D
2022-02-09 10:30:59 -05:00
committed by GitHub
parent c11b1ca868
commit 541491f169
29 changed files with 1625 additions and 140 deletions

View File

@@ -7,56 +7,20 @@
"packages/*"
],
"scripts": {
"build": "turbo run build --scope=next-commerce --include-dependencies --no-deps",
"dev": "turbo run dev",
"start": "turbo run start",
"prettier-fix": "prettier --write ."
},
"turbo": {
"baseBranch": "origin/main",
"pipeline": {
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
},
"next-commerce#build": {
"dependsOn": [
"^build",
"$COMMERCE_PROVIDER"
],
"outputs": [
".next/**"
]
},
"test": {
"dependsOn": [
"^build"
],
"outputs": []
},
"lint": {
"outputs": []
},
"prettier-fix": {
"outputs": []
},
"dev": {
"cache": false
},
"start": {
"cache": false
}
}
},
"devDependencies": {
"husky": "^7.0.4",
"prettier": "^2.5.1",
"turbo": "^1.0.28"
"turbo": "^1.1.2"
},
"husky": {
"hooks": {
"pre-commit": "turbo run lint"
}
}
},
"packageManager": "yarn@1.22.17"
}