[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
dist
build
.env

2
sandbox/.prettierignore Normal file
View File

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

View File

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

View File

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

View File

@ -17,6 +17,7 @@
},
"devDependencies": {
"@types/fs-extra": "^11.0.1",
"prettier": "^3.0.2",
"typescript": "^5.1.6"
}
},
@ -119,6 +120,21 @@
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"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": {
"version": "3.19.1",
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.19.1.tgz",

View File

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

View File

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