chore: refactor workspace

This commit is contained in:
iCrawl
2023-05-03 02:14:22 +02:00
parent c429763be8
commit 7e875f6919
129 changed files with 1662 additions and 1371 deletions

View File

@@ -0,0 +1 @@
src/template

View File

@@ -1,4 +1,3 @@
{
"extends": "../../.eslintrc.json",
"ignorePatterns": "src/template/**/*"
"extends": "../../.eslintrc.json"
}

View File

@@ -1,8 +1,8 @@
# Packages
node_modules/
node_modules
# Log files
logs/
logs
*.log
npm-debug.log*
@@ -15,13 +15,9 @@ pids
.env
# Dist
dist/
typings/
docs/**/*
dist
# Miscellaneous
.tmp/
coverage/
searchIndex/
.turbo
.tmp
coverage

View File

@@ -1,9 +1,3 @@
# Autogenerated
CHANGELOG.md
.turbo
dist/
docs/**/*
!docs/index.yml
!docs/README.md
coverage/
src/template/
coverage
dist

View File

@@ -45,7 +45,7 @@
"homepage": "https://discord.js.org",
"dependencies": {
"@discordjs/api-extractor-utils": "workspace:^",
"@microsoft/api-extractor-model": "7.26.6",
"@microsoft/api-extractor-model": "7.26.7",
"@microsoft/tsdoc": "0.14.2",
"@microsoft/tsdoc-config": "0.16.2",
"commander": "^10.0.1",
@@ -60,12 +60,13 @@
"@vitest/coverage-c8": "^0.30.1",
"cross-env": "^7.0.3",
"eslint": "^8.39.0",
"eslint-config-neon": "^0.1.42",
"eslint-config-neon": "^0.1.46",
"eslint-formatter-pretty": "^5.0.0",
"prettier": "^2.8.8",
"tsup": "^6.7.0",
"turbo": "^1.9.4-canary.7",
"typescript": "^5.0.4",
"vitest": "^0.29.8"
"vitest": "^0.30.1"
},
"engines": {
"node": ">=16.9.0"

View File

@@ -35,7 +35,10 @@ export async function createPackage(packageName: string, packageDescription?: st
// Create files
await writeFile(join('src', 'index.ts'), `console.log('Hello, from @discordjs/${packageName}');`);
await writeFile('.eslintrc.json', await readFile(join(templateDir, 'template.eslintrc.json'), 'utf8'));
await writeFile('.gitignore', await readFile(join(templateDir, 'template.gitignore'), 'utf8'));
await writeFile('.lintstagedrc.js', await readFile(join(templateDir, 'template.lintstagedrc.js'), 'utf8'));
await writeFile('.prettierignore', await readFile(join(templateDir, 'template.prettierignore'), 'utf8'));
await writeFile('.prettierrc.js', await readFile(join(templateDir, 'template.prettierrc.js'), 'utf8'));
const packageJSON = {
...templateJSON,

View File

@@ -1,8 +0,0 @@
# Autogenerated
CHANGELOG.md
.turbo
dist/
docs/**/*
!docs/index.yml
!docs/README.md
coverage/

View File

@@ -175,6 +175,8 @@
END OF TERMS AND CONDITIONS
Copyright 2023 Noel Buechler
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

View File

@@ -0,0 +1,4 @@
{
"extends": "./api-extractor.json",
"mainEntryPointFilePath": "<projectFolder>/dist-docs/index.d.ts"
}

View File

@@ -1,8 +1,8 @@
# Packages
node_modules/
node_modules
# Log files
logs/
logs
*.log
npm-debug.log*
@@ -15,13 +15,14 @@ pids
.env
# Dist
dist/
typings/
dist
dist-docs
# Docs
docs/**/*
!docs/index.json
!docs/README.md
# Miscellaneous
.tmp/
coverage/
tsconfig.tsbuildinfo
.turbo
.tmp
coverage

View File

@@ -0,0 +1,6 @@
.turbo
coverage
dist
dist-docs
docs/docs.api.json
CHANGELOG.md

View File

@@ -15,6 +15,5 @@
"**/*.spec.ts",
"**/*.spec.js",
"**/*.spec.mjs"
],
"exclude": []
]
}