Coder Social home page Coder Social logo

kingfront / freely Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 7.0 72 KB

手机端简易示例《随机热门音乐》

Home Page: https://freely.vercel.app

JavaScript 19.73% HTML 2.22% Vue 43.39% TypeScript 27.83% Less 6.44% Shell 0.41%
vue3-typescript setup-script pinia vant-ui typescript

freely's Introduction

logo

手机端简易示例《随机热门音乐》

Vue 3 + Typescript + Vite + Vant + Pinia

GitHub language count GitHub top language GitHub commit activity

🔥 Demo 访问   🌈 文档


依赖

  • 🚀 vue3.2 + vite + typescript + pinia + axios + vant
  • 💪 使用 vue3.2 <script setup> 语法糖
  • 💪 使用 TypeScript
  • 🍭 支持 jsx 组件写法
  • 🍭 整合 vant ui、less
  • 🍭 使用 viewport 移动端方案
  • 🍭 使用 pinia 替代 vuex,更简单、更高效
  • 🍭 使用 网易云音乐 热门歌曲接口为数据源

启动、部署

Using yarn to :

  # 安装依赖
  yarn

  # 本地启动
  yarn dev

  # 本地打包
  yarn build

增加 jest 单元测试

jest 安装

  1. 基本依赖
yarn add jest babel-jest @vue/vue3-jest @vue/test-utils -D
  1. 兼容 typescript 需要安装如下
yarn add @types/jest ts-jest -D
  1. 兼容全局 @ 别名导入
// jest.conf.js增加如下
moduleNameMapper: {
  '^@/(.*)$': '<rootDir>/src/$1'
}

freely's People

Contributors

kingfront avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.