@widget-js/cli 24.1.1-beta.5 → 24.1.1-beta.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{lib/createWidget-4LQ6PVEM.js → dist/createWidget-EFGZUM5G.js} +3 -4
- package/{lib/dependencies-AVNHKRF3.js → dist/dependencies-UPIZWTP2.js} +7 -9
- package/{lib → dist}/index.js +14 -5
- package/dist/publish-C52GHJWG.js +50 -0
- package/{lib/release-PIRAQ7A6.js → dist/release-MBNSS6M2.js} +56 -41
- package/package.json +36 -23
- package/readme.md +31 -0
- package/template/WidgetConfig.ejs +2 -6
- package/template/WidgetDefine.ejs +2 -1
- package/template/WidgetRoutes.ejs +4 -4
- package/template/WidgetView.ejs +8 -4
- package/template/widget-router.ts +1 -1
- package/.editorconfig +0 -16
- package/.prettierrc +0 -21
- package/jest.config.js +0 -14
- package/release.json +0 -9
- package/src/build/build.ts +0 -35
- package/src/createWidget.ts +0 -232
- package/src/dependencies/index.ts +0 -13
- package/src/dependencies/localDependencies.ts +0 -29
- package/src/dependencies/remoteDependencies.ts +0 -37
- package/src/index.ts +0 -56
- package/src/init/init.ts +0 -121
- package/src/promts/promptChecker.ts +0 -17
- package/src/release/ftp.ts +0 -144
- package/src/release/oss.ts +0 -50
- package/src/release/release.ts +0 -70
- package/src/release/update-zip.ts +0 -19
- package/src/utils/EJSUtils.ts +0 -18
- package/src/utils/PrettierUtils.ts +0 -12
- package/src/utils/WidgetPackageUtils.ts +0 -13
- package/src/utils.ts +0 -84
- package/test/index.test.ts +0 -9
- package/tsconfig.json +0 -78
- package/tsup.config.ts +0 -6
- package/vite.config.ts +0 -15
- package/widget.json +0 -14
- /package/{lib → dist}/chunk-I4ZBPB2S.js +0 -0
- /package/{lib → dist}/chunk-RDJH7Z4C.js +0 -0
- /package/{lib → dist}/chunk-XPJ33Y5L.js +0 -0
- /package/{lib → dist}/init-HCEGKTNF.js +0 -0
package/src/release/oss.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import fs from 'node:fs'
|
|
2
|
-
import OSS from 'ali-oss'
|
|
3
|
-
import chalk from 'chalk'
|
|
4
|
-
import consola from 'consola'
|
|
5
|
-
|
|
6
|
-
const packageData = JSON.parse(fs.readFileSync('./package.json').toString())
|
|
7
|
-
export const AccessKeyID = packageData.oss?.id ?? 'default'
|
|
8
|
-
export const AccessKeySecret = packageData.oss?.secret ?? 'default'
|
|
9
|
-
|
|
10
|
-
const headers = {
|
|
11
|
-
// 指定Object的存储类型。
|
|
12
|
-
'x-oss-storage-class': 'Standard',
|
|
13
|
-
// 指定Object的访问权限。
|
|
14
|
-
'x-oss-object-acl': 'public-read',
|
|
15
|
-
'x-oss-forbid-overwrite': 'false',
|
|
16
|
-
'Cache-Control': 'no-cache',
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const clinet = new OSS({
|
|
20
|
-
// yourRegion填写Bucket所在地域。以华东1(杭州)为例,Region填写为oss-cn-hangzhou。
|
|
21
|
-
region: 'oss-cn-hangzhou',
|
|
22
|
-
// 阿里云账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM用户进行API访问或日常运维,请登录RAM控制台创建RAM用户。
|
|
23
|
-
accessKeyId: AccessKeyID,
|
|
24
|
-
accessKeySecret: AccessKeySecret,
|
|
25
|
-
bucket: 'widget-fun',
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
export async function put(ossPath: string, file: any) {
|
|
29
|
-
try {
|
|
30
|
-
// 填写OSS文件完整路径和本地文件的完整路径。OSS文件完整路径中不能包含Bucket名称。
|
|
31
|
-
// 如果本地文件的完整路径中未指定本地路径,则默认从示例程序所属项目对应本地路径中上传文件。
|
|
32
|
-
await clinet.put(ossPath, file, { headers })
|
|
33
|
-
consola.log(chalk.green(`上传成功:${file}->${ossPath}`))
|
|
34
|
-
}
|
|
35
|
-
catch (e) {
|
|
36
|
-
consola.log(e)
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export async function copy(dist: string, src: string) {
|
|
41
|
-
try {
|
|
42
|
-
// 填写OSS文件完整路径和本地文件的完整路径。OSS文件完整路径中不能包含Bucket名称。
|
|
43
|
-
// 如果本地文件的完整路径中未指定本地路径,则默认从示例程序所属项目对应本地路径中上传文件。
|
|
44
|
-
await clinet.copy(dist, src, { headers })
|
|
45
|
-
consola.log(chalk.green(`复制成功:${src}->${dist}`))
|
|
46
|
-
}
|
|
47
|
-
catch (e) {
|
|
48
|
-
console.error(e)
|
|
49
|
-
}
|
|
50
|
-
}
|
package/src/release/release.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import fs from 'node:fs'
|
|
2
|
-
import path from 'node:path'
|
|
3
|
-
import { Buffer } from 'node:buffer'
|
|
4
|
-
import chalk from 'chalk'
|
|
5
|
-
import consola from 'consola'
|
|
6
|
-
import promptChecker from '../promts/promptChecker.js'
|
|
7
|
-
import zipDirectory from './update-zip.js'
|
|
8
|
-
import { copy, put } from './oss.js'
|
|
9
|
-
import { ftpUpload } from './ftp'
|
|
10
|
-
|
|
11
|
-
async function release(options: any) {
|
|
12
|
-
if (options.type == 'ftp') {
|
|
13
|
-
await ftpUpload(options.file)
|
|
14
|
-
return
|
|
15
|
-
}
|
|
16
|
-
const packageJSON = JSON.parse(fs.readFileSync('package.json', 'utf-8'))
|
|
17
|
-
const changelogJSON = JSON.parse(fs.readFileSync('changelog.json', 'utf-8'))
|
|
18
|
-
const version = packageJSON.version
|
|
19
|
-
const changelog = changelogJSON[version]
|
|
20
|
-
|
|
21
|
-
const needUpdateElectron = await promptChecker({
|
|
22
|
-
type: 'confirm',
|
|
23
|
-
name: 'electron',
|
|
24
|
-
message: chalk.blue('用户是否需要更新Electron?'),
|
|
25
|
-
})
|
|
26
|
-
//
|
|
27
|
-
// let needUpdateNodeModule = await promptChecker({
|
|
28
|
-
// type: "confirm",
|
|
29
|
-
// name: 'electron',
|
|
30
|
-
// message: chalk.blue("用户是否需要更新node_module?")
|
|
31
|
-
// });
|
|
32
|
-
|
|
33
|
-
const versionInfo = {
|
|
34
|
-
version,
|
|
35
|
-
releaseNote: changelog,
|
|
36
|
-
updateElectron: needUpdateElectron,
|
|
37
|
-
updateNodeModule: false,
|
|
38
|
-
updateWindowsApi: false,
|
|
39
|
-
downloadLink: '',
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
let installerPath = path.join(`./dist/widgets-${version}-setup-win-x64.exe`)
|
|
43
|
-
if (!fs.existsSync(installerPath)) {
|
|
44
|
-
installerPath = path.join(`./dist/electron-${version}-setup-win-x64.exe`)
|
|
45
|
-
}
|
|
46
|
-
if (!fs.existsSync(installerPath)) {
|
|
47
|
-
installerPath = path.join(`./dist/app-${version}-setup-win-x64.exe`)
|
|
48
|
-
}
|
|
49
|
-
const updateZipPath = path.join(`./dist/update.zip`)
|
|
50
|
-
|
|
51
|
-
consola.log(chalk.blue('压缩更新文件中'))
|
|
52
|
-
await zipDirectory('./release', updateZipPath)
|
|
53
|
-
|
|
54
|
-
consola.log(chalk.blue('上传installer.exe到OSS'))
|
|
55
|
-
await put('version/installer.exe', installerPath)
|
|
56
|
-
|
|
57
|
-
consola.log(chalk.blue('上传update.zip到OSS'))
|
|
58
|
-
await put('version/update.zip', updateZipPath)
|
|
59
|
-
|
|
60
|
-
consola.log(chalk.blue('更新版本信息'))
|
|
61
|
-
versionInfo.downloadLink = 'https://widget-fun.oss-cn-hangzhou.aliyuncs.com/version/update.zip'
|
|
62
|
-
const versionJSON = JSON.stringify(versionInfo, null, 2)
|
|
63
|
-
await put('version/version.json', Buffer.from(versionJSON))
|
|
64
|
-
|
|
65
|
-
await Promise.all([copy(`version/history/${version}.exe`, 'version/installer.exe'), copy(`version/history/update-${version}.zip`, 'version/update.zip')])
|
|
66
|
-
|
|
67
|
-
consola.log(chalk.yellow(versionJSON))
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export default release
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import fs from 'node:fs'
|
|
2
|
-
import archiver from 'archiver'
|
|
3
|
-
|
|
4
|
-
function zipDirectory(sourceDir: string, outPath: string, ignoreDir?: string[]) {
|
|
5
|
-
const archive = archiver('zip', { zlib: { level: 9 } })
|
|
6
|
-
const stream = fs.createWriteStream(outPath)
|
|
7
|
-
|
|
8
|
-
return new Promise<void>((resolve, reject) => {
|
|
9
|
-
archive
|
|
10
|
-
.glob('**/*', { cwd: sourceDir, ignore: ['node_modules/**'] })
|
|
11
|
-
.on('error', err => reject(err))
|
|
12
|
-
.pipe(stream)
|
|
13
|
-
|
|
14
|
-
stream.on('close', () => resolve())
|
|
15
|
-
archive.finalize()
|
|
16
|
-
})
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default zipDirectory
|
package/src/utils/EJSUtils.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import fs from 'node:fs'
|
|
3
|
-
import type { Data } from 'ejs'
|
|
4
|
-
import ejs from 'ejs'
|
|
5
|
-
import type { BuiltInParserName } from 'prettier'
|
|
6
|
-
import { dirname } from 'dirname-filename-esm'
|
|
7
|
-
import { PrettierUtils } from './PrettierUtils'
|
|
8
|
-
|
|
9
|
-
export class EJSUtils {
|
|
10
|
-
static async renderToFile(templateFile: string, outputFile: string, parser: BuiltInParserName, renderOptions: Data) {
|
|
11
|
-
const defineTemplatePath = path.join(dirname(import.meta), '../template', templateFile)
|
|
12
|
-
const defineTemplate = fs.readFileSync(defineTemplatePath, 'utf8')
|
|
13
|
-
// Format the EJS code using Prettier
|
|
14
|
-
const code = ejs.render(defineTemplate, renderOptions)
|
|
15
|
-
const formattedEJSCode = await PrettierUtils.format(code, parser)
|
|
16
|
-
fs.writeFileSync(outputFile, formattedEJSCode)
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { BuiltInParserName } from 'prettier'
|
|
2
|
-
import { format } from 'prettier'
|
|
3
|
-
|
|
4
|
-
export class PrettierUtils {
|
|
5
|
-
static async format(code: string, parser: BuiltInParserName) {
|
|
6
|
-
return format(code, {
|
|
7
|
-
parser,
|
|
8
|
-
tabWidth: 2,
|
|
9
|
-
singleQuote: true,
|
|
10
|
-
})
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import fs from 'node:fs'
|
|
3
|
-
import type { WidgetPackage } from '@widget-js/core'
|
|
4
|
-
|
|
5
|
-
export class WidgetPackageUtils {
|
|
6
|
-
static getRootDir(widgetPackage: WidgetPackage) {
|
|
7
|
-
const widgetRootDir = path.join(process.cwd(), widgetPackage.devOptions?.folder ?? './src/widgets')
|
|
8
|
-
if (!fs.existsSync(widgetRootDir)) {
|
|
9
|
-
fs.mkdirSync(widgetRootDir, { recursive: true })
|
|
10
|
-
}
|
|
11
|
-
return widgetRootDir
|
|
12
|
-
}
|
|
13
|
-
}
|
package/src/utils.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import process from 'node:process'
|
|
3
|
-
import fs from 'node:fs'
|
|
4
|
-
import packageJson from 'package-json'
|
|
5
|
-
|
|
6
|
-
export const widgetPackages: { [key: string]: string } = {
|
|
7
|
-
'@widget-js/core': '',
|
|
8
|
-
'@widget-js/vue3': '',
|
|
9
|
-
'@widget-js/cli': '',
|
|
10
|
-
'@widget-js/utils': '',
|
|
11
|
-
'@widget-js/vite-plugin-widget': '',
|
|
12
|
-
}
|
|
13
|
-
export default function exit(code: number = 0) {
|
|
14
|
-
if (exports.exitProcess) {
|
|
15
|
-
process.exit(code)
|
|
16
|
-
}
|
|
17
|
-
else if (code > 0) {
|
|
18
|
-
throw new Error(`Process exited with code ${code}`)
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export function getPackagePath() {
|
|
23
|
-
return path.join(process.cwd(), 'package.json')
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export class Utils {
|
|
27
|
-
static async getRemoteVersion(packageName: string): Promise<string> {
|
|
28
|
-
const metadata = await packageJson(packageName)
|
|
29
|
-
const version = metadata.version
|
|
30
|
-
return version as string
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
static getPackagePath() {
|
|
34
|
-
return path.join(process.cwd(), 'package.json')
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
static getPackageJson() {
|
|
38
|
-
return JSON.parse(fs.readFileSync(this.getPackagePath()).toString())
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
static getPackageVersion() {
|
|
42
|
-
return this.getPackageJson().version
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* 检查包名是否合法,包名格式一般为 倒置域名与java包类似
|
|
47
|
-
* 1.只能包含小写字母、数字、下划线、小数点。
|
|
48
|
-
* 2.不能以小数点结尾
|
|
49
|
-
* 3.不能包含连续的小数点
|
|
50
|
-
* @param name
|
|
51
|
-
*/
|
|
52
|
-
static checkPackageName(name: string): boolean {
|
|
53
|
-
// 检查包名是否以小数点结尾
|
|
54
|
-
if (name.endsWith('.')) {
|
|
55
|
-
return false
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// 检查包名是否包含无效字符
|
|
59
|
-
const invalidCharacters = /[\\/:*?\"<>| ]/g
|
|
60
|
-
if (name.match(invalidCharacters)) {
|
|
61
|
-
return false
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// 检查包名是否至少包含一个子段
|
|
65
|
-
const segments = name.split('.')
|
|
66
|
-
if (segments.length < 2) {
|
|
67
|
-
return false
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// 检查每个子段是否以字母开头
|
|
71
|
-
for (const segment of segments) {
|
|
72
|
-
if (!segment.match(/^[a-z]/)) {
|
|
73
|
-
return false
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// 检查子段是否包含连续的小数点
|
|
77
|
-
if (segment.includes('.' + '.')) {
|
|
78
|
-
return false
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return true
|
|
83
|
-
}
|
|
84
|
-
}
|
package/test/index.test.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import { expect } from 'vitest'
|
|
3
|
-
import { minimatch } from 'minimatch'
|
|
4
|
-
|
|
5
|
-
it('minimatch', () => {
|
|
6
|
-
const fileName = path.basename('C:\\Users\\rtuge\\Desktop\\github\\widgetjs\\packages\\@widget-js\\cli\\template\\Widget.ejs')
|
|
7
|
-
expect(minimatch(fileName, '*.ejs')).toBeTruthy()
|
|
8
|
-
expect(minimatch(fileName, '*.ts')).toBeFalsy()
|
|
9
|
-
})
|
package/tsconfig.json
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
|
4
|
-
|
|
5
|
-
/* Basic Options */
|
|
6
|
-
// "incremental": true, /* Enable incremental compilation */
|
|
7
|
-
"target": "ESNext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
|
|
8
|
-
"lib": ["esnext"],
|
|
9
|
-
"rootDir": "src",
|
|
10
|
-
"module": "esnext",
|
|
11
|
-
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
12
|
-
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
13
|
-
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
14
|
-
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
15
|
-
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
16
|
-
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
17
|
-
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
18
|
-
|
|
19
|
-
/* Additional Checks */
|
|
20
|
-
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
21
|
-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
22
|
-
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
23
|
-
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
24
|
-
|
|
25
|
-
/* Module Resolution Options */
|
|
26
|
-
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
|
|
27
|
-
"types": ["node"], /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
|
28
|
-
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
29
|
-
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
30
|
-
// "checkJs": true, /* Report errors in .js files. */
|
|
31
|
-
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
32
|
-
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
33
|
-
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
|
34
|
-
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
|
35
|
-
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
36
|
-
// "outDir": "./", /* Redirect output structure to the directory. */
|
|
37
|
-
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
38
|
-
// "composite": true, /* Enable project compilation */
|
|
39
|
-
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
|
40
|
-
// "removeComments": true, /* Do not emit comments to output. */
|
|
41
|
-
// "noEmit": true, /* Do not emit outputs. */
|
|
42
|
-
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
43
|
-
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
44
|
-
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
45
|
-
|
|
46
|
-
/* Strict Type-Checking Options */
|
|
47
|
-
"strict": true /* Enable all strict type-checking options. */,
|
|
48
|
-
"outDir": "lib",
|
|
49
|
-
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
50
|
-
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
51
|
-
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
52
|
-
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
53
|
-
/* Type declaration files to be included in compilation. */
|
|
54
|
-
// "types": ["element-plus/global"],
|
|
55
|
-
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
56
|
-
// "resolveJsonModule": true,
|
|
57
|
-
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
58
|
-
"forceConsistentCasingInFileNames": true,
|
|
59
|
-
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
60
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
61
|
-
|
|
62
|
-
/* Source Map Options */
|
|
63
|
-
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
64
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
65
|
-
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
66
|
-
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
67
|
-
|
|
68
|
-
/* Experimental Options */
|
|
69
|
-
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
70
|
-
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
71
|
-
|
|
72
|
-
/* Advanced Options */
|
|
73
|
-
|
|
74
|
-
/* Skip type checking of declaration files. */
|
|
75
|
-
"skipLibCheck": true /* Disallow inconsistently-cased references to the same file. */
|
|
76
|
-
},
|
|
77
|
-
"include": ["src/**/*"]
|
|
78
|
-
}
|
package/tsup.config.ts
DELETED
package/vite.config.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { URL, fileURLToPath } from 'node:url'
|
|
2
|
-
import widget from '@widget-js/vite-plugin-widget'
|
|
3
|
-
|
|
4
|
-
import { defineConfig } from 'vite'
|
|
5
|
-
import vue from '@vitejs/plugin-vue'
|
|
6
|
-
|
|
7
|
-
// https://vitejs.dev/config/
|
|
8
|
-
export default defineConfig({
|
|
9
|
-
plugins: [vue(), widget()],
|
|
10
|
-
resolve: {
|
|
11
|
-
alias: {
|
|
12
|
-
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
})
|
package/widget.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cn.widgetjs.widgets",
|
|
3
|
-
"author": "Widget JS",
|
|
4
|
-
"homepage": "https://widgetjs.cn",
|
|
5
|
-
"description": {
|
|
6
|
-
"zh": "内置基础组件"
|
|
7
|
-
},
|
|
8
|
-
"entry": "index.html#",
|
|
9
|
-
"version": "0.0.1",
|
|
10
|
-
"devOptions": {
|
|
11
|
-
"useStorybook": true,
|
|
12
|
-
"folder": "./test/"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|