Giter VIP home page Giter VIP logo

client-proj-skeleton's Introduction

Modern Client Project ver 20170219

Concept

  • Linting by eslint, stylelint and flow
  • Deploy gh-pages by CircleCI
  • Run test(ava) in node
  • Build for Chrome in development
  • Build for IE11+ in production

Stack

  • Framework: React, Redux
  • pakage manager: yarn
  • transpiler: babel
  • linter: eslint, flow, stylelint
  • test runner: ava, enzyme
  • coverage tools: istanbul, nyc
  • builder: webpack
  • css: postcss
  • ci: circleci

Development

# Run
yarn install
yarn start          # Start localhost:3355 with watch:js and watch:css

# Tasks
yarn run watch     # Watch and build js for Chrome
yarn run build     # Build js for Chrome
yarn run build:production # Build js for IE11+
yarn run lint       # eslint
yarn run typecheck  # flow
yarn run test       # Test in node
yarn run test:cover # Test with coverage

script/deploy # Deploy to github-pages
script/compress # Minify js and css before deploy

See package.json to learn others.

Recommended tools

  • Atom: linter, linter-eslint, linter-flow, liter-stylelint

CircleCI and Deploy

  • Clone this repository and register it.
  • Run CI by git push origin your-brach
  • Add deploy key to github
    • CircleCI - Project Settings - PERMITTIONS - Checkout SSH Key
  • Deploy by git push origin release to its github pages.
  • If you failed to delpoy by non-fast-forward, git push origin :gh-pages and retry it (work arround)

License

MIT

client-proj-skeleton's People

Contributors

mizchi avatar

Watchers

 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.