labull-framework 1.1.1 → 1.4.0
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/README.md +5 -1
- package/dist/magic-block.js +1165 -1184
- package/dist/style.css +1 -1
- package/dist/types/magic-block-localfs.d.ts +4 -1
- package/dist/types/magic-block-manifest.d.ts +0 -2
- package/package.json +1 -1
|
@@ -12,8 +12,11 @@ export interface ScanRules {
|
|
|
12
12
|
blocksDir: string;
|
|
13
13
|
/** 认得的文本扩展名(其余一律跳过并报一条)。 */
|
|
14
14
|
textExt: string[];
|
|
15
|
-
/** 爬目录时跳过的目录名(依赖 / 构建产物 /
|
|
15
|
+
/** 爬目录时跳过的目录名(依赖 / 构建产物 / 缓存 / 平台铺的例子 / 你自己的草稿区)。 */
|
|
16
16
|
skipDirs: string[];
|
|
17
|
+
/** **你自己的地盘**(`.exclude`,老名字 `excluded`):里面的东西不进库,清空时整棵放行。
|
|
18
|
+
* 🔴 名字从后端来(`sdk.EXCLUDED_DIRS`):前端不抄字面量,抄了就会漂。 */
|
|
19
|
+
scratchDirs: string[];
|
|
17
20
|
/** 平台生成物:**静默跳过**(不进库)。 */
|
|
18
21
|
platformFiles: string[];
|
|
19
22
|
/** 开发目录**顶层**直接忽略的文件名。 */
|
|
@@ -28,8 +28,6 @@ export declare const REQUIRES_SURFACE = "surface";
|
|
|
28
28
|
export type ManifestKey = (typeof MANIFEST_KEYS)[number];
|
|
29
29
|
/** 可读名的字符上限(与后端 `NAME_MAX` 同一份)。 */
|
|
30
30
|
export declare const NAME_MAX = 40;
|
|
31
|
-
/** 这段**包内相对路径**算不算"你自己的东西"(每一段都看:`excluded/_test.py` ⇒ 算)。 */
|
|
32
|
-
export declare function isExcluded(name: string): boolean;
|
|
33
31
|
/** 清单里 `name` 的形状(🔴 这里**不能只判长度**:`' '` 长度合法但它是空的)。 */
|
|
34
32
|
export declare function validName(value: string): boolean;
|
|
35
33
|
/** 清单解析出来的字段(缺的 / 空的**不会**出现在这里)。 */
|