Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>cupshe-vscodeNew to Visual Studio Code? Get it now.
cupshe-vscode

cupshe-vscode

cupshe

|
38 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

cupshe vscode插件

cupshe-wp2vite

vue-cli升级vite

cupshe-template

脚手架快速创建模板文件

  • create cupshe vue template
  • create cupshe vite template

cupshe-publish-packages

本地node_modules包自动同步到制品仓库中

cupshe-api

自动化接口处理,包含对接yapi ,并生成统一的function ,包含jsdoc的处理

  • 菜单名称:cupshe接口
  • 命令: cupshe.api
 import { cGet, cPost, errDeal } = 'cupsheApi@2.0'
 
 export cGet334235 = async (cb, err = 'default') => {
   const { success, retInfo } = await cGet('334235', cb)
   return errorDeal(success, retInfo)
 }

cupshe-router

自动化路由

  • 菜单名称: cupshe路由
  • 命令: cupshe.router

cupshe-snippets

代码片段(收集B、C端代码片段)

cupshe-createPage

创建页面(需识别当前项目vue2或者vue3,可将setup模板内容生成)

  • 菜单名称: cupshe创建页面
  • 命令: cupshe.createPage
  - pageName
    - index.vue
    - components
    - style.css
    - share.js
    - static.js

cupshe-import

自动化引入,处理项目中views下,除了index.vue、css文件外,其他的文件统一引入到公共的文件中

  • 菜单名称: cupshe文件引入
  • 命令: cupshe.import
- view
  - index
    - index.vue
    - components
      - search.vue
      - table.vue
    - style.css
    - share.js
    - static.js
  - Test
    - index.vue
    - components
      - search.vue
      - table.vue
    - style.css
    - share.js
    - static.js    
- exportFiles
  - index.js
  - importFiles.js  
import Test from '../View/Test/index.vue'
import Search from '../View/Test/Search.vue'
import Table from '../View/Test/Table.vue'
import Static from '../View/Test/static.js'
import Share from '../View/Test/Share.js'

export const Test = {
  Test,
  Search,
  Table,
  Static,
  Share
}

页面结构

      cupshe-vscode
      |-- images
      |-- src
      |   |-- cupshe-api 
      |   |      |--  index.js
      |   |-- cupshe-createPage 
      |   |      |--  index.js 
      |   |-- cupshe-pipeline
      |   |      |--  index.js
      |   |-- cupshe-router 
      |   |      |--  index.js
      |   |-- cupshe-snippets
      |   |      |--  index.js
      |   |-- cupshe-import
      |   |      |--  index.js
      |   |-- cupshe-wp2vite
      |   |      |--  index.js
      |-- utils
      |   |-- ast.js
      |   |-- tools.js
      |-- package.json   

相关负责人

刘秀: cupshe-api、 utils 、cupshe-wp2vite、cupshe-pipeline 刘晗: cupshe-router 、 cupshe-import 付祥: cupshe-snippets、cupshe-createPage

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft