@atomicsmash/cli 9.0.1 → 10.0.0-beta.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/package.json +4 -38
- package/dist/commands/blocks.d.ts +0 -77
- package/dist/commands/blocks.d.ts.map +0 -1
- package/dist/commands/blocks.js +0 -550
- package/dist/external/utils.cjs +0 -230
- package/dist/external/utils.d.cts +0 -19
- package/dist/external/utils.d.cts.map +0 -1
- package/dist/external/wordpress.webpack.config.cjs +0 -438
- package/dist/external/wordpress.webpack.config.d.cts +0 -6
- package/dist/external/wordpress.webpack.config.d.cts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomicsmash/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0-beta.0",
|
|
4
4
|
"description": "A collection of CLI tools by Atomic Smash.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://www.atomicsmash.co.uk/",
|
|
@@ -41,50 +41,16 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@atomicsmash/date-php": "^2.1.0",
|
|
44
|
-
"@
|
|
45
|
-
"@wordpress/babel-preset-default": "^8.35.0",
|
|
46
|
-
"@wordpress/dependency-extraction-webpack-plugin": "^6.35.0",
|
|
47
|
-
"@wordpress/postcss-plugins-preset": "^5.35.0",
|
|
48
|
-
"autoprefixer": "^10.4.22",
|
|
49
|
-
"babel-loader": "^9.2.1",
|
|
50
|
-
"browserslist": "^4.28.0",
|
|
51
|
-
"chalk": "^4.1.2",
|
|
52
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
53
|
-
"copy-webpack-plugin": "^12.0.2",
|
|
44
|
+
"@types/vinyl": "^2.0.12",
|
|
54
45
|
"cosmiconfig": "^9.0.0",
|
|
55
|
-
"css-loader": "^7.1.2",
|
|
56
|
-
"cssnano": "^7.1.2",
|
|
57
|
-
"fast-glob": "^3.3.3",
|
|
58
46
|
"glob-promise": "^6.0.7",
|
|
59
|
-
"mini-css-extract-plugin": "^2.9.4",
|
|
60
|
-
"path": "^0.12.7",
|
|
61
|
-
"postcss": "^8.5.6",
|
|
62
|
-
"postcss-load-config": "^6.0.1",
|
|
63
|
-
"postcss-loader": "^8.2.0",
|
|
64
|
-
"react-refresh": "^0.14.2",
|
|
65
|
-
"read-pkg-up": "^7.0.1",
|
|
66
|
-
"rtlcss-webpack-plugin": "^4.0.7",
|
|
67
|
-
"sass": "^1.94.1",
|
|
68
|
-
"sass-loader": "^16.0.6",
|
|
69
|
-
"schema-utils": "^4.3.3",
|
|
70
|
-
"source-map-loader": "^3.0.2",
|
|
71
47
|
"svg-sprite": "^2.0.4",
|
|
72
|
-
"terser-webpack-plugin": "^5.3.14",
|
|
73
|
-
"tsconfig-paths": "^4.2.0",
|
|
74
|
-
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
|
75
|
-
"tsx": "^4.20.6",
|
|
76
48
|
"vinyl": "^3.0.1",
|
|
77
|
-
"webpack": "^5.103.0",
|
|
78
|
-
"webpack-bundle-analyzer": "^4.10.2",
|
|
79
49
|
"yargs": "^18.0.0"
|
|
80
50
|
},
|
|
81
51
|
"devDependencies": {
|
|
82
|
-
"@atomicsmash/blocks-helpers": "^7.
|
|
83
|
-
"@types/
|
|
84
|
-
"@types/svg-sprite": "^0.0.39",
|
|
85
|
-
"@types/vinyl": "^2.0.12",
|
|
86
|
-
"@types/webpack": "^5.28.5",
|
|
87
|
-
"type-fest": "^4.41.0"
|
|
52
|
+
"@atomicsmash/blocks-helpers": "^7.2.0-beta.0",
|
|
53
|
+
"@types/svg-sprite": "^0.0.39"
|
|
88
54
|
},
|
|
89
55
|
"peerDependencies": {
|
|
90
56
|
"dotenv": "^16.6.1",
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type { YargsInstance } from "../cli.js";
|
|
2
|
-
import type { BlockMetaData } from "@atomicsmash/blocks-helpers";
|
|
3
|
-
import type { ArgumentsCamelCase } from "yargs";
|
|
4
|
-
import webpack from "webpack";
|
|
5
|
-
export declare const command = "blocks";
|
|
6
|
-
export declare const describe = "A command to generate WordPress blocks from a src folder.";
|
|
7
|
-
export declare const deprecated = "Please migrate to using the @atomicsmash/compiler package. This command will be removed in the next major version.";
|
|
8
|
-
export declare const builder: (yargs: YargsInstance) => import("yargs").Argv<import("yargs").Omit<{}, "in" | "out" | "tsConfigPath" | "postcssConfigPath" | "watch" | "excludeBlocks" | "excludeRootFiles" | "alwaysCompileRootFiles" | "ignoreWarnings"> & import("yargs").InferredOptionTypes<{
|
|
9
|
-
in: {
|
|
10
|
-
string: true;
|
|
11
|
-
normalize: true;
|
|
12
|
-
description: string;
|
|
13
|
-
};
|
|
14
|
-
out: {
|
|
15
|
-
string: true;
|
|
16
|
-
normalize: true;
|
|
17
|
-
description: string;
|
|
18
|
-
};
|
|
19
|
-
tsConfigPath: {
|
|
20
|
-
string: true;
|
|
21
|
-
normalize: true;
|
|
22
|
-
description: string;
|
|
23
|
-
};
|
|
24
|
-
postcssConfigPath: {
|
|
25
|
-
string: true;
|
|
26
|
-
normalize: true;
|
|
27
|
-
description: string;
|
|
28
|
-
};
|
|
29
|
-
watch: {
|
|
30
|
-
boolean: true;
|
|
31
|
-
default: boolean;
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
34
|
-
excludeBlocks: {
|
|
35
|
-
array: true;
|
|
36
|
-
string: true;
|
|
37
|
-
default: string[];
|
|
38
|
-
description: string;
|
|
39
|
-
};
|
|
40
|
-
excludeRootFiles: {
|
|
41
|
-
array: true;
|
|
42
|
-
string: true;
|
|
43
|
-
default: string[];
|
|
44
|
-
description: string;
|
|
45
|
-
};
|
|
46
|
-
alwaysCompileRootFiles: {
|
|
47
|
-
boolean: true;
|
|
48
|
-
default: boolean;
|
|
49
|
-
description: string;
|
|
50
|
-
};
|
|
51
|
-
ignoreWarnings: {
|
|
52
|
-
boolean: true;
|
|
53
|
-
default: boolean;
|
|
54
|
-
description: string;
|
|
55
|
-
};
|
|
56
|
-
}>>;
|
|
57
|
-
export declare function handler(args: ArgumentsCamelCase<Awaited<ReturnType<typeof builder>["argv"]>>): Promise<void>;
|
|
58
|
-
export declare function getRootFileJSEntryPoints({ srcFolder, excludeRootFiles, }: {
|
|
59
|
-
srcFolder: string;
|
|
60
|
-
excludeRootFiles: string[];
|
|
61
|
-
}): Promise<webpack.EntryObject>;
|
|
62
|
-
export declare function getAllBlocksJSEntryPoints({ srcFolder, blocks, }: {
|
|
63
|
-
srcFolder: string;
|
|
64
|
-
blocks: Record<string, {
|
|
65
|
-
blockFolder: string;
|
|
66
|
-
blockJson: BlockJson;
|
|
67
|
-
}>;
|
|
68
|
-
}): webpack.EntryObject;
|
|
69
|
-
type BlockJson = BlockMetaData<never, never>;
|
|
70
|
-
export declare function getBlockJsonFiles(srcFolder: string, excludeBlocks: string[]): Promise<Record<string, {
|
|
71
|
-
blockFolder: string;
|
|
72
|
-
blockJson: BlockJson;
|
|
73
|
-
}>>;
|
|
74
|
-
export declare function getBlockJsonScriptFields(blockJson: BlockJson): Partial<Pick<BlockJson, "viewScript" | "script" | "editorScript">> | null;
|
|
75
|
-
export declare function getBlockJsonStyleFields(blockJson: BlockJson): Partial<Pick<BlockJson, "editorStyle" | "style" | "viewStyle">> | null;
|
|
76
|
-
export {};
|
|
77
|
-
//# sourceMappingURL=blocks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/commands/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAIjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAwBhD,OAAO,OAAO,MAAM,SAAS,CAAC;AAM9B,eAAO,MAAM,OAAO,WAAW,CAAC;AAChC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