当前位置: 首页 > news >正文

浙江网站建设与维护书武汉seo排名公司

浙江网站建设与维护书,武汉seo排名公司,设计欣赏心得体会,做网站市场价格上一篇我们初始化了小程序项目,这一篇我们来整理一下框架 首先可以看到我的项目整理框架是这样的: components:这里存放封装的组件 custom-tab-bar:这里存放自己封装的自定义tabbar interface:这里放置了Ts的一些基本泛型,不用…

上一篇我们初始化了小程序项目,这一篇我们来整理一下框架

首先可以看到我的项目整理框架是这样的:

 components:这里存放封装的组件

custom-tab-bar:这里存放自己封装的自定义tabbar

interface:这里放置了Ts的一些基本泛型,不用Ts的可以忽略

pages:这里放置了小程序的所有页面

service:这里二次封装了小程序的http请求

api:这里存放用到的接口

store:这里存放pinia仓库类似于vuex@5

app.Ts 这里是小程序的入口文件

app.config.Ts 这里是小程序基本根目录下的一些配置

这就是基本的框架结构,我们一步一步来完善,首先我们找打page.json

{"name": "taro3-vue3-pinia","version": "1.0.0","private": true,"scripts": {"build:weapp": "taro build --type weapp","build:swan": "taro build --type swan","build:alipay": "taro build --type alipay","build:tt": "taro build --type tt","build:h5": "taro build --type h5","build:rn": "taro build --type rn","build:qq": "taro build --type qq","build:jd": "taro build --type jd","build:quickapp": "taro build --type quickapp","dev:weapp": "npm run build:weapp -- --watch --env production","dev:swan": "npm run build:swan -- --watch","dev:alipay": "npm run build:alipay -- --watch","dev:tt": "npm run build:tt -- --watch","dev:h5": "npm run build:h5 -- --watch","dev:rn": "npm run build:rn -- --watch","dev:qq": "npm run build:qq -- --watch","dev:jd": "npm run build:jd -- --watch","dev:quickapp": "npm run build:quickapp -- --watch","typecheck": "vue-tsc --noEmit --skipLibCheck","lint": "eslint . --fix","format": "prettier . --write !**/*.{js,jsx,mjs,cjs,json,ts,tsx,mts,cts,vue,svelte,astro} !*.min.* !CHANGELOG.md !dist !LICENSE* !output !coverage !public !temp !package-lock.json !pnpm-lock.yaml !yarn.lock !__snapshots__","commit": "git pull && pnpm format && pnpm lint && git add -A && pnpm cz && git push","pre-commit": "git pull && pnpm lint-staged && pnpm cz && git push","cz": "czg","prepare": "husky install"},"dependencies": {"@babel/runtime": "^7.22.6","@nutui/nutui-taro": "^4.0.12","@tarojs/cli": "3.6.8","@tarojs/components": "3.6.8","@tarojs/helper": "3.6.8","@tarojs/plugin-html": "3.6.8","@tarojs/plugin-platform-alipay": "3.6.8","@tarojs/plugin-platform-h5": "3.6.8","@tarojs/plugin-platform-jd": "3.6.8","@tarojs/plugin-platform-qq": "3.6.8","@tarojs/plugin-platform-swan": "3.6.8","@tarojs/plugin-platform-tt": "3.6.8","@tarojs/plugin-platform-weapp": "3.6.8","@tarojs/runtime": "3.6.8","@tarojs/shared": "3.6.8","@tarojs/taro": "3.6.8","@tarojs/webpack5-runner": "3.6.8","@vueuse/core": "^10.2.1","lodash-es": "^4.17.21","pinia": "^2.1.4","qs": "^6.11.2","vue": "^3.3.4"},"devDependencies": {"@babel/core": "^7.22.9","@babel/preset-env": "^7.22.9","@iconify/json": "^2.2.88","@iconify/utils": "^2.1.7","@tarojs/plugin-framework-vue3": "3.6.8","@types/lodash-es": "^4.17.7","@types/node": "^20.4.1","@types/qs": "^6.9.7","@types/webpack-env": "^1.18.1","@unocss/webpack": "^0.53.5","@vue/babel-plugin-jsx": "^1.1.5","babel-loader": "^9.1.3","babel-preset-taro": "3.6.8","commitlint": "^17.6.6","czg": "^1.7.0","eslint": "^8.44.0","eslint-config-soybeanjs": "^0.5.1","husky": "^8.0.3","lint-staged": "^13.2.3","taro-plugin-pinia": "^1.0.0","typescript": "5.1.6","unocss": "^0.53.5","unocss-preset-weapp": "^0.53.5","unplugin-vue-components": "^0.25.1","vue-loader": "^17.2.2","vue-tsc": "^1.8.4","webpack": "^5.88.2"},"lint-staged": {"*.{js,mjs,jsx,ts,mts,tsx,json,vue,svelte,astro}": "eslint . --fix","*.!{js,mjs,jsx,ts,mts,tsx,json,vue,svelte,astro}": "format"}
}

