![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TypeScript
文章平均质量分 92
Daisy__yangyang
前端工程师
展开
-
用 vite 构建 vue3 + TS 项目实战
1、项目初始化npm install create-vite@2.9.0 -g // 全局安装 create-vite npm init @vitejs/app shop-admin // 初始化项目(shop-admin 项目名) cd shop-admin npm install npm run dev 2、eslint 基础配置npm install eslint --save-dev npm install@eslint/create-confi...原创 2022-04-26 14:47:38 · 13114 阅读 · 8 评论 -
Flow[JavaScript 类型检查器]
1、快速上手yarn init --yes yarn add flow-bin --dev 新建文件夹src,在src新建文件01-getting-started.js,添加 //@flow 注释标记//@flowfunction sum (a: number, b: number) { return a + b}sum(100, 100)sum(100, '100')yarn flow init //初始化 flow yarn flow // 运行 flow...原创 2022-03-03 17:22:33 · 7822 阅读 · 0 评论 -
【Vue.js + Vuex + TypeScript 实战项目开发与项目优化】
创建项目:使用 Vue CLI 创建项目安装 Vue CLI:npm i -g @vue/cli vue create edu-boss-fedcd edu-boss-fed npm run serve加入Git版本管理创建远程仓库 将本地仓库推到线上 如果没有本地仓库: git init# 创建本地仓库 git add .# 将问件添加到暂存区 git commit -m "提交日志" #提交历史记录 git remote add or...原创 2021-03-31 13:38:27 · 473 阅读 · 0 评论 -
TypeScript【前端必备知识---快速上手】
TypeScript 快速上手yarn init 初始化项目 yarn add typescript --dev 安装依赖 新建文件 01-getting-start.tsconst hello = (name: string) => { console.log('hello', `${name} `)}hello('daisy')运行 yarn tsc 01-getting-start.ts TypeScript 配置文件yarn tsc --i...原创 2020-11-14 22:45:37 · 388 阅读 · 0 评论