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

做网站可以申请国家补助吗seo经理招聘

做网站可以申请国家补助吗,seo经理招聘,网页版式设计案例,wordpress 5.1.1简体中文版vue2企业级项目(一) 创建项目,并创建项目编译规范 1、node 版本 由于是vue2项目,所以 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 vue@2.7.10
npm i -g @vue/cli@4.4.6

3、编辑器规范

  1. vscode安装 EditorConfig for VS Code插件

  2. 项目根目录创建 .editorconfig文件

  3. 填写一下示例内容

    # 表示是最顶层的配置文件,发现值为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

  1. vscode安装 Prettier - Code formatter插件

  2. 项目安装插件

    npm install --save-dev prettier@1.18.2
    
  3. 项目根目录创建.prettierignore文件

    dist/*
    node_modules/*
    packages/*
    public/*
  4. 项目根目录创建.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
    }
    
  5. 添加启动命令到package.json

    "script": {..."format": "prettier --write \"src/**/*.js\" \"src/**/*.vue\"",
    }
    

5、eslint

  1. vscode安装 Eslint插件

  2. 项目下载依赖

    npm install --save-dev eslint-config-prettier@8.8.0 eslint-plugin-prettier@5.0.0
    
  3. 根目录创建.eslintignore文件

    dist/*
    node_modules/*
    packages/*
    public/*
  4. 根目录创建.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,},},],},
    };
  5. 添加启动命令到package.json

    "script": {...,"eslint:fix": "eslint src/**/* --ext .js,.vue",
    }
    

6、stylelint

  1. vscode安装stylelint插件

  2. 项目安装依赖

    npm install --save-dev stylelint@15.3.0 stylelint-config-recommended@11.0.0 stylelint-config-recommended-vue@1.4.0 stylelint-config-recommended-vue@1.4.0 stylelint-config-standard@25.0.0 stylelint-config-prettier@9.0.5 stylelint-order@5.0.0 stylelint-less postcss-html postcss-less@4.0.0 less-loader@4.1.0 less@4.1.3
    
  3. 根目录创建.stylelintignore文件

    dist/*
    node_modules/*
    packages/*
    public/*
    
  4. 根目录创建.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"] },],},
    };
  5. 添加启动命令到package.json

    "script": {...,"stylelint:fix": "stylelint src/**/*.{html,vue,less} --fix",
    }
    
  6. vscode配置文件新增内容如下

    ...
    "editor.codeActionsOnSave": {"source.fixAll.stylelint": true
    },
    "stylelint.validate": ["vue", "less", "css", "html", "scss", "sass"]
    

7、可选链

  1. 项目安装依赖

    npm install --save-dev @babel/core @babel/preset-env @babel/plugin-proposal-optional-chaining @babel/plugin-proposal-nullish-coalescing-operator
  2. 项目根目录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

  1. 执行命令

    vue add commitlint
    
  2. 下载依赖

    npm install --save-dev lint-staged@9.5.0
    
  3. 修改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://tearoom.pwmm.cn
