@weapp-core/init 2.1.5 → 3.0.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/dist/index.cjs +491 -304
- package/dist/index.d.cts +71 -41
- package/dist/index.d.ts +71 -41
- package/dist/index.js +488 -301
- package/package.json +1 -1
- package/templates/default/gitignore +34 -0
- package/templates/default/package.json +2 -2
- package/templates/{tdesign/src/components/Navbar/Navbar.json → default/src/components/HelloWorld/HelloWorld.json} +1 -2
- package/templates/default/src/components/HelloWorld/HelloWorld.ts +1 -0
- package/templates/default/src/components/HelloWorld/HelloWorld.wxml +4 -0
- package/templates/default/src/pages/index/index.json +7 -0
- package/templates/default/src/pages/index/index.wxml +1 -1
- package/templates/tailwindcss/gitignore +34 -0
- package/templates/tailwindcss/package.json +3 -3
- package/templates/tdesign/gitignore +34 -0
- package/templates/tdesign/package.json +3 -3
- package/templates/{default/src/components/Navbar/Navbar.json → tdesign/src/components/HelloWorld/HelloWorld.json} +0 -1
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.ts +5 -0
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.wxml +7 -0
- package/templates/tdesign/src/pages/index/index.json +1 -1
- package/templates/tdesign/src/pages/index/index.wxml +6 -10
- package/templates/vant/gitignore +34 -0
- package/templates/vant/package.json +3 -3
- package/templates/default/src/components/Navbar/Navbar.ts +0 -3
- package/templates/default/src/components/Navbar/Navbar.wxml +0 -1
- package/templates/tdesign/src/components/Navbar/Navbar.ts +0 -3
- package/templates/tdesign/src/components/Navbar/Navbar.wxml +0 -0
- /package/templates/default/src/components/{Navbar/Navbar.scss → HelloWorld/HelloWorld.scss} +0 -0
- /package/templates/tdesign/src/components/{Navbar/Navbar.scss → HelloWorld/HelloWorld.scss} +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# dependencies
|
|
2
|
+
node_modules
|
|
3
|
+
.pnp
|
|
4
|
+
.pnp.js
|
|
5
|
+
|
|
6
|
+
# testing
|
|
7
|
+
coverage
|
|
8
|
+
|
|
9
|
+
# next.js
|
|
10
|
+
.next/
|
|
11
|
+
out/
|
|
12
|
+
build
|
|
13
|
+
|
|
14
|
+
# misc
|
|
15
|
+
.DS_Store
|
|
16
|
+
*.pem
|
|
17
|
+
|
|
18
|
+
# debug
|
|
19
|
+
npm-debug.log*
|
|
20
|
+
yarn-debug.log*
|
|
21
|
+
yarn-error.log*
|
|
22
|
+
.pnpm-debug.log*
|
|
23
|
+
|
|
24
|
+
# local env files
|
|
25
|
+
.env.local
|
|
26
|
+
.env.development.local
|
|
27
|
+
.env.test.local
|
|
28
|
+
.env.production.local
|
|
29
|
+
|
|
30
|
+
# turbo
|
|
31
|
+
.turbo
|
|
32
|
+
|
|
33
|
+
dist
|
|
34
|
+
vite.config.ts.timestamp-*.mjs
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Component({})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<view>
|
|
2
|
-
<Navbar />
|
|
3
2
|
<view style="display:flex;align-items:center;justify-content:center;">
|
|
4
3
|
<view>
|
|
5
4
|
<image style="width:200px;height:190px" src="/logo.png" />
|
|
6
5
|
<view bind:tap="onClick">Hello World From Weapp-vite!</view>
|
|
7
6
|
</view>
|
|
8
7
|
</view>
|
|
8
|
+
<HelloWorld></HelloWorld>
|
|
9
9
|
</view>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# dependencies
|
|
2
|
+
node_modules
|
|
3
|
+
.pnp
|
|
4
|
+
.pnp.js
|
|
5
|
+
|
|
6
|
+
# testing
|
|
7
|
+
coverage
|
|
8
|
+
|
|
9
|
+
# next.js
|
|
10
|
+
.next/
|
|
11
|
+
out/
|
|
12
|
+
build
|
|
13
|
+
|
|
14
|
+
# misc
|
|
15
|
+
.DS_Store
|
|
16
|
+
*.pem
|
|
17
|
+
|
|
18
|
+
# debug
|
|
19
|
+
npm-debug.log*
|
|
20
|
+
yarn-debug.log*
|
|
21
|
+
yarn-error.log*
|
|
22
|
+
.pnpm-debug.log*
|
|
23
|
+
|
|
24
|
+
# local env files
|
|
25
|
+
.env.local
|
|
26
|
+
.env.development.local
|
|
27
|
+
.env.test.local
|
|
28
|
+
.env.production.local
|
|
29
|
+
|
|
30
|
+
# turbo
|
|
31
|
+
.turbo
|
|
32
|
+
|
|
33
|
+
dist
|
|
34
|
+
vite.config.ts.timestamp-*.mjs
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"autoprefixer": "^10.4.21",
|
|
30
30
|
"miniprogram-api-typings": "^4.1.0",
|
|
31
31
|
"postcss": "^8.5.6",
|
|
32
|
-
"sass": "^1.93.
|
|
32
|
+
"sass": "^1.93.2",
|
|
33
33
|
"tailwindcss": "^3.4.17",
|
|
34
|
-
"typescript": "^5.9.
|
|
35
|
-
"weapp-tailwindcss": "^4.3.
|
|
34
|
+
"typescript": "^5.9.3",
|
|
35
|
+
"weapp-tailwindcss": "^4.3.3",
|
|
36
36
|
"weapp-vite": "workspace:*"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# dependencies
|
|
2
|
+
node_modules
|
|
3
|
+
.pnp
|
|
4
|
+
.pnp.js
|
|
5
|
+
|
|
6
|
+
# testing
|
|
7
|
+
coverage
|
|
8
|
+
|
|
9
|
+
# next.js
|
|
10
|
+
.next/
|
|
11
|
+
out/
|
|
12
|
+
build
|
|
13
|
+
|
|
14
|
+
# misc
|
|
15
|
+
.DS_Store
|
|
16
|
+
*.pem
|
|
17
|
+
|
|
18
|
+
# debug
|
|
19
|
+
npm-debug.log*
|
|
20
|
+
yarn-debug.log*
|
|
21
|
+
yarn-error.log*
|
|
22
|
+
.pnpm-debug.log*
|
|
23
|
+
|
|
24
|
+
# local env files
|
|
25
|
+
.env.local
|
|
26
|
+
.env.development.local
|
|
27
|
+
.env.test.local
|
|
28
|
+
.env.production.local
|
|
29
|
+
|
|
30
|
+
# turbo
|
|
31
|
+
.turbo
|
|
32
|
+
|
|
33
|
+
dist
|
|
34
|
+
vite.config.ts.timestamp-*.mjs
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"autoprefixer": "^10.4.21",
|
|
33
33
|
"miniprogram-api-typings": "^4.1.0",
|
|
34
34
|
"postcss": "^8.5.6",
|
|
35
|
-
"sass": "^1.93.
|
|
35
|
+
"sass": "^1.93.2",
|
|
36
36
|
"tailwindcss": "^3.4.17",
|
|
37
|
-
"typescript": "^5.9.
|
|
38
|
-
"weapp-tailwindcss": "^4.3.
|
|
37
|
+
"typescript": "^5.9.3",
|
|
38
|
+
"weapp-tailwindcss": "^4.3.3",
|
|
39
39
|
"weapp-vite": "workspace:*"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<view class="flex space-x-8">
|
|
2
|
+
<view class="w-24 h-24 bg-[url(https://vite.icebreaker.top/logo.png)] bg-[length:100%_100%] bg-no-repeat"></view>
|
|
3
|
+
<view class="w-32 h-24 bg-[url(https://vite.icebreaker.top/tw-logo.png)] bg-[length:100%_100%] bg-no-repeat"></view>
|
|
4
|
+
</view>
|
|
5
|
+
<view class="bg-gradient-to-r from-green-400 to-sky-400 bg-clip-text text-xl font-extrabold text-transparent underline">
|
|
6
|
+
weapp-vite & weapp-tailwindcss
|
|
7
|
+
</view>
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
<view class="min-h-screen {{ mode === 'light'?'bg-gray-100 text-slate-800':'bg-gray-900 text-slate-200' }} transition-colors duration-500">
|
|
2
2
|
<view class="flex flex-col items-center pt-20 space-y-10">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<HelloWorld></HelloWorld>
|
|
4
|
+
<view bind:tap="switchMode" class="flex items-center">
|
|
5
|
+
当前模式 {{mode}} 切换模式
|
|
6
|
+
<view class="{{ mode === 'light' ? 'i-mdi-moon-waxing-crescent':'i-mdi-weather-sunny text-white' }} text-2xl"></view>
|
|
6
7
|
</view>
|
|
7
|
-
<view class="bg-gradient-to-r from-green-400 to-sky-400 bg-clip-text text-xl font-extrabold text-transparent underline">
|
|
8
|
-
weapp-vite & weapp-tailwindcss
|
|
9
|
-
</view>
|
|
10
|
-
<view class="{{ mode === 'light' ? 'i-mdi-moon-waxing-crescent':'i-mdi-weather-sunny text-white' }} text-8xl" bind:tap="switchMode"></view>
|
|
11
8
|
<view class="underline" mark:url="https://vite.icebreaker.top" bind:tap="copy">
|
|
12
9
|
https://vite.icebreaker.top
|
|
13
10
|
</view>
|
|
@@ -15,9 +12,8 @@
|
|
|
15
12
|
https://tw.icebreaker.top
|
|
16
13
|
</view>
|
|
17
14
|
<view>
|
|
18
|
-
<t-button theme="primary" ghost
|
|
15
|
+
<t-button theme="primary" ghost bind:tap="handleAction">TDesign Button</t-button>
|
|
19
16
|
</view>
|
|
20
17
|
</view>
|
|
21
|
-
<t-action-sheet id="t-action-sheet"
|
|
18
|
+
<t-action-sheet id="t-action-sheet" bind:selected="handleSelected" />
|
|
22
19
|
</view>
|
|
23
|
-
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# dependencies
|
|
2
|
+
node_modules
|
|
3
|
+
.pnp
|
|
4
|
+
.pnp.js
|
|
5
|
+
|
|
6
|
+
# testing
|
|
7
|
+
coverage
|
|
8
|
+
|
|
9
|
+
# next.js
|
|
10
|
+
.next/
|
|
11
|
+
out/
|
|
12
|
+
build
|
|
13
|
+
|
|
14
|
+
# misc
|
|
15
|
+
.DS_Store
|
|
16
|
+
*.pem
|
|
17
|
+
|
|
18
|
+
# debug
|
|
19
|
+
npm-debug.log*
|
|
20
|
+
yarn-debug.log*
|
|
21
|
+
yarn-error.log*
|
|
22
|
+
.pnpm-debug.log*
|
|
23
|
+
|
|
24
|
+
# local env files
|
|
25
|
+
.env.local
|
|
26
|
+
.env.development.local
|
|
27
|
+
.env.test.local
|
|
28
|
+
.env.production.local
|
|
29
|
+
|
|
30
|
+
# turbo
|
|
31
|
+
.turbo
|
|
32
|
+
|
|
33
|
+
dist
|
|
34
|
+
vite.config.ts.timestamp-*.mjs
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"autoprefixer": "^10.4.21",
|
|
33
33
|
"miniprogram-api-typings": "^4.1.0",
|
|
34
34
|
"postcss": "^8.5.6",
|
|
35
|
-
"sass": "^1.93.
|
|
35
|
+
"sass": "^1.93.2",
|
|
36
36
|
"tailwindcss": "^3.4.17",
|
|
37
|
-
"typescript": "^5.9.
|
|
38
|
-
"weapp-tailwindcss": "^4.3.
|
|
37
|
+
"typescript": "^5.9.3",
|
|
38
|
+
"weapp-tailwindcss": "^4.3.3",
|
|
39
39
|
"weapp-vite": "workspace:*"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<view>Navbar</view>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|