Skip to content

Commit

Permalink
automate project initialisation via CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Girish21 committed Jun 12, 2022
1 parent dc98ae5 commit 63cff83
Show file tree
Hide file tree
Showing 7 changed files with 303 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ yarn-error.log*
# turbo
.turbo
tsconfig.tsbuildinfo

# Cloudflare
wrangler.dev.toml
168 changes: 167 additions & 1 deletion package-lock.json

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

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@
"private": true,
"workspaces": [
"config/*",
"packages/*"
"packages/*",
"scripts"
],
"scripts": {
"build": "npx --yes turbo run build",
"dev": "npx --yes turbo run dev --parallel",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,yml}\"",
"lint": "npx --yes turbo run lint",
"typecheck": "npx --yes turbo run typecheck",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,yml}\""
"new:do": "node -r esbuild-register scripts/new-do.ts",
"setup": "node -r esbuild-register scripts/setup.ts",
"typecheck": "npx --yes turbo run typecheck"
},
"devDependencies": {
"esbuild-register": "^3.3.3",
"prettier": "latest",
"prettier-plugin-tailwindcss": "^0.1.11",
"turbo": "latest"
Expand Down
4 changes: 4 additions & 0 deletions scripts/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: ['custom'],
}
22 changes: 22 additions & 0 deletions scripts/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "project-scripts",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"lint": "eslint .",
"typecheck": "tsc -b"
},
"devDependencies": {
"@ltd/j-toml": "^1.30.0",
"@types/fs-extra": "^9.0.13",
"@types/inquirer": "^8.2.1",
"@types/lodash.kebabcase": "^4.1.7",
"eslint": "^8.15.0",
"eslint-config-custom": "*",
"fs-extra": "^10.1.0",
"inquirer": "^8.2.4",
"lodash.kebabcase": "^4.1.1",
"tsconfig": "*",
"typescript": "^4.6.4"
}
}
Loading

0 comments on commit 63cff83

Please sign in to comment.