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

网站推广的策略方法长春seo建站

网站推广的策略方法,长春seo建站,柳州市住房和城乡建设部网站,网站做网站词怎么推广vue2企业级项目#xff08;一#xff09; 创建项目#xff0c;并创建项目编译规范 1、node 版本 由于是vue2项目#xff0c;所以 node 版本比较低。使用 12.18.3 左右即可 2、安装vue 安装指定版本的vue2 npm i -g vue2.7.10 npm i -g vue/cli4.4.63、编辑器规范 vsc…vue2企业级项目一 创建项目并创建项目编译规范 1、node 版本 由于是vue2项目所以 node 版本比较低。使用 12.18.3 左右即可 2、安装vue 安装指定版本的vue2 npm i -g vue2.7.10 npm i -g vue/cli4.4.63、编辑器规范 vscode安装 EditorConfig for VS Code插件 项目根目录创建 .editorconfig文件 填写一下示例内容 # 表示是最顶层的配置文件发现值为true时才会停止查找.editorconfig文件 root true# 表示配置所有的文件 [*] # utf-8格式 charset utf-8 # 缩进为2个空格 indent_style space indent_size 2 # 结尾都是用crlf格式, 并且文件保存是结尾换行 end_of_lint crlf insert_final_newline true # 移除无效空格 trim_trailing_whitespace true# 表示配置所有的md文件 [*.md] insert_final_newline true trim_trailing_whitespace true 4、prettier 4、prettier vscode安装 Prettier - Code formatter插件 项目安装插件 npm install --save-dev prettier1.18.2项目根目录创建.prettierignore文件 dist/* node_modules/* packages/* public/* 项目根目录创建.prettierrc文件 {arrowParens: always,bracketSpacing: true,endOfLine: crlf,htmlWhitespaceSensitivity: ignore,ignorePath: .prettierignore,jsxBracketSameLine: false,jsxSingleQuote: false,printWidth: 80,quoteProps: as-needed,semi: true,singleQuote: false,tabWidth: 2,trailingComma: all,useTabs: false,vueIndentScriptAndStyle: false }添加启动命令到package.json script: {...format: prettier --write \src/**/*.js\ \src/**/*.vue\, }5、eslint vscode安装 Eslint插件 项目下载依赖 npm install --save-dev eslint-config-prettier8.8.0 eslint-plugin-prettier5.0.0根目录创建.eslintignore文件 dist/* node_modules/* packages/* public/* 根目录创建.eslintrc.js文件 module.exports {root: true,env: {node: true,},extends: [plugin:vue/essential,eslint:recommended,plugin:prettier/recommended,],parserOptions: {ecmaVersion: 2020,},rules: {array-callback-return: error,arrow-parens: error,arrow-spacing: [error,{before: true,after: true,},],comma-dangle: [error, always-multiline],object-curly-spacing: [error, always],key-spacing: [error, { beforeColon: false, afterColon: true }],comma-spacing: [error,{before: false,after: true,},],indent: [error,2,{SwitchCase: 1,},],for-direction: error,keyword-spacing: [error,{before: true,after: true,},],no-console: process.env.NODE_ENV production ? warn : off,no-debugger: process.env.NODE_ENV production ? warn : off,no-extra-semi: error,no-multi-spaces: error,no-multiple-empty-lines: [error,{max: 3,maxEOF: 1,maxBOF: 1,},],prettier/prettier: off,quotes: [error, double],semi-spacing: [error,{before: false,after: true,},],semi-style: [error, last],semi: [error,always,{omitLastInOneLineBlock: true,},],space-after-keywords: [0, always],space-infix-ops: error,spaced-comment: [error,always,{block: {exceptions: [*],balanced: true,},},],}, }; 添加启动命令到package.json script: {...,eslint:fix: eslint src/**/* --ext .js,.vue, }6、stylelint vscode安装stylelint插件 项目安装依赖 npm install --save-dev stylelint15.3.0 stylelint-config-recommended11.0.0 stylelint-config-recommended-vue1.4.0 stylelint-config-recommended-vue1.4.0 stylelint-config-standard25.0.0 stylelint-config-prettier9.0.5 stylelint-order5.0.0 stylelint-less postcss-html postcss-less4.0.0 less-loader4.1.0 less4.1.3根目录创建.stylelintignore文件 dist/* node_modules/* packages/* public/*根目录创建.stylelintrc.js文件 module.exports {extends: [stylelint-config-recommended,stylelint-config-standard,stylelint-config-recommended-vue,stylelint-config-html,stylelint-config-prettier,],plugins: [stylelint-order, stylelint-less],ignorePath: .stylelintignore,overrides: [{files: [**/*.{html,vue}],customSyntax: postcss-html,},{files: [**/*.less],customSyntax: postcss-less,},],rules: {declaration-block-no-duplicate-properties: [true,{ignore: consecutive-duplicates,},],indentation: 2,selector-pseudo-element-no-unknown: [true,{ignorePseudoElements: [v-deep],},],number-leading-zero: never,no-descending-specificity: null,font-family-no-missing-generic-family-keyword: null,selector-type-no-unknown: null,at-rule-no-unknown: null,no-duplicate-selectors: null,no-empty-source: null,block-no-empty: true,max-nesting-depth: null,max-line-length: null,selector-max-compound-selectors: null,selector-no-qualifying-type: null,selector-class-pattern: null,function-no-unknown: null,function-parentheses-newline-inside: null,alpha-value-notation: number,no-empty-first-line: true,order/properties-order: [width,min-width,max-width,height,min-height,max-height,position,top,right,bottom,left,z-index,display,flex-wrap,justify-content,align-items,float,clear,overflow,overflow-x,overflow-y,padding,padding-top,padding-right,padding-bottom,padding-left,margin,margin-top,margin-right,margin-bottom,margin-left,font-size,font-family,font-weight,text-justify,text-align,text-indent,text-align,text-overflow,text-decortion,white-space,color,background,background-position,background-repeat,background-size,background-color,background-clip,border,border-style,border-width,border-color,border-top-style,border-top-width,border-top-color,border-right-style,border-right-width,border-right-color,border-bottom-style,border-bottom-width,border-bottom-color,border-left-style,border-left-width,border-left-color,border-radius,opacity,filter,list-style,outline,visibility,box-shadow,text-shadow,resize,trasition,],selector-pseudo-class-no-unknown: [true,{ ignorePseudoClasses: [global] },],}, }; 添加启动命令到package.json script: {...,stylelint:fix: stylelint src/**/*.{html,vue,less} --fix, }在vscode配置文件新增内容如下 ... editor.codeActionsOnSave: {source.fixAll.stylelint: true }, stylelint.validate: [vue, less, css, html, scss, sass]7、可选链 项目安装依赖 npm install --save-dev babel/core babel/preset-env babel/plugin-proposal-optional-chaining babel/plugin-proposal-nullish-coalescing-operator 项目根目录babel.config.js修改如下 module.exports {presets: [vue/cli-plugin-babel/preset],plugins: [babel/plugin-proposal-optional-chaining,babel/plugin-proposal-nullish-coalescing-operator,], };8、commitlint 执行命令 vue add commitlint下载依赖 npm install --save-dev lint-staged9.5.0修改package.json配置 ... husky: {hooks: {pre-commit: lint-staged,commit-msg: commitlint -E HUSKY_GIT_PARAMS}},lint-staged: {*.{js,vue}: [vue-cli-service lint ./src --fix,prettier --write ./src,git add]}
http://www.hkea.cn/news/14435637/

