创建typescript并运行
npm i -g typescript
typescript –init
tsc
创建react+typescript项目
npx create-react-app . –template typescript
创建vue项目
npm i install @vue/cli
vue ui
vue create 项目名
npm run serve
安装vue路由:npm i vue-router@next
安装json-server:npm i json-server
启动:
package.json添加:
“backend”: “json-server –watch db.json –port 5000”
npm run backend
禁用eslint检查:npm remove @vue/cli-plugin-eslint
https://stackoverflow.com/questions/49121110/how-to-disable-eslint-on-vue-cli-3
自动运行nodejs热部署
npm i nodemon –save-dev
npm init
发表回复