@devflow-tools/plugin-taro 0.11.0 → 0.12.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devflow-tools/plugin-taro",
3
- "version": "0.11.0",
3
+ "version": "0.12.6",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -26,5 +26,5 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
- "gitHead": "ff6ac69b0f3cc95cb32ffe8bcbf21b24767aa914"
29
+ "gitHead": "d544427472016eb332c6c2107f0fc98d8ae59c14"
30
30
  }
@@ -1,10 +0,0 @@
1
- export declare function generatePage(params: {
2
- pageName: string;
3
- route?: string;
4
- }): Promise<{
5
- content: Array<{
6
- type: "text";
7
- text: string;
8
- }>;
9
- }>;
10
- //# sourceMappingURL=new-page.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-page.d.ts","sourceRoot":"","sources":["../../src/analyzers/new-page.ts"],"names":[],"mappings":"AAAA,wBAAsB,YAAY,CAAC,MAAM,EAAE;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CA2B9D"}
@@ -1,28 +0,0 @@
1
- export async function generatePage(params) {
2
- const name = params.pageName || 'index';
3
- const route = params.route || `pages/${name}/${name}`;
4
- return {
5
- content: [{
6
- type: "text",
7
- text: JSON.stringify({
8
- pageName: name,
9
- route,
10
- config: `export default definePageConfig({
11
- navigationBarTitleText: '${name}',
12
- })`,
13
- component: `import { View, Text } from '@tarojs/components';
14
- import './${name}.scss';
15
-
16
- export default function ${name.charAt(0).toUpperCase() + name.slice(1)}() {
17
- return (
18
- <View className="${name}">
19
- <Text>${name} page</Text>
20
- </View>
21
- );
22
- }`,
23
- suggestion: `Taro page created at ${route}. Ensure route is registered in app.config.`,
24
- }, null, 2),
25
- }],
26
- };
27
- }
28
- //# sourceMappingURL=new-page.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-page.js","sourceRoot":"","sources":["../../src/analyzers/new-page.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,MAGlC;IACC,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,IAAI,OAAO,CAAC;IACxC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,SAAS,IAAI,IAAI,IAAI,EAAE,CAAC;IAEtD,OAAO;QACL,OAAO,EAAE,CAAC;gBACR,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;oBACnB,QAAQ,EAAE,IAAI;oBACd,KAAK;oBACL,MAAM,EAAE;6BACa,IAAI;GAC9B;oBACK,SAAS,EAAE;YACP,IAAI;;0BAEU,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;;uBAE/C,IAAI;cACb,IAAI;;;EAGhB;oBACM,UAAU,EAAE,wBAAwB,KAAK,6CAA6C;iBACvF,EAAE,IAAI,EAAE,CAAC,CAAC;aACZ,CAAC;KACH,CAAC;AACJ,CAAC"}
@@ -1,4 +0,0 @@
1
- export interface ProjectContext {
2
- projectRoot: string;
3
- }
4
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/analyzers/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/analyzers/types.ts"],"names":[],"mappings":""}
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type { DevFlowPlugin } from "@devflow-tools/sdk";
2
- export declare const taroPlugin: DevFlowPlugin;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,eAAO,MAAM,UAAU,EAAE,aAiyCxB,CAAC"}