Skip to content

Commit

Permalink
docs: 📝 add changelogs for 010de81 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
dengzongheng committed Aug 4, 2023
1 parent 010de81 commit 375e11e
Show file tree
Hide file tree
Showing 33 changed files with 522 additions and 71 deletions.
7 changes: 7 additions & 0 deletions .changeset/clean-snakes-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@zanejs/constants': minor
'@zanejs/utils': minor
'@zanejs/mvc': minor
---

加入一个 mvc 包
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"changelog": [
"@changesets/changelog-github",
{
"repo": "zanedeng/zanedeng.github.io"
"repo": "zanedeng/zanejs"
}
],
"commit": false,
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# When install package, make it version to "*"
save-workspace-protocol = rolling
save-prefix = ''

registry = https://registry.npmjs.org/
# Add common config to sub package, use public-hoist-pattern avoid some package need to be root location
# When use npm8.x, array is not effect. see https://github.com/pnpm/pnpm/issues/5347
public-hoist-pattern[] = *eslint*
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,7 @@
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"editor.suggest.snippetsPreventQuickSuggestions": false,
"aiXcoder.showTrayIcon": true
}
6 changes: 3 additions & 3 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"vue",
"docs"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/commitlint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/commitlint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git",
"url": "https://github.com/zanedeng/zanejs.git",
"directory": "apps/docs"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions apps/playground-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"vite",
"playground"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/commitlint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/commitlint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git",
"url": "https://github.com/zanedeng/zanejs.git",
"directory": "apps/playground/react"
},
"scripts": {
Expand Down
13 changes: 0 additions & 13 deletions apps/playground-react/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
import GoogleTranslateSelect from '@google-translate-select/react'

function App() {
const handleGoogleTranslateSelect = (language: any) => {
console.log('select', language)
}

return (
<div className="react-container">
<GoogleTranslateSelect
defaultLanguageCode="en"
defaultPageLanguageCode="zh-CN"
fetchBrowserLanguage={false}
select={handleGoogleTranslateSelect}
className="demo"
/>
<div className="test">
<h4>
&nbsp; ①一个前端的自我修养
Expand Down
6 changes: 3 additions & 3 deletions apps/playground-vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"vite",
"playground"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/commitlint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/commitlint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git",
"url": "https://github.com/zanedeng/zanejs.git",
"directory": "apps/playground/vue2"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions apps/playground-vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"vite",
"playground"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/commitlint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/commitlint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git",
"url": "https://github.com/zanedeng/zanejs.git",
"directory": "apps/playground/vue3"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions internals/commitlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"commitlint",
"commitlint-config"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/commitlint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/commitlint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git",
"url": "https://github.com/zanedeng/zanejs.git",
"directory": "internals/commitlint-config"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions internals/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"eslint",
"eslint-config"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/eslint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/eslint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git",
"url": "https://github.com/zanedeng/zanejs.git",
"directory": "internals/eslint-config"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions internals/lint-staged-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"lint-staged",
"lint-staged-config"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/eslint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/eslint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git",
"url": "https://github.com/zanedeng/zanejs.git",
"directory": "internals/lint-staged-config"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions internals/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"prettier",
"prettier-config"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/eslint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/eslint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git",
"url": "https://github.com/zanedeng/zanejs.git",
"directory": "internals/prettier-config"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions internals/simple-git-hooks-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"simple-git-hooks",
"simple-git-hooks-config"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/eslint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/eslint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git",
"url": "https://github.com/zanedeng/zanejs.git",
"directory": "internals/simple-git-hooks-config"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions internals/stylelint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"stylelint",
"stylelint-config"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/eslint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/eslint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git",
"url": "https://github.com/zanedeng/zanejs.git",
"directory": "internals/stylelint-config"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions internals/ts-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"typescript",
"ts-config"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/eslint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/eslint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
Expand All @@ -35,7 +35,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git",
"url": "https://github.com/zanedeng/zanejs.git",
"directory": "internals/ts-config"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"changesets",
"vitest"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/commitlint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/commitlint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git"
"url": "https://github.com/zanedeng/zanejs.git"
},
"scripts": {
"preinstall": "node ./scripts/preinstall.mjs",
Expand Down
6 changes: 3 additions & 3 deletions packages/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"changesets",
"constants"
],
"homepage": "https://github.com/zanedeng/zanedeng.github.io/blob/master/internals/commitlint-config#readme",
"homepage": "https://github.com/zanedeng/zanejs/blob/master/internals/commitlint-config#readme",
"bugs": {
"url": "https://github.com/zanedeng/zanedeng.github.io/issues"
"url": "https://github.com/zanedeng/zanejs/issues"
},
"license": "MIT",
"author": "zanedeng <[email protected]> (https://github.com/zanedeng)",
Expand All @@ -37,7 +37,7 @@
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/zanedeng/zanedeng.github.io.git",
"url": "https://github.com/zanedeng/zanejs.git",
"directory": "packages/constants"
},
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions packages/mvc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @zanejs/mvc

🚀 The package mvc for @zanejs!

## Build

Use tsup to build and this package don't have `devDependencies`. See [ts-up#excluding-packages](https://tsup.egoist.dev/#excluding-packages)
15 changes: 15 additions & 0 deletions packages/mvc/build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from 'tsup'
import type { Options } from 'tsup'

export default defineConfig((options: Options) => ({
entry: ['./src/index.ts'],
format: ['cjs', 'esm'],
tsconfig: '../../tsconfig.web.json',
dts: {
compilerOptions: {
// use tsconfig references generate .d.ts has error. see https://github.com/egoist/tsup/issues/647
composite: false,
},
},
minify: !options.watch,
}))
Loading

0 comments on commit 375e11e

Please sign in to comment.