相关文章:

  • 响应式网站 尺寸合肥seo网站优化培训
  • 公司网站开发设计响应式网站的登录设置
  • 做网站购买服务器多少钱物联网网站设计
  • 网站网页模板够完美网站建设
  • 专门做网页设计网站网络推广的基本手段
  • 威海做企业网站镇江网站开发公司
  • 网站开发的公司属于什么行业成都网络公司优惠政策
  • 百度上搜不到网站wordpress 人物照片墙
  • 手机网站seo怎么做西宁网站建设建站
  • 书法网站模版ICP备案网站服务内容
  • wordpress网站会员太多百度竞价排名公司
  • 宜昌哪里做网站文创产品设计创意
  • 好网站建设公司收费自适应网站设计
  • 韩国做美食的视频网站有哪些外贸公司是什么类型的企业
  • 输入网址跳到别的网站wordpress搬家文章
  • 网站定做wordpress酷站
  • 房山青岛网站建设珠海做网站开发
  • 宜昌做网站公司html网站开发中的应用
  • 额尔古纳网站建设wordpress用户中心界面
  • 克拉玛依建设局网站互联网运营推广是做什么的
  • 机械外贸网站建设男生十大好就业专业
  • 请网站建设的人多少钱合肥网站开发需要多
  • discuz网站编码wordpress 备案 域名
  • title 镇江网站建设怎么样做兼职网站
  • 衡水电子商务网站建设免费论坛建站系统
  • 天津网站建设首选 津坤科技全国十大物联网平台公司
  • 西宁做网站君博解决好的企业网站建设
  • 做网站卖房写标题网页动态效果
  • 六安市城乡和建设局官方网站互联网营销师考试内容
  • 学院网站建设策划书wordpress 显示标签代码