@clamjs/utils
Advanced tools
Comparing version 0.0.3-beta.11 to 0.0.3
import { createRequire } from 'module'; | ||
export { a as default } from '../chunk-PUCB4KUK.js'; | ||
import '../chunk-MQB3DSMS.js'; | ||
export { a as default } from '../chunk-I775FQFO.js'; | ||
import '../chunk-6P5BJAZE.js'; | ||
@@ -5,0 +5,0 @@ createRequire(import.meta.url); |
import { createRequire } from 'module'; | ||
import { a } from '../chunk-PUCB4KUK.js'; | ||
export { a as ToolkitList } from '../chunk-MQB3DSMS.js'; | ||
import { a } from '../chunk-I775FQFO.js'; | ||
export { a as ToolkitList } from '../chunk-6P5BJAZE.js'; | ||
@@ -5,0 +5,0 @@ createRequire(import.meta.url); |
@@ -16,19 +16,29 @@ import { ValueOf } from 'type-fest'; | ||
} | ||
/** Dev 类配置项 */ | ||
/** | ||
* Dev 类配置项 | ||
* | ||
* Key 值请按照字典序排序 | ||
*/ | ||
interface ClamConfigDev { | ||
/** | ||
* 自定义 dev server 的端口 port | ||
* 是否自动打开浏览器 | ||
* | ||
* @default 11000 | ||
* @default true | ||
*/ | ||
port?: number; | ||
openBrowser?: boolean; | ||
/** | ||
* 是否开启严格端口模式 | ||
* 是否自动打开新的浏览器实例 | ||
* | ||
* 开启后,如果端口被占用,会直接报错;未开启时如果端口占用,会自动尝试下一个端口 | ||
* Remote 模式在已有窗口打开;普通 dev 模式在新浏览器实例窗口打开(用于自动化代理) | ||
* | ||
* @default false | ||
* @default undefined | ||
*/ | ||
strictPort?: boolean; | ||
openNewBrowser?: boolean; | ||
/** | ||
* 自定义 dev server 的端口 port | ||
* | ||
* @default 11000 | ||
*/ | ||
port?: number; | ||
/** | ||
* 是否开启远程调试模式 | ||
@@ -47,2 +57,16 @@ * | ||
remoteHost?: string; | ||
/** | ||
* Mtop 请求命中 mock 逻辑时,将响应数据展示在日志中 | ||
* | ||
* @default true | ||
*/ | ||
showMtopMockLog?: boolean; | ||
/** | ||
* 是否开启严格端口模式 | ||
* | ||
* 开启后,如果端口被占用,会直接报错;未开启时如果端口占用,会自动尝试下一个端口 | ||
* | ||
* @default false | ||
*/ | ||
strictPort?: boolean; | ||
} | ||
@@ -49,0 +73,0 @@ interface ClamConfig { |
import { createRequire } from 'module'; | ||
export { a as ToolkitList } from '../chunk-MQB3DSMS.js'; | ||
export { a as ToolkitList } from '../chunk-6P5BJAZE.js'; | ||
@@ -4,0 +4,0 @@ createRequire(import.meta.url); |
@@ -32,3 +32,2 @@ import { NpmPackageJson } from './npm.js'; | ||
*/ | ||
declare const clamjsDir: string; | ||
/** | ||
@@ -44,3 +43,2 @@ * Clam源码 packages dirname | ||
declare const getAbcJson: (interrupt?: boolean) => BuilderJson; | ||
declare const getClamjsPkgJson: (interrupt?: boolean) => PackageJson; | ||
declare const edithRoot: string; | ||
@@ -60,2 +58,2 @@ declare const edithAccessToken: string; | ||
export { type BuilderJson, EDITH_ENV, type PackageJson, type TsconfigJson, clamjsDir, clamjsPackagesDir, dirname, edithAccessToken, edithRoot, filename, folderName, getAbcJson, getClamjsPkgJson, getGitRepoInfo, getPkgJson, getProcessEnv, getTscJson, pwd, root }; | ||
export { type BuilderJson, EDITH_ENV, type PackageJson, type TsconfigJson, clamjsPackagesDir, dirname, edithAccessToken, edithRoot, filename, folderName, getAbcJson, getGitRepoInfo, getPkgJson, getProcessEnv, getTscJson, pwd, root }; |
import { createRequire } from 'module'; | ||
export { I as EDITH_ENV, z as clamjsDir, A as clamjsPackagesDir, y as dirname, H as edithAccessToken, G as edithRoot, x as filename, B as folderName, E as getAbcJson, F as getClamjsPkgJson, K as getGitRepoInfo, D as getPkgJson, J as getProcessEnv, C as getTscJson, w as pwd, v as root } from './chunk-WQWXKVS7.js'; | ||
export { G as EDITH_ENV, z as clamjsPackagesDir, y as dirname, F as edithAccessToken, E as edithRoot, x as filename, A as folderName, D as getAbcJson, I as getGitRepoInfo, C as getPkgJson, H as getProcessEnv, B as getTscJson, w as pwd, v as root } from './chunk-54T2NNSL.js'; | ||
@@ -4,0 +4,0 @@ createRequire(import.meta.url); |
import { createRequire } from 'module'; | ||
export { b as getEdithProxyApi, a as getEdithUser } from './chunk-JTZBF3AE.js'; | ||
import './chunk-WQWXKVS7.js'; | ||
export { b as getEdithProxyApi, a as getEdithUser } from './chunk-ETAGUNCG.js'; | ||
import './chunk-54T2NNSL.js'; | ||
@@ -5,0 +5,0 @@ createRequire(import.meta.url); |
import { createRequire } from 'module'; | ||
import { b } from './chunk-WQWXKVS7.js'; | ||
import { b } from './chunk-54T2NNSL.js'; | ||
import u from '@clamjs/logger'; | ||
@@ -4,0 +4,0 @@ import { $ } from 'execa'; |
import { createRequire } from 'module'; | ||
export { p as CLAM_BOT_INFO, u as checkoutMainBranch, q as commit, o as createBranch, i as createProject, k as getCommitId, j as getCurrentBranch, t as getGitOriginUrl, h as getGroup, s as getLatestGitTags, n as getOriginMainBranch, g as getProject, l as needCommit, m as needPush, r as push } from './chunk-WQWXKVS7.js'; | ||
export { p as CLAM_BOT_INFO, u as checkoutMainBranch, q as commit, o as createBranch, i as createProject, k as getCommitId, j as getCurrentBranch, t as getGitOriginUrl, h as getGroup, s as getLatestGitTags, n as getOriginMainBranch, g as getProject, l as needCommit, m as needPush, r as push } from './chunk-54T2NNSL.js'; | ||
@@ -4,0 +4,0 @@ createRequire(import.meta.url); |
import { createRequire } from 'module'; | ||
import { e, D } from './chunk-WQWXKVS7.js'; | ||
import { e, C } from './chunk-54T2NNSL.js'; | ||
import m from 'path'; | ||
@@ -8,3 +8,3 @@ import g from 'got'; | ||
createRequire(import.meta.url); | ||
var a="https://registry.anpm.alibaba-inc.com",b=async r=>{try{return await g.get(`${a}/${r}`).json()}catch{return {}}},l=async(r,n="latest")=>{try{return await g(`${a}/${r}/${n}`).json()}catch(t){let s=e(t);throw new Error(`getNpmByVersion ${r}@version \u5931\u8D25\uFF0C${s}`)}};async function h(r){let n=r.map(async e=>l(e,"latest").then(c=>({key:e,version:c.version}))),t=await Promise.all(n),s={};return t.forEach(e=>{s[e.key]=e.version;}),s}function v(r){let n=D(!1,r),t;if(n.exports){let s=exports(n,".");s&&s.length&&([t]=s);}else t=n.module||n.main;if(!t)throw new Error(`\u672A\u627E\u5230\u5165\u53E3\u6587\u4EF6\uFF0CpkgPath: ${r}`);return m.join(r,t)} | ||
var a="https://registry.anpm.alibaba-inc.com",b=async r=>{try{return await g.get(`${a}/${r}`).json()}catch{return {}}},l=async(r,n="latest")=>{try{return await g(`${a}/${r}/${n}`).json()}catch(t){let s=e(t);throw new Error(`getNpmByVersion ${r}@version \u5931\u8D25\uFF0C${s}`)}};async function h(r){let n=r.map(async e=>l(e,"latest").then(c=>({key:e,version:c.version}))),t=await Promise.all(n),s={};return t.forEach(e=>{s[e.key]=e.version;}),s}function v(r){let n=C(!1,r),t;if(n.exports){let s=exports(n,".");s&&s.length&&([t]=s);}else t=n.module||n.main;if(!t)throw new Error(`\u672A\u627E\u5230\u5165\u53E3\u6587\u4EF6\uFF0CpkgPath: ${r}`);return m.join(r,t)} | ||
@@ -11,0 +11,0 @@ export { h as getLatestVersions, l as getNpmByVersion, b as getNpmInfo, a as registry, v as resovlePkgEntry }; |
import { createRequire } from 'module'; | ||
export { a as createO2App, b as deleteO2App, d as getO2App, e as getO2AppChanges, g as getO2AppIterationVersions, f as getO2AppIterations, c as updateO2App } from '../chunk-FVR4R6IJ.js'; | ||
import '../chunk-5GHDA5NX.js'; | ||
import '../chunk-JTZBF3AE.js'; | ||
import '../chunk-WQWXKVS7.js'; | ||
export { a as createO2App, b as deleteO2App, d as getO2App, e as getO2AppChanges, g as getO2AppIterationVersions, f as getO2AppIterations, c as updateO2App } from '../chunk-X6OTMO3P.js'; | ||
import '../chunk-TQMIKBVQ.js'; | ||
import '../chunk-ETAGUNCG.js'; | ||
import '../chunk-54T2NNSL.js'; | ||
@@ -7,0 +7,0 @@ createRequire(import.meta.url); |
import { createRequire } from 'module'; | ||
export { a as O2_CLIENT_TOKEN, b as getO2Api, c as getO2BucApi, d as getO2User } from '../chunk-5GHDA5NX.js'; | ||
import '../chunk-JTZBF3AE.js'; | ||
import '../chunk-WQWXKVS7.js'; | ||
export { a as O2_CLIENT_TOKEN, b as getO2Api, c as getO2BucApi, d as getO2User } from '../chunk-TQMIKBVQ.js'; | ||
import '../chunk-ETAGUNCG.js'; | ||
import '../chunk-54T2NNSL.js'; | ||
@@ -6,0 +6,0 @@ createRequire(import.meta.url); |
import { createRequire } from 'module'; | ||
export { a as createO2Change, b as getO2Change } from '../chunk-RMY6ESZB.js'; | ||
import '../chunk-FVR4R6IJ.js'; | ||
import '../chunk-5GHDA5NX.js'; | ||
import '../chunk-JTZBF3AE.js'; | ||
import '../chunk-WQWXKVS7.js'; | ||
export { a as createO2Change, b as getO2Change } from '../chunk-D7DXCSCD.js'; | ||
import '../chunk-X6OTMO3P.js'; | ||
import '../chunk-TQMIKBVQ.js'; | ||
import '../chunk-ETAGUNCG.js'; | ||
import '../chunk-54T2NNSL.js'; | ||
@@ -8,0 +8,0 @@ createRequire(import.meta.url); |
import { createRequire } from 'module'; | ||
export { a as cloudBuild } from '../chunk-OG3FOH5V.js'; | ||
import '../chunk-5GHDA5NX.js'; | ||
import '../chunk-JTZBF3AE.js'; | ||
import '../chunk-WQWXKVS7.js'; | ||
export { a as cloudBuild } from '../chunk-NOTQOLO3.js'; | ||
import '../chunk-TQMIKBVQ.js'; | ||
import '../chunk-ETAGUNCG.js'; | ||
import '../chunk-54T2NNSL.js'; | ||
@@ -7,0 +7,0 @@ createRequire(import.meta.url); |
import { createRequire } from 'module'; | ||
export { c as createO2Iteration, b as getO2Iteration, a as getO2IterationById, d as o2IterationBindChange } from '../chunk-ROFQ5AYB.js'; | ||
export { a as createO2Change, b as getO2Change } from '../chunk-RMY6ESZB.js'; | ||
export { a as createO2App, b as deleteO2App, d as getO2App, e as getO2AppChanges, g as getO2AppIterationVersions, f as getO2AppIterations, c as updateO2App } from '../chunk-FVR4R6IJ.js'; | ||
export { a as cloudBuild } from '../chunk-OG3FOH5V.js'; | ||
export { b as getO2Api, d as getO2User } from '../chunk-5GHDA5NX.js'; | ||
import '../chunk-JTZBF3AE.js'; | ||
import '../chunk-WQWXKVS7.js'; | ||
export { c as createO2Iteration, b as getO2Iteration, a as getO2IterationById, d as o2IterationBindChange } from '../chunk-QLRRO2BR.js'; | ||
export { a as createO2Change, b as getO2Change } from '../chunk-D7DXCSCD.js'; | ||
export { a as createO2App, b as deleteO2App, d as getO2App, e as getO2AppChanges, g as getO2AppIterationVersions, f as getO2AppIterations, c as updateO2App } from '../chunk-X6OTMO3P.js'; | ||
export { a as cloudBuild } from '../chunk-NOTQOLO3.js'; | ||
export { b as getO2Api, d as getO2User } from '../chunk-TQMIKBVQ.js'; | ||
import '../chunk-ETAGUNCG.js'; | ||
import '../chunk-54T2NNSL.js'; | ||
@@ -10,0 +10,0 @@ createRequire(import.meta.url); |
import { createRequire } from 'module'; | ||
export { c as createO2Iteration, b as getO2Iteration, a as getO2IterationById, d as o2IterationBindChange } from '../chunk-ROFQ5AYB.js'; | ||
import '../chunk-FVR4R6IJ.js'; | ||
import '../chunk-5GHDA5NX.js'; | ||
import '../chunk-JTZBF3AE.js'; | ||
import '../chunk-WQWXKVS7.js'; | ||
export { c as createO2Iteration, b as getO2Iteration, a as getO2IterationById, d as o2IterationBindChange } from '../chunk-QLRRO2BR.js'; | ||
import '../chunk-X6OTMO3P.js'; | ||
import '../chunk-TQMIKBVQ.js'; | ||
import '../chunk-ETAGUNCG.js'; | ||
import '../chunk-54T2NNSL.js'; | ||
@@ -8,0 +8,0 @@ createRequire(import.meta.url); |
import { createRequire } from 'module'; | ||
export { c as exists, a as getJson, e as getUnknowErrorMsg, d as isGitRepo, b as runShell, f as typedObjectKeys } from './chunk-WQWXKVS7.js'; | ||
export { c as exists, a as getJson, e as getUnknowErrorMsg, d as isGitRepo, b as runShell, f as typedObjectKeys } from './chunk-54T2NNSL.js'; | ||
@@ -4,0 +4,0 @@ createRequire(import.meta.url); |
{ | ||
"name": "@clamjs/utils", | ||
"version": "0.0.3-beta.11", | ||
"version": "0.0.3", | ||
"description": "Internal tool library utilized by clamjs", | ||
@@ -17,3 +17,5 @@ "bugs": { | ||
"./codebase": { | ||
"default": "./dist/codebase.js", | ||
"import": "./dist/codebase.js", | ||
"require": "./dist/codebase.js", | ||
"default": "./src/codebase.ts", | ||
"types": "./dist/codebase.d.ts" | ||
@@ -20,0 +22,0 @@ }, |
141397
1040