Skip to content

Commit

Permalink
Publish
Browse files Browse the repository at this point in the history
 - @gemjs/config@1.6.12
 - duoyun-ui@1.1.10
 - @mantou/gem@1.7.10
 - gem-analyzer@1.7.7
 - gem-book@1.5.35
 - gem-devtools@1.7.6
 - gem-examples@1.7.6
 - gem-port@0.0.7
  • Loading branch information
mantou132 committed Jan 14, 2024
1 parent 615ebf6 commit 8b38900
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 30 deletions.
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"name": "@gemjs/config",
"version": "1.6.11",
"version": "1.6.12",
"description": "Gemjs common config"
}
4 changes: 2 additions & 2 deletions packages/duoyun-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "duoyun-ui",
"version": "1.1.9",
"version": "1.1.10",
"description": "A lightweight desktop UI component library, implemented using Gem",
"keywords": [
"frontend",
Expand Down Expand Up @@ -52,7 +52,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4-fix.0",
"@gemjs/config": "^1.6.11",
"@gemjs/config": "^1.6.12",
"@open-wc/testing": "^2.5.33",
"@types/d3-geo": "^3.0.1",
"@web/dev-server-esbuild": "^0.2.16",
Expand Down
6 changes: 3 additions & 3 deletions packages/gem-analyzer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gem-analyzer",
"version": "1.7.6",
"version": "1.7.7",
"description": "gem analyzer",
"main": "index.js",
"files": [
Expand All @@ -13,10 +13,10 @@
"prepublishOnly": "yarn build"
},
"dependencies": {
"@mantou/gem": "^1.7.8"
"@mantou/gem": "^1.7.10"
},
"devDependencies": {
"@gemjs/config": "^1.6.11",
"@gemjs/config": "^1.6.12",
"ts-morph": "^13.0.0",
"typescript": "^5.3.2"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/gem-book/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gem-book",
"version": "1.5.34",
"version": "1.5.36",
"description": "Create your document website easily and quickly",
"keywords": [
"doc",
Expand Down Expand Up @@ -34,13 +34,14 @@
"start:docs": "cross-env PORT=8090 GEM_BOOK_DEV=true nodemon --watch bin --exec \"yarn docs\"",
"start": "concurrently npm:start:cli npm:start:docs",
"build:website": "yarn build:cli && yarn docs --build --ga G-7X2Z4B2KV0",
"build": "yarn build:cli && tsc",
"build": "yarn build:cli && tsc -p ./tsconfig.build.json",
"test": "cross-env NODE_OPTIONS=--no-experimental-fetch wtr",
"prepublishOnly": "yarn build"
},
"dependencies": {
"@mantou/gem": "^1.7.8",
"@mantou/gem": "^1.7.10",
"anymatch": "^3.1.3",
"chalk": "^2.4.2",
"cheerio": "^1.0.0-rc.12",
"chokidar": "^3.5.3",
"commander": "^7.2.0",
Expand All @@ -52,7 +53,6 @@
"html-webpack-plugin": "^5.5.3",
"jimp": "^0.16.1",
"marked": "^10.0.0",
"chalk": "^2.4.2",
"mkdirp": "^1.0.4",
"parse-github-url": "^1.0.2",
"sitemap-webpack-plugin": "^1.1.1",
Expand All @@ -66,7 +66,7 @@
"devDependencies": {
"@codesandbox/sandpack-client": "^2.0.01",
"@esm-bundle/chai": "^4.3.4-fix.0",
"@gemjs/config": "^1.6.11",
"@gemjs/config": "^1.6.12",
"@open-wc/testing": "^2.5.33",
"@types/jsdom": "^16.2.10",
"@types/marked": "^2.0.2",
Expand All @@ -76,7 +76,7 @@
"@web/dev-server-esbuild": "^0.2.16",
"@web/test-runner": "^0.13.22",
"esbuild": "^0.14.14",
"gem-analyzer": "^1.7.6",
"gem-analyzer": "^1.7.7",
"nodemon": "^2.0.7",
"ts-morph": "^13.0.0",
"webpack-cli": "^5.1.4",
Expand Down
5 changes: 4 additions & 1 deletion packages/gem-book/src/bin/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@ function genDocuments(docsDir: string, bookConfig: BookConfig) {
const temp = [...sidebar];
while (temp.length) {
const item = temp.pop()!;
if (addedLinks.has(item.link)) continue;
if (item.sidebarIgnore) continue;
if (item.children) temp.push(...item.children);

if (addedLinks.has(item.link)) continue;
if (item.type === 'file' || item.type === 'dir') {
addedLinks.add(item.link);
const fullPath = path.join(docsDir, lang, item.link);
documents.push({
// 通过路径来识别文件和目录,以获取父级 title,例如:
// `/guide/readme` 的父级 title 是 `/guide/` 的目录 title
id: getLinkPath(item.link, bookConfig.displayRank),
text: item.type === 'file' ? getBody(getMdFile(fullPath).content) : '',
title: getMetadata(fullPath, bookConfig.displayRank).title,
Expand Down
3 changes: 2 additions & 1 deletion packages/gem-book/src/element/test/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expect } from '@open-wc/testing';

import { capitalize, flatNav, getUserLink } from '../lib/utils';
import { capitalize, flatNav } from '../lib/utils';
import { getUserLink } from '../../common/utils';

describe('lib/utils', () => {
it('capitalize', () => {
Expand Down
3 changes: 2 additions & 1 deletion packages/gem-book/src/plugins/docsearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ customElements.whenDefined('gem-book').then(({ GemBookPluginElement }: typeof Ge
}

#navigator = (url: string) => {
history.pushState(null, '', url.replace(new RegExp(`/${GemBookPluginElement.lang}(/?)`), '$1'));
// route 中会更新 title
history.pushState(null, document.title, url.replace(new RegExp(`/${GemBookPluginElement.lang}(/?)`), '$1'));
};

#miniSearch?: Promise<any>;
Expand Down
8 changes: 8 additions & 0 deletions packages/gem-book/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "@gemjs/config/tsconfig",
"compilerOptions": {
"outDir": "./"
},
"include": ["src"],
"exclude": ["src/bin", "./src/**/*.test.ts", "./src/**/*.spec.ts"]
}
5 changes: 2 additions & 3 deletions packages/gem-book/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"extends": "@gemjs/config/tsconfig",
"compilerOptions": {
"outDir": "./",
"module": "ES2022"
"outDir": "./"
},
"include": ["src"],
"exclude": ["src/bin", "./src/**/*.test.ts", "./src/**/*.spec.ts"]
"exclude": []
}
6 changes: 3 additions & 3 deletions packages/gem-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gem-devtools",
"version": "1.7.5",
"version": "1.7.6",
"description": "Gem devtools",
"scripts": {
"update:version": "node ./scripts/update.js",
Expand All @@ -11,11 +11,11 @@
"start": "yarn build && concurrently -k npm:watch npm:browser"
},
"dependencies": {
"@mantou/gem": "^1.7.8",
"@mantou/gem": "^1.7.10",
"webextension-polyfill": "^0.10.0"
},
"devDependencies": {
"@gemjs/config": "^1.6.11",
"@gemjs/config": "^1.6.12",
"@types/webextension-polyfill": "^0.10.7",
"vite": "^2.7.13",
"web-ext": "^7.8.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/gem-examples/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"private": true,
"name": "gem-examples",
"version": "1.7.5",
"version": "1.7.6",
"description": "gem examples",
"scripts": {
"build": "vite build",
"start": "vite serve"
},
"dependencies": {
"@mantou/gem": "^1.7.8",
"duoyun-ui": "^1.1.8"
"@mantou/gem": "^1.7.10",
"duoyun-ui": "^1.1.10"
},
"devDependencies": {
"@gemjs/config": "^1.6.11",
"@gemjs/config": "^1.6.12",
"vite": "^2.7.13",
"vite-plugin-virtual-mpa": "^1.9.3"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/gem-port/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gem-port",
"version": "0.0.6",
"version": "0.0.7",
"description": "Export React component",
"keywords": [
"gem",
Expand All @@ -19,9 +19,9 @@
"prepublishOnly": "yarn build"
},
"dependencies": {
"@gemjs/config": "^1.6.11",
"@gemjs/config": "^1.6.12",
"commander": "^7.2.0",
"gem-analyzer": "^1.7.6",
"gem-analyzer": "^1.7.7",
"ts-morph": "^13.0.0",
"typescript": "^4.5.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/gem/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mantou/gem",
"version": "1.7.9",
"version": "1.7.10",
"description": "💎 使用自定义元素的轻量级 WebApp 开发框架",
"keywords": [
"frontend",
Expand Down Expand Up @@ -43,7 +43,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4-fix.0",
"@gemjs/config": "^1.6.11",
"@gemjs/config": "^1.6.12",
"@open-wc/testing": "^2.5.33",
"@web/dev-server-esbuild": "^0.2.16",
"@web/test-runner": "^0.13.22",
Expand Down

0 comments on commit 8b38900

Please sign in to comment.