Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm run lint:fix:prettier
# pnpm run lint
# pnpm test
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/.svelte-kit/**
**/static/**
**/build/**
**/dist/**
**/node_modules/**
**/pnpm-lock.yaml
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "es5"
}
34 changes: 15 additions & 19 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/packages/transformer-markdown/src/index.ts",
"outFiles": [
"${workspaceFolder}/**/*.js"
]
}
]
}
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/packages/transformer-markdown/src/index.ts",
"outFiles": ["${workspaceFolder}/**/*.js"]
}
]
}
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
"scripts": {
"build": "pnpm -r --parallel --filter !playground run build",
"dev": "pnpm -r --parallel --filter !playground run dev",
"lint": "eslint \"**/*.{ts,vue,mjs}\"",
"lint": "prettier --check --plugin-search-dir=. .",
"lint:fix": "nr lint -- --fix",
"lint:fix:prettier": "prettier --write --plugin-search-dir=. .",
"play": "npm -C playground run dev",
"play:build": "pnpm run build && npm -C playground run build",
"size": "esmo scripts/size.ts",
"release": "bumpp package.json packages/*/package.json --commit --push --tag",
"test": "jest"
"test": "jest",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand All @@ -26,8 +28,8 @@
},
"homepage": "https://github.com/tonyketcham/oyu#readme",
"dependencies": {
"@oyu/core": "workspace:*",
"@oyu/config": "workspace:*",
"@oyu/core": "workspace:*",
"@oyu/source-filesystem": "workspace:*",
"@oyu/transformer-markdown": "workspace:*",
"oyu": "workspace:*"
Expand All @@ -36,11 +38,12 @@
"@types/jest": "^27.0.2",
"@types/node": "^16.11.7",
"bumpp": "^7.1.1",
"eslint": "^8.2.0",
"jest": "^27.3.1",
"prettier": "2.4.1",
"ts-jest": "^27.0.7",
"tsconfig-paths-jest": "^0.0.1",
"tsup": "^5.6.0",
"typescript": "^4.4.4"
"typescript": "^4.4.4",
"husky": "^7.0.0"
}
}
1 change: 1 addition & 0 deletions packages/config/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// tsup.config.ts
import type { Options } from 'tsup';

export const tsup: Options = {
splitting: false,
sourcemap: true,
Expand Down
Loading