Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josef-friedrich/js-boilerplate
https://github.com/josef-friedrich/js-boilerplate
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/josef-friedrich/js-boilerplate
- Owner: Josef-Friedrich
- Created: 2023-12-27T07:41:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-13T16:50:10.000Z (9 months ago)
- Last Synced: 2024-04-14T06:58:27.790Z (9 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![npm](https://img.shields.io/npm/v/express.svg)](https://npmjs.com/package/express)
# Formating
https://prettier.io/
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
# Build
`rimraf ./dist && tsc --project tsconfig.build.json`
`tsconfig.build.json`
```json
{
"extends": "./tsconfig.json",
"exclude": [
"src/**/*.test.ts"
]
}
```## Path aliases, for example `@/*`
```json
{
"scripts": {
"build:typescript": "tsc --project tsconfig.build.json && tsc-alias"
}
}
````tsconfig.json`
```json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
````vitest.config.ts`
```ts
import { defineConfig } from 'vitest/config'export default defineConfig({
test: {
alias: {
'@/': new URL('./src/', import.meta.url).pathname
}
}
})
```Run test not including `#slow`
`--testNamePattern '^((?!#slow).)*$'`