-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from ddnlink/father4
Release 3.7.0
- Loading branch information
Showing
506 changed files
with
56,340 additions
and
6,452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import {defineConfig} from 'father' | ||
|
||
export default defineConfig({ | ||
cjs: { | ||
output: 'dist' | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
import { readdirSync } from 'fs'; | ||
import { join } from 'path'; | ||
import {readdirSync} from 'fs' | ||
import {join} from 'path' | ||
|
||
const headPkgs = ['utils', 'core', 'crypto']; | ||
const tailPkgs = ['peer', 'test-utils', 'node-sdk', 'js-sdk']; | ||
const headPkgs = ['utils', 'core', 'crypto'] | ||
const tailPkgs = ['peer', 'test-utils', 'node-sdk', 'js-sdk'] | ||
// 开源插件包 | ||
const otherPkgs = readdirSync(join(__dirname, 'packages')).filter( | ||
(pkg) => | ||
pkg.charAt(0) !== '.' && !headPkgs.includes(pkg) && !tailPkgs.includes(pkg), | ||
); | ||
pkg => pkg.charAt(0) !== '.' && !headPkgs.includes(pkg) && !tailPkgs.includes(pkg) | ||
) | ||
// 企业插件包 | ||
const proPkgs = readdirSync(join(__dirname, 'pro-packages')).filter( | ||
pkg => pkg.charAt(0) !== '.' && !headPkgs.includes(pkg) && !tailPkgs.includes(pkg) | ||
) | ||
|
||
export default { | ||
target: 'node', | ||
cjs: { type: 'babel', lazy: true, minify: true }, | ||
cjs: {type: 'babel', lazy: false, minify: true}, | ||
disableTypeCheck: false, | ||
pkgs: [...headPkgs, ...otherPkgs, ...tailPkgs], | ||
pkgs: [...headPkgs, ...otherPkgs, ...proPkgs, ...tailPkgs], | ||
doc: { | ||
themeConfig: { mode: 'light' }, | ||
themeConfig: {mode: 'light'}, | ||
base: '/doc' | ||
}, | ||
extraBabelPlugins: [ | ||
['@babel/plugin-transform-classes'], | ||
], | ||
}; | ||
extraBabelPlugins: [['@babel/plugin-transform-classes']] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use-node-version=20.13.1 | ||
# Prevent jsx namespace conflicts, because Vue global types will auto install. | ||
# In the future, Vue 3 will fix this issue | ||
# See https://github.com/vuejs/core/blob/main/CHANGELOG.md#features-1 | ||
auto-install-peers=false | ||
|
||
# 在安装本地时自动连接 | ||
# 或者 pnpm add web --filter docs --link-workspace-packages=true | ||
link-workspace-packages = true | ||
|
||
# 当安装时,使用workspace协议,默认是 true,版本号就会是这样 "@ddn/asset-aob": "workspace:^1.0.0" | ||
# save-workspace-protocol = false | ||
save-prefix = '^' | ||
|
||
build-from-source = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
The MIT License (MIT) | ||
The AGPL 3.0 License (AGPL 3.0) | ||
|
||
Copyright (c) 2016-2020 DDN FOUNDATION</br> | ||
Copyright (c) 2016-2024 DDN FOUNDATION</br> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the website https://www.gnu.org/licenses/agpl-3.0.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const ddn = require('./config.ddn') | ||
const ddn = require('./config.testnet') | ||
|
||
// 默认是输出 ddn-docs | ||
let config = ddn | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.