Compare commits

...

1 Commits

Author SHA1 Message Date
Germán Jabloñski
e113d0066e rename .env.example in preinstall, add template scripts to root package.json, remove .editorconfig 2024-12-05 14:17:44 -03:00
5 changed files with 4 additions and 12 deletions

View File

@@ -80,6 +80,8 @@
"script:gen-templates": "pnpm runts ./scripts/generate-template-variations.ts",
"script:list-published": "pnpm runts scripts/lib/getPackageRegistryVersions.ts",
"script:pack": "pnpm runts scripts/pack-all-to-dest.ts",
"template:blank": "cd templates/blank && cross-env NODE_OPTIONS=--no-deprecation pnpm --ignore-workspace install && cp .env .env.example || true && pnpm dev",
"template:website": "cd templates/website && cross-env NODE_OPTIONS=--no-deprecation pnpm --ignore-workspace install && cp .env .env.example || true && pnpm dev",
"pretest": "pnpm build",
"test": "pnpm test:int && pnpm test:components && pnpm test:e2e",
"test:components": "cross-env NODE_OPTIONS=\" --no-deprecation\" jest --config=jest.components.config.js",

View File

@@ -10,6 +10,7 @@
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
"preinstall": "sh -c '[ -f .env.example ] && mv .env.example .env || true'",
"lint": "cross-env NODE_OPTIONS=--no-deprecation next lint",
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"

View File

@@ -1,10 +0,0 @@
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
max_line_length = null

View File

@@ -51,7 +51,6 @@ git clone -n --depth=1 --filter=tree:0 https://github.com/payloadcms/payload my-
### Development
1. First [clone the repo](#clone) if you have not done so already
1. `cd my-project && cp .env.example .env` to copy the example environment variables
1. `pnpm install && pnpm dev` to install dependencies and start the dev server
1. open `http://localhost:3000` to open the app in your browser

View File

@@ -11,7 +11,7 @@
"dev:prod": "cross-env NODE_OPTIONS=--no-deprecation rm -rf .next && pnpm build && pnpm start",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
"ii": "cross-env NODE_OPTIONS=--no-deprecation pnpm --ignore-workspace install",
"preinstall": "sh -c '[ -f .env.example ] && mv .env.example .env || true'",
"lint": "cross-env NODE_OPTIONS=--no-deprecation next lint",
"lint:fix": "cross-env NODE_OPTIONS=--no-deprecation next lint --fix",
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",