@coze-arch/cli 0.0.28 → 0.0.30-alpha.37325a
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/__templates__/expo/.coze +1 -0
- package/lib/__templates__/expo/client/heroui/primitives/input-otp/input-otp.utils.ts +1 -0
- package/lib/__templates__/native-static/.coze +1 -0
- package/lib/__templates__/nextjs/.coze +1 -0
- package/lib/__templates__/nextjs/package.json +4 -1
- package/lib/__templates__/nextjs/pnpm-lock.yaml +396 -12
- package/lib/__templates__/nextjs/stylelint.config.mjs +17 -0
- package/lib/__templates__/nuxt-vue/.coze +1 -0
- package/lib/__templates__/nuxt-vue/package.json +4 -1
- package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +500 -12
- package/lib/__templates__/nuxt-vue/stylelint.config.mjs +18 -0
- package/lib/__templates__/taro/.coze +1 -0
- package/lib/__templates__/taro/package.json +4 -1
- package/lib/__templates__/taro/pnpm-lock.yaml +324 -750
- package/lib/__templates__/taro/pnpm-workspace.yaml +6 -0
- package/lib/__templates__/vite/.coze +1 -0
- package/lib/__templates__/vite/package.json +4 -1
- package/lib/__templates__/vite/pnpm-lock.yaml +597 -0
- package/lib/__templates__/vite/stylelint.config.mjs +18 -0
- package/lib/cli.js +10 -14
- package/package.json +6 -5
|
@@ -23,6 +23,7 @@ export const REGEXP_ONLY_DIGITS_AND_CHARS = '^[a-zA-Z0-9]+$';
|
|
|
23
23
|
export function defaultPasteTransformer(maxLength: number) {
|
|
24
24
|
return (pasted: string): string => {
|
|
25
25
|
// Match exactly maxLength digits, not preceded or followed by another digit
|
|
26
|
+
// eslint-disable-next-line @coze-arch/no-regexp-lookbehind -- Expo/React Native template, runs on Hermes (supports lookbehind)
|
|
26
27
|
const otpRegex = new RegExp(`(?<!\\d)(\\d{${maxLength}})(?!\\d)`);
|
|
27
28
|
const match = pasted.match(otpRegex);
|
|
28
29
|
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
"preinstall": "npx only-allow pnpm",
|
|
9
9
|
"lint": "eslint",
|
|
10
10
|
"lint:build": "eslint . --quiet",
|
|
11
|
+
"lint:style": "stylelint \"src/**/*.css\"",
|
|
11
12
|
"start": "bash ./scripts/start.sh",
|
|
12
13
|
"ts-check": "tsc -p tsconfig.json",
|
|
13
|
-
"validate": "pnpm run --parallel '/^(ts-check|lint:build)$/'"
|
|
14
|
+
"validate": "pnpm run --parallel '/^(ts-check|lint:build|lint:style)$/'"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"@aws-sdk/client-s3": "^3.958.0",
|
|
@@ -83,6 +84,8 @@
|
|
|
83
84
|
"only-allow": "^1.2.2",
|
|
84
85
|
"react-dev-inspector": "^2.0.1",
|
|
85
86
|
"shadcn": "latest",
|
|
87
|
+
"stylelint": "^16.4.0",
|
|
88
|
+
"stylelint-config-standard": "^38.0.0",
|
|
86
89
|
"tailwindcss": "^4",
|
|
87
90
|
"tsup": "^8.3.5",
|
|
88
91
|
"tsx": "^4.19.2",
|