[sandbox] Formatting and scripts

This commit is contained in:
orosmatthew 2023-08-26 13:46:59 -04:00
parent 8e4564fe48
commit 711573cd20
7 changed files with 26 additions and 6 deletions

2
sandbox/.gitignore vendored
View File

@ -1,3 +1,3 @@
node_modules node_modules
dist build
.env .env

2
sandbox/.prettierignore Normal file
View File

@ -0,0 +1,2 @@
build
node_modules

View File

@ -3,6 +3,5 @@
"useTabs": true, "useTabs": true,
"singleQuote": true, "singleQuote": true,
"trailingComma": "none", "trailingComma": "none",
"printWidth": 100, "printWidth": 100
"pluginSearchDirs": ["."]
} }

View File

@ -36,4 +36,4 @@ COPY . .
RUN npm run build RUN npm run build
CMD ["node", "dist"] CMD ["node", "build"]

View File

@ -17,6 +17,7 @@
}, },
"devDependencies": { "devDependencies": {
"@types/fs-extra": "^11.0.1", "@types/fs-extra": "^11.0.1",
"prettier": "^3.0.2",
"typescript": "^5.1.6" "typescript": "^5.1.6"
} }
}, },
@ -119,6 +120,21 @@
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
}, },
"node_modules/prettier": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.2.tgz",
"integrity": "sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==",
"dev": true,
"bin": {
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/simple-git": { "node_modules/simple-git": {
"version": "3.19.1", "version": "3.19.1",
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.19.1.tgz", "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.19.1.tgz",

View File

@ -5,12 +5,15 @@
"main": "index.js", "main": "index.js",
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "tsc" "build": "tsc",
"format": "prettier --write .",
"start": "node build"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@types/fs-extra": "^11.0.1", "@types/fs-extra": "^11.0.1",
"prettier": "^3.0.2",
"typescript": "^5.1.6" "typescript": "^5.1.6"
}, },
"dependencies": { "dependencies": {

View File

@ -2,7 +2,7 @@
"compilerOptions": { "compilerOptions": {
"module": "NodeNext", "module": "NodeNext",
"sourceMap": true, "sourceMap": true,
"outDir": "./dist", "outDir": "./build",
"esModuleInterop": true, "esModuleInterop": true,
"strict": true "strict": true
}, },