@darkchest/wck 0.0.5 → 0.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darkchest/wck",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "@darkchest/wck是一个通过将 Vue 单文件组件 (SFC) 转换为通用的web-component组件的解决方案。",
5
5
  "private": false,
6
6
  "main": "src/index.js",
package/readme.md CHANGED
@@ -55,6 +55,13 @@ npm install @darkchest/wck vite -D
55
55
  ```
56
56
 
57
57
  ### 2. 使用示例(重要: 请参考TodoList.vue文件示例, 该文件中已包含所有核心功能并且开箱即用)
58
+
59
+ ```javascript
60
+ // 创建一个项目文件夹, 例如helloworld, 然后在文件夹中执行npm init -y初始化一下.
61
+ // 然后我们在文件夹中手动创建vite.config.js, index.html, src/index.js, src/components/TodoList.vue文件
62
+ // 以上文件的内容直接复制下面对应的内容即可.(注意package.json不能复制, 而是手动修改scripts命令的部分, 请看下面的package.json部分)
63
+ ```
64
+
58
65
  ```javascript
59
66
  // vite.config.js
60
67
  import { defineConfig } from 'vite';