Skip to content

Commit

Permalink
Split monorepo. Removes remark-mdat.
Browse files Browse the repository at this point in the history
  • Loading branch information
kitschpatrol committed Jun 7, 2024
1 parent d5ec11b commit 7f040a0
Show file tree
Hide file tree
Showing 122 changed files with 1,062 additions and 5,423 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
},
},
{
files: ['packages/mdat/src/cli/**/*'],
files: ['src/cli/**/*'],
rules: {
'n/shebang': 'off',
},
Expand Down
14 changes: 5 additions & 9 deletions .mdatrc.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { type Config } from './packages/mdat/dist'
import mdatPackage from './packages/mdat/package.json' with { type: 'json' }
import remarkMdatPackage from './packages/remark-mdat/package.json' with { type: 'json' }
import mdatConfig from '@kitschpatrol/mdat-config'
import { mergeConfigs } from 'mdat'

export default {
rules: {
'mdat-description': `_**${mdatPackage.description}**_`,
'remark-mdat-description': `_**${remarkMdatPackage.description}**_`,
},
} satisfies Config
export default mergeConfigs(mdatConfig, {
// Custom mdat config goes here
})
11 changes: 8 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
".env": ".env.*",
"package.json": ".*.ts, .*.js, .*.json, .*.cjs, .*rc, .*ignore, pnpm-lock.yaml, pnpm-workspace.yaml",
"readme.md": "license*, changelog*"
"package.json": ".*.cjs, .*.js, .*.json, .*.mjs, .*.toml, .*.ts, .*.yaml, .*.yml, .*ignore, .*rc, *config.cjs, *config.js, *config.json, *config.mjs, *config.toml, *config.ts, *config.yaml, *config.yml, lerna.json, netlify.toml, package-lock.json, , pnpm*, turbo.json, vercel.json, workspace*, wrangler.toml, yarn.lock, yarn*",
"readme.md": "authors*, backers*, changelog*, citation*, code_of_conduct*, codeowners*, contributing*, contributors*, copying*, credits*, governance*, history*, license*, maintainers*, release_notes*, security*, sponsors*"
},
"cSpell.enabled": true,
"cSpell.workspaceRootPath": ".",
Expand All @@ -22,7 +22,12 @@
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"prettier.documentSelectors": ["**/.prettierignore", "**/.npmrc", "**/.eslintignore"],
"prettier.documentSelectors": [
"**/.eslintignore",
"**/.node-version",
"**/.npmrc",
"**/.prettierignore"
],
"prettier.enable": true,
"stylelint.enable": true,
"stylelint.validate": ["css", "html"]
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes.
75 changes: 62 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "mdat-monorepo",
"name": "mdat",
"version": "0.6.16",
"type": "module",
"description": "Use comments as dynamic content templates in Markdown files.",
"description": "CLI tool and library implementing the Markdown Autophagic Template (MDAT) system. MDAT lets you use comments as dynamic content templates in Markdown files, making it easy to generate and update readme boilerplate.",
"repository": {
"type": "git",
"url": "git+https://github.com/kitschpatrol/mdat.git"
"url": "git@github.com:kitschpatrol/mdat.git"
},
"homepage": "https://github.com/kitschpatrol/mdat",
"bugs": {
Expand All @@ -18,12 +18,21 @@
"url": "https://ericmika.com"
},
"license": "MIT",
"private": true,
"packageManager": "pnpm@9.1.4",
"packageManager": "pnpm@9.2.0+sha512.98a80fd11c2e7096747762304106432b3ddc67dcf54b5a8c01c93f68a2cd5e05e6821849522a06fb76284d41a2660d5e334f2ee3bbf29183bf2e739b1dafa771",
"engines": {
"node": ">=16.0.0",
"node": ">=18.0.0",
"pnpm": ">=8.0.0"
},
"bin": {
"mdat": "bin/cli.js"
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"bin/*",
"dist/*"
],
"keywords": [
"mdat",
"markdown",
Expand All @@ -36,17 +45,57 @@
"npm-package"
],
"scripts": {
"build": "pnpm -r run build",
"build": "tsup && tsc -p tsconfig.build.lib.json",
"clean": "git clean -fdX && rm ./pnpm-lock.yaml",
"dev": "pnpm run test",
"fix": "pnpm shared-config --fix",
"lint": "pnpm shared-config --lint",
"mdat": "packages/mdat/bin/cli.js readme && pnpm -r run mdat",
"prepublishOnly": "pnpm run build",
"release": "pnpm bumpp -r --commit 'Release: %s' --tag 'v%s' && pnpm -r build && pnpm -r publish --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
"test": "pnpm -r run test --watch=false"
"release": "pnpm bumpp --commit 'Release: %s' --tag 'v%s' && pnpm build && pnpm publish --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
"test": "vitest --no-file-parallelism"
},
"dependencies": {
"@clack/prompts": "^0.7.0",
"@kitschpatrol/tldraw-cli": "^4.5.4",
"@types/mdast": "^4.0.4",
"@types/node": "^20.14.2",
"@types/unist": "^3.0.2",
"@types/which": "^3.0.4",
"@types/yargs": "^17.0.32",
"cosmiconfig": "^9.0.0",
"cosmiconfig-typescript-loader": "^5.0.0",
"execa": "^9.2.0",
"globby": "^14.0.1",
"read-pkg": "^9.0.1",
"which": "^4.0.0"
},
"devDependencies": {
"@kitschpatrol/shared-config": "^4.6.6",
"bumpp": "^9.4.1"
"@kitschpatrol/shared-config": "^4.6.7",
"bumpp": "^9.4.1",
"chalk": "^5.3.0",
"chevrotain": "^11.0.3",
"find-up": "^7.0.0",
"is-executable": "^2.0.1",
"mdast-util-toc": "^7.1.0",
"nanoid": "^5.0.7",
"package-up": "^5.0.0",
"path-type": "^5.0.0",
"pkg-dir": "^8.0.0",
"plur": "^5.1.0",
"pretty-ms": "^9.0.0",
"remark": "^15.0.1",
"remark-gfm": "^4.0.0",
"remark-mdat": "^0.7.0",
"to-vfile": "^8.0.0",
"tsup": "^8.1.0",
"type-fest": "^4.20.0",
"typescript": "^5.4.5",
"untildify": "^5.0.0",
"vfile": "^6.0.1",
"vitest": "^1.6.0",
"yargs": "^17.7.2",
"zod": "^3.23.8"
},
"publishConfig": {
"access": "public"
}
}
21 changes: 0 additions & 21 deletions packages/mdat/license.txt

This file was deleted.

95 changes: 0 additions & 95 deletions packages/mdat/package.json

This file was deleted.

Loading

0 comments on commit 7f040a0

Please sign in to comment.