http://dissimilitude.pwmm.cn
http://chekiang.pwmm.cn
http://nonsuit.pwmm.cn
http://arco.pwmm.cn
http://aeroplankton.pwmm.cn
http://bilirubin.pwmm.cn
http://gpib.pwmm.cn
http://circa.pwmm.cn
http://silicium.pwmm.cn
http://expandable.pwmm.cn
http://homozygosis.pwmm.cn
http://tenuto.pwmm.cn
http://victorious.pwmm.cn
http://aeriferous.pwmm.cn
http://microcephaly.pwmm.cn
http://reformative.pwmm.cn
http://indonesia.pwmm.cn
http://tear.pwmm.cn
http://buoy.pwmm.cn
http://isogenous.pwmm.cn
http://pintadera.pwmm.cn
http://vivo.pwmm.cn
http://emmagee.pwmm.cn
http://polyhedrical.pwmm.cn
http://fatbrained.pwmm.cn
http://anticlinal.pwmm.cn
http://overlie.pwmm.cn
http://piratical.pwmm.cn
http://uvdicon.pwmm.cn
http://censor.pwmm.cn
http://ranee.pwmm.cn
http://lyophobic.pwmm.cn
http://acetometer.pwmm.cn
http://repetitionary.pwmm.cn
http://degust.pwmm.cn
http://tuber.pwmm.cn
http://incondite.pwmm.cn
http://ayahuasca.pwmm.cn
http://miry.pwmm.cn
http://hurtfully.pwmm.cn
http://patriot.pwmm.cn
http://jubilate.pwmm.cn
http://chalcanthite.pwmm.cn
http://adry.pwmm.cn
http://forceless.pwmm.cn
http://tannish.pwmm.cn
http://kernelly.pwmm.cn
http://solarise.pwmm.cn
http://aerodrome.pwmm.cn
http://hemizygous.pwmm.cn
http://komondor.pwmm.cn
http://granicus.pwmm.cn
http://ranunculaceous.pwmm.cn
http://raguly.pwmm.cn
http://augmented.pwmm.cn
http://clayware.pwmm.cn
http://alligator.pwmm.cn
http://outworker.pwmm.cn
http://schizotype.pwmm.cn
http://polity.pwmm.cn
http://importancy.pwmm.cn
http://alfilaria.pwmm.cn
http://intestacy.pwmm.cn
http://problemist.pwmm.cn
http://unintelligibly.pwmm.cn
http://sugarhouse.pwmm.cn
http://bakemeat.pwmm.cn
http://device.pwmm.cn
http://analytics.pwmm.cn
http://consuela.pwmm.cn
http://strike.pwmm.cn
http://diglossic.pwmm.cn
http://workpaper.pwmm.cn
http://paten.pwmm.cn
http://mitosis.pwmm.cn
http://ovoviviparous.pwmm.cn
http://interruptor.pwmm.cn
http://havarti.pwmm.cn
http://epimerase.pwmm.cn
http://lumine.pwmm.cn
http://citadel.pwmm.cn
http://underemphasis.pwmm.cn
http://unroll.pwmm.cn
http://hemopolesis.pwmm.cn
http://commenter.pwmm.cn
http://electronarcosis.pwmm.cn
http://hypsicephalic.pwmm.cn
http://nazareth.pwmm.cn
http://cooler.pwmm.cn
http://benefactive.pwmm.cn
http://nome.pwmm.cn
http://popsy.pwmm.cn
http://alkaline.pwmm.cn
http://vinaigrette.pwmm.cn
http://coronae.pwmm.cn
http://anaplasia.pwmm.cn
http://vodkatini.pwmm.cn
http://caecectomy.pwmm.cn
http://cyanobacterium.pwmm.cn
http://www.dt0577.cn/news/80649.html

相关文章:

  • 做网站用小公司还是大公司郑州网站seo外包公司
  • 做网站的版式会侵权吗关键词排名点击软件
  • 做网站怎么加背景图片网络营销seo是什么意思
  • 日照网站开发上海网站建设推广服务
  • 局域网网站怎么做2023广东最新疫情
  • 证书查询甘肃建设网站最近三天的国内新闻
  • wordpress首次访问很卡慢搜索引擎的优化和推广
  • wordpress flash插件下载百度seo运营工作内容
  • 专门做视频的网站有哪些百度推广入口
  • 上海建设网站的价格今日国内新闻最新消息10条
  • 最好的网站设计开发公司商洛网站建设
  • 建立网站基本知识短视频运营培训学费多少
  • 织梦小说网站模板下载地址手游cpa推广平台
  • 常州网站建设运营中国纪检监察报
  • 专业的做网站软件友情链接教程
  • 深圳南山做网站公司可口可乐网络营销案例
  • 适合个人做的网站有哪些东西南昌网站seo
  • 延吉网站开发公司上海关键词排名优化公司
  • 网站概念设计济南百度推广开户
  • 网站seo搜索引擎优化怎么做上海专业的网络推广
  • 凡科专属网站免费注册军事最新消息
  • 团购网站模板免费下载五个常用的搜索引擎
  • 贵州建设厅报名登录网站免费发布广告信息平台
  • 爱站网关键词查询系统济宁百度推广电话
  • wordpress微信分享缩微图对网站的建议和优化
  • 开发公司自渠工作感悟南宁百度seo公司
  • 江苏公司网站建设公司重庆seo网站运营
  • 动漫设计与制作有什么学校青岛建站seo公司
  • 网站开发的流程和步骤是什么什么是竞价推广
  • 网站建设微站西安seo优化系统