Ant Design Landing模版使用教程-react-npm

特此鸣谢:https://github.com/ant-motion/ant-design-3.x-landing-page?tab=readme-ov-file

官网(不好用):https://landing.ant.design/docs/introduce-cn

package.json代码如下

复制代码
{
  "private": true,
  "entry": {
    "index": "./index.js"
  },
  "dependencies": {
    "antd": "^3.0.0",
    "bisheng": "^0.28.2",
    "enquire-js": "^0.1.0",
    "prop-types": "^15.6.0",
    "rc-queue-anim": "^1.4.0",
    "rc-scroll-anim": "^2.2.1",
    "rc-tween-one": "^1.7.0",
    "react": "^16.1.1",
    "react-document-title": "^2.0.3",
    "react-dom": "^16.1.1",
    "react-github-button": "^0.1.11",
    "react-intl": "^2.4.0"
  },
  "devDependencies": {
    "atool-build": "^1.0.2",
    "atool-test-mocha": "^0.1.7",
    "babel-eslint": "^8.0.2",
    "babel-plugin-import": "^1.6.2",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-runtime": "^6.26.0",
    "dora": "^0.4.5",
    "dora-plugin-webpack": "^1.0.0",
    "eslint": "^4.11.0",
    "eslint-config-airbnb": "^16.1.0",
    "eslint-plugin-import": "^2.8.0",
    "eslint-plugin-jsx-a11y": "^6.0.2",
    "eslint-plugin-react": "^7.5.1",
    "expect": "^21.2.1",
    "gh-pages": "^1.1.0",
    "pre-commit": "^1.2.2",
    "redbox-react": "^1.5.0"
  },
  "pre-commit": [
    "lint"
  ],
  "scripts": {
    "build": "atool-build && cp index.html dist",
    "lint": "eslint --ext .js,.jsx src/",
    "eslint-fix": "eslint --fix src/ --ext .js,.jsx",
    "start": "dora --plugins webpack",
    "test": "atool-test-mocha ./**/__tests__/*-test.js",
    "deploy": "rm -rf dist && npm run build && node ./deploy.js"
  }
}
相关推荐
阿虎儿23 分钟前
React Context 详解:从入门到性能优化
前端·vue.js·react.js
Sailing1 小时前
🚀 别再乱写 16px 了!CSS 单位体系已经进入“计算时代”,真正的响应式布局
前端·css·面试
喝水的长颈鹿1 小时前
【大白话前端 03】Web 标准与最佳实践
前端
爱泡脚的鸡腿1 小时前
Node.js 拓展
前端·后端
左夕2 小时前
分不清apply,bind,call?看这篇文章就够了
前端·javascript
Zha0Zhun3 小时前
一个使用ViewBinding封装的Dialog
前端
兆子龙3 小时前
从微信小程序 data-id 到 React 列表性能优化:少用闭包,多用 data-*
前端
滕青山3 小时前
文本行过滤/筛选 在线工具核心JS实现
前端·javascript·vue.js
时光不负努力3 小时前
编程常用模式集合
前端·javascript·typescript
恋猫de小郭3 小时前
Apple 的 ANE 被挖掘,AI 硬件公开,宣传的 38 TOPS 居然是"数字游戏"?
前端·人工智能·ios