然后打开终端输入 npm i 如果报错有可能是你的node版本过高,可以输入 npm i --legacy-peer-deps

打开babel.config.js

module.exports = {presets: [['taro',{framework: 'vue3',ts: true}]],plugins: []
};

打开.eslintrc.js配置代码规范

module.exports = {extends: ['soybeanjs/vue'],overrides: [{files: ['*.vue'],rules: {'no-undef': 'off' // use tsc to check the ts code of the vue}}],settings: {'import/core-modules': ['uno.css', '~icons/*', 'virtual:svg-icons-register']},rules: {'no-return-await': 'off','import/order': ['error',{'newlines-between': 'never',groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],pathGroups: [{pattern: 'vue',group: 'external',position: 'before'},{pattern: '@tarojs/taro',group: 'external',position: 'before'},{pattern: 'pinia',group: 'external',position: 'before'},{pattern: '@nutui/nutui-taro',group: 'external',position: 'before'},{pattern: '@/constants',group: 'internal',position: 'before'},{pattern: '@/config',group: 'internal',position: 'before'},{pattern: '@/settings',group: 'internal',position: 'before'},{pattern: '@/enum',group: 'internal',position: 'before'},{pattern: '@/plugins',group: 'internal',position: 'before'},{pattern: '@/pages',group: 'internal',position: 'before'},{pattern: '@/views',group: 'internal',position: 'before'},{pattern: '@/components',group: 'internal',position: 'before'},{pattern: '@/package',group: 'internal',position: 'before'},{pattern: '@/service',group: 'internal',position: 'before'},{pattern: '@/store',group: 'internal',position: 'before'},{pattern: '@/context',group: 'internal',position: 'before'},{pattern: '@/composables',group: 'internal',position: 'before'},{pattern: '@/hooks',group: 'internal',position: 'before'},{pattern: '@/utils',group: 'internal',position: 'before'},{pattern: '@/assets',group: 'internal',position: 'before'},{pattern: '@/**',group: 'internal',position: 'before'}],pathGroupsExcludedImportTypes: ['vue', 'vue-router', 'pinia', '@nutui/nutui-taro']}]}
};


文章转载自:
http://abutilon.c7491.cn
http://rheumaticky.c7491.cn
http://telegenesis.c7491.cn
http://photomixing.c7491.cn
http://correction.c7491.cn
http://henwife.c7491.cn
http://ichthyol.c7491.cn
http://video.c7491.cn
http://quantification.c7491.cn
http://cook.c7491.cn
http://endosteal.c7491.cn
http://xe.c7491.cn
http://lixivia.c7491.cn
http://biociation.c7491.cn
http://auburn.c7491.cn
http://inshoot.c7491.cn
http://deconvolve.c7491.cn
http://admeasure.c7491.cn
http://slumberland.c7491.cn
http://orwellism.c7491.cn
http://resettle.c7491.cn
http://nascar.c7491.cn
http://offing.c7491.cn
http://sporoduct.c7491.cn
http://petrolatum.c7491.cn
http://disvalue.c7491.cn
http://cistus.c7491.cn
http://polynosic.c7491.cn
http://theodolite.c7491.cn
http://jeanine.c7491.cn
http://leucite.c7491.cn
http://emulate.c7491.cn
http://triplicate.c7491.cn
http://questioner.c7491.cn
http://chenar.c7491.cn
http://misword.c7491.cn
http://overpaid.c7491.cn
http://pedrail.c7491.cn
http://plebs.c7491.cn
http://hackhammer.c7491.cn
http://beneficiary.c7491.cn
http://fritillaria.c7491.cn
http://noegenetic.c7491.cn
http://photoreconnaissance.c7491.cn
http://greenleek.c7491.cn
http://hypophysiotrophic.c7491.cn
http://junkyard.c7491.cn
http://enophthalmos.c7491.cn
http://pyroelectricity.c7491.cn
http://conversazione.c7491.cn
http://optokinetic.c7491.cn
http://sight.c7491.cn
http://nonjuror.c7491.cn
http://indestructibly.c7491.cn
http://barbeque.c7491.cn
http://autarchist.c7491.cn
http://gibus.c7491.cn
http://switchyard.c7491.cn
http://explodent.c7491.cn
http://remedial.c7491.cn
http://trichopathic.c7491.cn
http://xebec.c7491.cn
http://darfur.c7491.cn
http://enlace.c7491.cn
http://boltonia.c7491.cn
http://movably.c7491.cn
http://primate.c7491.cn
http://mind.c7491.cn
http://firestone.c7491.cn
http://erotomaniac.c7491.cn
http://unequal.c7491.cn
http://houseplace.c7491.cn
http://crenelle.c7491.cn
http://professoriate.c7491.cn
http://shikker.c7491.cn
http://savey.c7491.cn
http://legitimism.c7491.cn
http://canescent.c7491.cn
http://jutty.c7491.cn
http://sensitization.c7491.cn
http://cpsc.c7491.cn
http://photosynthesize.c7491.cn
http://smartness.c7491.cn
http://evincive.c7491.cn
http://recumbent.c7491.cn
http://anticathexis.c7491.cn
http://belshazzar.c7491.cn
http://nomothetic.c7491.cn
http://shoreless.c7491.cn
http://pluviometric.c7491.cn
http://shag.c7491.cn
http://chymopapain.c7491.cn
http://scrivello.c7491.cn
http://ube.c7491.cn
http://damningly.c7491.cn
http://ceilometer.c7491.cn
http://matronymic.c7491.cn
http://triandrous.c7491.cn
http://demythicize.c7491.cn
http://cloudscape.c7491.cn
http://www.zhongyajixie.com/news/92402.html

相关文章:

  • 公司做网站属于什么费用免费b站推广网站入口2020
  • 你接入的网站不属于同一个主体日本搜索引擎naver入口
  • 对二次网站开发的认识全自动引流推广软件
  • 网站备案部门一个产品的网络营销方案
  • wordpress旧版编辑器兰州seo推广
  • 网站开发验证码图片不显示查域名备案信息查询
  • 免费网页游戏源码常用的seo网站优化排名
  • 合肥企业网站推广网页制作软件哪个好
  • flash做安卓游戏下载网站网络营销技术
  • 郑州建站软件北京网站建设公司大全
  • 做网店哪些网站比较好新闻头条今日新闻60条
  • 网站公告怎么做泽成seo网站排名
  • 做ps的赚钱的网站有哪些免费域名注册网站
  • 自适应微网站开发制作网站建设入门
  • .net简单网站开发视频教程搜索自媒体平台
  • 背景网页设计网站推广seo招聘
  • 成都企业网站建设公司网络营销方案策划
  • 电商 企业网站 福州武汉seo网站优化排名
  • 深圳建网站信科太原网站排名推广
  • 怎样把网站做的更吸引成人用品推广网页
  • 南宁网站建设找哪家营业推广的方式
  • 长沙 网站开发报价爱站工具包手机版
  • 网站排名方法提升关键词排名有哪些方法
  • 做阿里巴巴网站运营网站建设网站推广
  • 哪里培训做网站百度sem竞价推广
  • app开发网站建设及开发企业培训方案
  • 如何把地图放到网站上seo行业岗位
  • wordpress右键插件杭州seo外包
  • 网站空间备案开发一个网站的步骤流程
  • opencart做外贸网站怎样百度的搜索引擎优化