Skip to content
Draft
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ package-lock.json
node_modules/
dist/
public/
.cache/
.*-cache/
test/**/*.html
.vscode/
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm test
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run build
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers = false
7 changes: 7 additions & 0 deletions .parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "@parcel/config-default",
"resolvers": [
"@parcel/resolver-glob",
"..."
]
}
54 changes: 31 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,34 @@
"bugs": {
"url": "https://github.com/EasyWebApp/mark-wiki/issues"
},
"type": "module",
"dependencies": {
"boot-cell": "^1.0.0-rc.1",
"classnames": "^2.2.6",
"web-cell": "^2.0.0-rc.20"
"boot-cell": "^2.0.0-beta.29",
"classnames": "^2.5.1",
"dom-renderer": "^2.3.0",
"web-cell": "^3.0.0-rc.18",
"web-utility": "^4.4.0"
},
"devDependencies": {
"@types/node": "^13.9.3",
"husky": "^4.2.3",
"less": "^3.11.1",
"lint-staged": "^10.0.8",
"mark-cell": "^0.4.1",
"parcel-bundler": "^1.12.4",
"prettier": "^2.0.2"
"@mdx-js/mdx": "^3.0.1",
"@parcel/config-default": "~2.12.0",
"@parcel/resolver-glob": "~2.12.0",
"@tech_query/node-toolkit": "^1.2.1",
"@types/node": "^18.19.42",
"fs-match": "^1.7.1",
"happy-dom": "^14.12.3",
"husky": "^9.1.3",
"linkedom": "^0.18.4",
"lint-staged": "^15.2.7",
"parcel": "~2.12.0",
"prettier": "^3.3.3",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-mdx-frontmatter": "^5.0.0",
"tsx": "^4.16.2",
"types-tsconfig": "^2.1.1",
"typescript": "^5.5.4",
"zx": "^8.1.4"
},
"prettier": {
"singleQuote": true,
Expand All @@ -44,23 +59,16 @@
"tabWidth": 4
},
"lint-staged": {
"*.{css,less,md,mdx,json,ts,tsx}": [
"prettier --write"
]
"*.{css,less,md,mdx,json,ts,tsx}": "prettier --write"
},
"scripts": {
"prepare": "husky",
"test": "lint-staged",
"pack-mdx": "mark-cell document/source -p web-cell -f createCell -l source/layout -s 1",
"boot-html": "parcel document/public/index.html --open",
"pack-html": "parcel build document/public/index.html --public-url .",
"clean": "rm -rf document/dist/ document/public dist/",
"pack-mdx": "tsx test/generator.tsx test/",
"boot-html": "parcel 'test/**/*.html'",
"pack-html": "parcel build 'test/**/*.html' --public-url .",
"clean": "rm -rf .*-cache/ dist/",
"start": "npm run clean && npm run pack-mdx && npm run boot-html",
"build": "npm run clean && npm run pack-mdx && npm run pack-html"
},
"husky": {
"hooks": {
"pre-commit": "npm test",
"pre-push": "npm run build"
}
}
}
Loading