Giter Club home page Giter Club logo

flygoose-blog's Introduction

Hello-world Nuxt 3 Starter

代码命名规范

  • 文件夹小写,多个单词用连字符
  • vue 文件除了 index.vue 全部大驼峰
  • ts 文件用小驼峰
  • 组件均放在 componets 下,与其 page 的目录相对应

代码规范

  • class 如果是由多个字母组成,用连字符隔开,比如 node-list
  • 触发的 dom 事件命名为 handleXxxxClick,handleXxxxChange
  • 监听事件问 onXxxxChange

提交流程

git add 后执行 yarn commit,一直回车,直至必须输入文字,这个就是 commit 的说明

打包流程

在 package.json 平级的目录中 执行 yarn build 生产 .output 文件 本地的话直接执行 pm2 start pm2.config.js 启动服务 需要目录文件

  • 生成的.output
  • 当前目录的 pm2.config.js

专栏 iconfont 替换

        {
         rel: 'stylesheet',
         href: '//at.alicdn.com/t/c/font_3420979_f6dbhdrnbpu.css'
        }
     

修改nuxt.config.js的href在线地址即可使用自己的iconfont

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.