ccp-ui-kit
v1.1.6
Published
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
Downloads
616
Readme
Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup>
SFCs, check out the script setup docs to learn more.
Recommended IDE Setup
- VS Code + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Type Support For .vue
Imports in TS
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.
Publishing a project to the npmjs.com
service
You can publish package ccp-ui-kit
by following the steps:
- Make changes to the project
- Check actual version on ccp-ui-kit package page
- The version in
package.json
will usually be the same as the actual version, but may be different. Set the version inpackage.json
as actual + 0.0.1 (For example"version": "0.6.70"
=>"version": "0.6.71"
or"version": "0.6.70"
=>"version": "0.6.72"
if actual is0.6.71
) - Create a merge request and successfully pass the review
- Merge your branch into the Master branch
- Using the Master branch, do the following in a terminal:
npm login
*- Log in to
npmjs.com
using credentials: usernameactiveplatform-frontend
* pnpm publish
- Check new version on ccp-ui-kit package page
*- executed when there is no authorization in npmjs.com