2.6.0 • Published 5 years ago

or-template v2.6.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

component template

a SAOJS template for one react components

Build Status Build Status Version Chat License: MIT JavaScript Style Guide Greenkeeper badge

Features

  • Bundle lib(commonjs) and es module format
  • Semantic release manages npm package publishment
  • Babel@7 for transpiling
  • Typescript support
  • Sass support
  • Storybook for examples and local dev, and auto deploy to gh-pages in CI
  • Jest for unit test
  • TravisCI and CircleCI integrations
  • Greenkeeper to manage update for npm dependencies
  • Tslint and prettier for code styles

Installation

recommend node >= 8

Install SAOJS first.

npm i -g sao

Create a new component

From git(recommend)

cd my-component
sao one-react/component-template --update // force using latest

From npm

cd my-component
sao or-template --update

After answering necessary questions, the component initial process begins:

  • Copy files from this template
  • Install node modules by npm
  • Initialize git repo

Then the project structrue should be like this:

Development

Must install dependencies under both root dir and examples dir firstly

cd examples
npm run dev

Open http://localhost:9001 to see your component running in browser.

Npm package publish

Semantic release will release the package by SemVer in CI process(only master branch)

Docs/examples deployment

Bundles from examples will be deployed in CI process(only master branch)

License

MIT © <%= username %>

2.6.0

5 years ago

2.5.2

6 years ago

2.5.1

6 years ago

2.5.0

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago