Skip to content

kyriejoshua/gallery-by-react

Repository files navigation

Requirement

  • Please use node v6.6.0.

Usage

# Start for development
npm start # or
npm run serve

# Start the dev-server with the dist version
npm run serve:dist

# Just build the dist version and copy static files
npm run dist

# Run unit tests
npm test

# Auto-run unit tests on file changes
npm run test:watch

# Lint all files in src (also automatically done AFTER tests are run)
npm run lint

# Clean up the dist directory
npm run clean

# Just copy the static assets
npm run copy

Others

  • 这是一个跟着慕课网教学视频上手 React 的项目,没有数据流,主要是理解 React 中组件的使用和 webpack 的使用。
  • 关于布局方面的算法理解有所欠缺,在每次回顾时再补上注释和说明。
  • 本意是全面采用 ES6 编写,现在还有部分可以改善,之后再进一步重写。