chore(create-payload-app): cleanup after import
This commit is contained in:
@@ -1,30 +1,37 @@
|
|||||||
|
/** @type {import('prettier').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: ['@typescript-eslint', 'prettier'],
|
extends: ['@payloadcms'],
|
||||||
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
|
overrides: [
|
||||||
parserOptions: {
|
{
|
||||||
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
|
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
||||||
sourceType: 'module', // Allows for the use of imports
|
files: ['*.js', '*.cjs', '*.json', '*.md', '*.yml', '*.yaml'],
|
||||||
ecmaFeatures: {
|
|
||||||
jsx: true, // Allows for the parsing of JSX
|
|
||||||
},
|
},
|
||||||
},
|
{
|
||||||
extends: [
|
files: ['package.json', 'tsconfig.json'],
|
||||||
'plugin:@typescript-eslint/recommended',
|
rules: {
|
||||||
'plugin:prettier/recommended',
|
'perfectionist/sort-array-includes': 'off',
|
||||||
'prettier',
|
'perfectionist/sort-astro-attributes': 'off',
|
||||||
],
|
'perfectionist/sort-classes': 'off',
|
||||||
settings: {
|
'perfectionist/sort-enums': 'off',
|
||||||
'import/resolver': {
|
'perfectionist/sort-exports': 'off',
|
||||||
node: {
|
'perfectionist/sort-imports': 'off',
|
||||||
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
'perfectionist/sort-interfaces': 'off',
|
||||||
|
'perfectionist/sort-jsx-props': 'off',
|
||||||
|
'perfectionist/sort-keys': 'off',
|
||||||
|
'perfectionist/sort-maps': 'off',
|
||||||
|
'perfectionist/sort-named-exports': 'off',
|
||||||
|
'perfectionist/sort-named-imports': 'off',
|
||||||
|
'perfectionist/sort-object-types': 'off',
|
||||||
|
'perfectionist/sort-objects': 'off',
|
||||||
|
'perfectionist/sort-svelte-attributes': 'off',
|
||||||
|
'perfectionist/sort-union-types': 'off',
|
||||||
|
'perfectionist/sort-vue-attributes': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
],
|
||||||
|
parserOptions: {
|
||||||
|
project: ['./tsconfig.json'],
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
ignorePatterns: ['node_modules', 'src/templates', 'dist'],
|
root: true,
|
||||||
rules: {
|
}
|
||||||
'prettier/prettier': 'error',
|
|
||||||
'import/prefer-default-export': 'off',
|
|
||||||
'no-underscore-dangle': 'off',
|
|
||||||
'@typescript-eslint/consistent-type-imports': 'warn',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|||||||
178
packages/create-payload-app/.gitignore
vendored
178
packages/create-payload-app/.gitignore
vendored
@@ -1,178 +0,0 @@
|
|||||||
|
|
||||||
# Created by https://www.toptal.com/developers/gitignore/api/node,macos,vscode,windows
|
|
||||||
# Edit at https://www.toptal.com/developers/gitignore?templates=node,macos,vscode,windows
|
|
||||||
|
|
||||||
### macOS ###
|
|
||||||
# General
|
|
||||||
.DS_Store
|
|
||||||
.AppleDouble
|
|
||||||
.LSOverride
|
|
||||||
|
|
||||||
# Icon must end with two \r
|
|
||||||
Icon
|
|
||||||
|
|
||||||
|
|
||||||
# Thumbnails
|
|
||||||
._*
|
|
||||||
|
|
||||||
# Files that might appear in the root of a volume
|
|
||||||
.DocumentRevisions-V100
|
|
||||||
.fseventsd
|
|
||||||
.Spotlight-V100
|
|
||||||
.TemporaryItems
|
|
||||||
.Trashes
|
|
||||||
.VolumeIcon.icns
|
|
||||||
.com.apple.timemachine.donotpresent
|
|
||||||
|
|
||||||
# Directories potentially created on remote AFP share
|
|
||||||
.AppleDB
|
|
||||||
.AppleDesktop
|
|
||||||
Network Trash Folder
|
|
||||||
Temporary Items
|
|
||||||
.apdisk
|
|
||||||
|
|
||||||
### Node ###
|
|
||||||
# Logs
|
|
||||||
logs
|
|
||||||
*.log
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
lerna-debug.log*
|
|
||||||
|
|
||||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
||||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
||||||
|
|
||||||
# Runtime data
|
|
||||||
pids
|
|
||||||
*.pid
|
|
||||||
*.seed
|
|
||||||
*.pid.lock
|
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
||||||
lib-cov
|
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
|
||||||
coverage
|
|
||||||
*.lcov
|
|
||||||
|
|
||||||
# nyc test coverage
|
|
||||||
.nyc_output
|
|
||||||
|
|
||||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
||||||
.grunt
|
|
||||||
|
|
||||||
# Bower dependency directory (https://bower.io/)
|
|
||||||
bower_components
|
|
||||||
|
|
||||||
# node-waf configuration
|
|
||||||
.lock-wscript
|
|
||||||
|
|
||||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
||||||
build/Release
|
|
||||||
|
|
||||||
# Dependency directories
|
|
||||||
node_modules/
|
|
||||||
jspm_packages/
|
|
||||||
|
|
||||||
# TypeScript v1 declaration files
|
|
||||||
typings/
|
|
||||||
|
|
||||||
# TypeScript cache
|
|
||||||
*.tsbuildinfo
|
|
||||||
|
|
||||||
# Optional npm cache directory
|
|
||||||
.npm
|
|
||||||
|
|
||||||
# Optional eslint cache
|
|
||||||
.eslintcache
|
|
||||||
|
|
||||||
# Microbundle cache
|
|
||||||
.rpt2_cache/
|
|
||||||
.rts2_cache_cjs/
|
|
||||||
.rts2_cache_es/
|
|
||||||
.rts2_cache_umd/
|
|
||||||
|
|
||||||
# Optional REPL history
|
|
||||||
.node_repl_history
|
|
||||||
|
|
||||||
# Output of 'npm pack'
|
|
||||||
*.tgz
|
|
||||||
|
|
||||||
# Yarn Integrity file
|
|
||||||
.yarn-integrity
|
|
||||||
|
|
||||||
# dotenv environment variables file
|
|
||||||
.env
|
|
||||||
.env.test
|
|
||||||
.env*.local
|
|
||||||
|
|
||||||
# parcel-bundler cache (https://parceljs.org/)
|
|
||||||
.cache
|
|
||||||
.parcel-cache
|
|
||||||
|
|
||||||
# Next.js build output
|
|
||||||
.next
|
|
||||||
|
|
||||||
# Nuxt.js build / generate output
|
|
||||||
.nuxt
|
|
||||||
dist
|
|
||||||
|
|
||||||
# Gatsby files
|
|
||||||
.cache/
|
|
||||||
# Comment in the public line in if your project uses Gatsby and not Next.js
|
|
||||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
|
||||||
# public
|
|
||||||
|
|
||||||
# vuepress build output
|
|
||||||
.vuepress/dist
|
|
||||||
|
|
||||||
# Serverless directories
|
|
||||||
.serverless/
|
|
||||||
|
|
||||||
# FuseBox cache
|
|
||||||
.fusebox/
|
|
||||||
|
|
||||||
# DynamoDB Local files
|
|
||||||
.dynamodb/
|
|
||||||
|
|
||||||
# TernJS port file
|
|
||||||
.tern-port
|
|
||||||
|
|
||||||
# Stores VSCode versions used for testing VSCode extensions
|
|
||||||
.vscode-test
|
|
||||||
|
|
||||||
### vscode ###
|
|
||||||
.vscode/*
|
|
||||||
!.vscode/settings.json
|
|
||||||
!.vscode/tasks.json
|
|
||||||
!.vscode/launch.json
|
|
||||||
!.vscode/extensions.json
|
|
||||||
*.code-workspace
|
|
||||||
|
|
||||||
### Windows ###
|
|
||||||
# Windows thumbnail cache files
|
|
||||||
Thumbs.db
|
|
||||||
Thumbs.db:encryptable
|
|
||||||
ehthumbs.db
|
|
||||||
ehthumbs_vista.db
|
|
||||||
|
|
||||||
# Dump file
|
|
||||||
*.stackdump
|
|
||||||
|
|
||||||
# Folder config file
|
|
||||||
[Dd]esktop.ini
|
|
||||||
|
|
||||||
# Recycle Bin used on file shares
|
|
||||||
$RECYCLE.BIN/
|
|
||||||
|
|
||||||
# Windows Installer files
|
|
||||||
*.cab
|
|
||||||
*.msi
|
|
||||||
*.msix
|
|
||||||
*.msm
|
|
||||||
*.msp
|
|
||||||
|
|
||||||
# Windows shortcuts
|
|
||||||
*.lnk
|
|
||||||
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
printWidth: 85,
|
|
||||||
parser: 'typescript',
|
|
||||||
semi: false,
|
|
||||||
singleQuote: true,
|
|
||||||
trailingComma: 'all',
|
|
||||||
arrowParens: 'avoid',
|
|
||||||
}
|
|
||||||
13
packages/create-payload-app/.vscode/launch.json
vendored
13
packages/create-payload-app/.vscode/launch.json
vendored
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"command": "ts-node -T ./src/index.ts -n asdf -t blank --db mongodb --no-deps",
|
|
||||||
"cwd": "${workspaceFolder}",
|
|
||||||
"name": "Debug",
|
|
||||||
"request": "launch",
|
|
||||||
"type": "node-terminal"
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "create-payload-app",
|
"name": "create-payload-app",
|
||||||
|
"version": "0.5.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
"create-payload-app": "bin/cli.js"
|
"create-payload-app": "bin/cli.js"
|
||||||
@@ -13,10 +14,7 @@
|
|||||||
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
||||||
"lint-staged": "lint-staged --quiet",
|
"lint-staged": "lint-staged --quiet",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"prepublishOnly": "yarn test && yarn clean && yarn build",
|
"prepublishOnly": "yarn test && yarn clean && yarn build"
|
||||||
"prepare": "husky install",
|
|
||||||
"release:beta": "yarn publish --tag beta",
|
|
||||||
"release": "yarn publish"
|
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"package.json",
|
"package.json",
|
||||||
@@ -37,7 +35,6 @@
|
|||||||
"prompts": "^2.4.2",
|
"prompts": "^2.4.2",
|
||||||
"terminal-link": "^2.1.1"
|
"terminal-link": "^2.1.1"
|
||||||
},
|
},
|
||||||
"version": "0.5.2",
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/command-exists": "^1.2.0",
|
"@types/command-exists": "^1.2.0",
|
||||||
"@types/degit": "^2.8.3",
|
"@types/degit": "^2.8.3",
|
||||||
@@ -45,29 +42,6 @@
|
|||||||
"@types/jest": "^27.0.3",
|
"@types/jest": "^27.0.3",
|
||||||
"@types/node": "^16.6.2",
|
"@types/node": "^16.6.2",
|
||||||
"@types/prompts": "^2.4.1",
|
"@types/prompts": "^2.4.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.41.0",
|
"ts-jest": "^29.1.0"
|
||||||
"@typescript-eslint/parser": "^5.41.0",
|
|
||||||
"copyfiles": "^2.4.1",
|
|
||||||
"eslint": "^7.32.0",
|
|
||||||
"eslint-config-airbnb-base": "^14.2.1",
|
|
||||||
"eslint-config-prettier": "^8.3.0",
|
|
||||||
"eslint-plugin-prettier": "^3.4.0",
|
|
||||||
"husky": "^8.0.1",
|
|
||||||
"jest": "^27.4.5",
|
|
||||||
"lint-staged": "^13.0.3",
|
|
||||||
"prettier": "^2.3.2",
|
|
||||||
"rimraf": "^4.1.2",
|
|
||||||
"ts-jest": "^27.1.1",
|
|
||||||
"typescript": "^4.8.4"
|
|
||||||
},
|
|
||||||
"husky": {
|
|
||||||
"hooks": {
|
|
||||||
"pre-commit": "lint-staged"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lint-staged": {
|
|
||||||
"*.{ts,tsx}": [
|
|
||||||
"eslint \"src/**/*.ts\" --cache --fix"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,32 +1,24 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"composite": true, // Make sure typescript knows that this module depends on their references
|
||||||
"lib": [
|
"noEmit": false /* Do not emit outputs. */,
|
||||||
"dom",
|
"emitDeclarationOnly": true,
|
||||||
"dom.iterable",
|
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
|
||||||
"esnext"
|
"rootDir": "./src" /* Specify the root folder within your source files. */
|
||||||
],
|
|
||||||
"allowJs": true,
|
|
||||||
"outDir": "./dist",
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"strict": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"module": "commonjs",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"isolatedModules": true,
|
|
||||||
"jsx": "preserve",
|
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
|
||||||
"dist",
|
"dist",
|
||||||
"build",
|
"build",
|
||||||
"src/templates"
|
"tests",
|
||||||
|
"test",
|
||||||
|
"node_modules",
|
||||||
|
".eslintrc.js",
|
||||||
|
"src/**/*.spec.js",
|
||||||
|
"src/**/*.spec.jsx",
|
||||||
|
"src/**/*.spec.ts",
|
||||||
|
"src/**/*.spec.tsx"
|
||||||
],
|
],
|
||||||
"ts-node": {
|
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"],
|
||||||
"transpileOnly": true
|
"references": [{ "path": "../payload" }]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user