Code Monkey home page Code Monkey logo

lottie-player's Introduction

Lottie Player

🎉 A player that can play lottie animation JSON files, powered by react and electron.

🎉 本项目为一个可以本地预览lottie动画文件的小播放器,可以方便在活动开发中辅助预览UX提供的动效资源。

一. 本地开发

# 安装依赖
> yarn # npm install

# 启动前会构建dll
> yarn start # npm run start

# 启动不会构建dll,之前存在就用
> yarn dev # npm run dev

# 启动electron开发环境
> yarn electron # npm run electron

二. 代码风格

本项目对代码风格有一定的要求,具体参考.eslintrc.js.stylelintrc.js.prettierrc.js文件配置。

三. 提交规范

项目提交前会对commit message进行检查,不符合规范提交会被拒绝。commit message格式如下:

> type(scope?): subject // scope可选

提交的 type 可选值如下:

['build', 'ci', 'chore', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test'];

四. 打包命令

本模板内置electron打包支持。

# web打包,默认生产环境
> yarn build # npm run build

# electron打包,默认生产环境
> yarn package # npm run package

# electron打包,仅打包
> yarn package:only # npm run package:only

lottie-player's People

Contributors

sjk1991 avatar

Watchers

 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.