Skip to content

Commit f27cc2a

Browse files
bcarroll22mrbinky3000
authored andcommitted
feat(ci): automate build and releases (#215)
* feat(ci): automated release builds * feat(ci): add automated builds when following commit convention * fix: readme formatting * fix: readme formatting * fix: add contributors to toc * fix: add contributors to toc * fix: reorder badges * chore(ci): update travis config * chore: add npm commands for commits * fix build failure * move release config to proper place * fix lint errors * fix lint errors
1 parent fdebc3a commit f27cc2a

File tree

6 files changed

+86
-13977
lines changed

6 files changed

+86
-13977
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ coverage.json
5858
.DS_Store
5959
.npmrc
6060

61-
/.idea
61+
.idea/
6262

63-
# Yarn files
63+
# these cause more harm than good
64+
# when working with contributors
65+
package-lock.json
6466
yarn.lock

.travis.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
sudo: false
12
language: node_js
2-
node_js: "6"
3-
after_success: npm test
3+
cache: npm
4+
notifications:
5+
email: false
6+
node_js:
7+
- 8
8+
- 10
9+
- 12
10+
install:
11+
- npm i
12+
# as requested by the React team :)
13+
# https://reactjs.org/blog/2019/10/22/react-release-channels.html#using-the-next-channel-for-integration-testing
14+
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then npm install react@next react-dom@next; fi
15+
script:
16+
- npm run lint
17+
- npm run test
18+
jobs:
19+
include:
20+
- stage: release
21+
if: branch = master AND type != pull_request
22+
node_js: 10
23+
script: npm run semantic-release

README.md

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,37 @@
1+
<div align="center">
2+
<h1>Pure React Carousel</h1>
3+
4+
Created By
5+
<br />
6+
<a href="http://www.express.com">
7+
<img
8+
height="27"
9+
width="164"
10+
alt="Express Logo"
11+
src="https://raw.github.com/express-labs/pure-react-carousel/master/dev/media/express-logo.svg?sanitize=true"
12+
/>
13+
</a>
14+
<br />
15+
<p>A highly impartial suite of React components that can be assembled by the consumer to create a responsive and aria compliant carousel with almost no limits on DOM structure or CSS styles.</p>
16+
17+
[**See Live Examples**](https://express-labs.github.io/pure-react-carousel/) |
18+
[See Example Code](src/App/examples)
19+
</div>
20+
21+
<hr />
22+
123
[![Build Status](https://travis-ci.org/express-labs/pure-react-carousel.svg?branch=master)](https://travis-ci.org/express-labs/pure-react-carousel)
2-
[![All Contributors](https://img.shields.io/badge/all_contributors-19-orange.svg?style=flat-square)](#contributors-)
324
[![Known Vulnerabilities](https://snyk.io/test/github/express-labs/pure-react-carousel/badge.svg)](https://snyk.io/test/github/express-labs/pure-react-carousel)
25+
[![version](https://img.shields.io/npm/v/pure-react-carousel.svg?style=flat-square)](https://www.npmjs.com/package/pure-react-carousel)
26+
[![downloads](https://img.shields.io/npm/dm/pure-react-carousel.svg?style=flat-square)](http://www.npmtrends.com/pure-react-carousel)
27+
[![MIT License](https://img.shields.io/npm/l/pure-react-carousel.svg?style=flat-square)](https://github.com/express-labs/pure-react-carousel/blob/master/LICENSE)
428

5-
Created by
6-
[![Express Logo](https://raw.github.com/express-labs/pure-react-carousel/master/dev/media/express-logo.svg?sanitize=true)](http://www.express.com)
7-
8-
# pure-react-carousel
29+
[![All Contributors](https://img.shields.io/badge/all_contributors-19-orange.svg?style=flat-square)](#contributors-)
30+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
31+
[![Code of Conduct](https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square)](https://github.com/express-labs/pure-react-carousel/blob/master/CODE_OF_CONDUCT.md)
932

1033

11-
A highly impartial suite of React components that can be assembled by the consumer to create a responsive and aria compliant carousel with almost no limits on DOM structure or CSS styles.
34+
## Motivation
1235

1336
My goal was to create a 100% ReactJS carousel that doesn't try to impose structure or styles that need to be defeated in order to match your site's design standards. Are you tired of fighting some other developer's CSS or DOM structure? If so, this carousel is for you.
1437

@@ -24,11 +47,7 @@ Carousels: Love them or hate them. However, if you are a React developer, and y
2447
- Supports ES6 and commonjs.
2548
- Has 100% test coverage. Solid!
2649

27-
### ghpage
28-
29-
https://express-labs.github.io/pure-react-carousel/ (source code example is in [`src/App/`](src/App/))
30-
31-
# Table of contents
50+
## Table of contents
3251
* [🛠 Tutorial](#-tutorial)
3352
* [Component Properties (props)](#component-properties-props)
3453
* [Components](#components)
@@ -48,6 +67,7 @@ https://express-labs.github.io/pure-react-carousel/ (source code example is in [
4867
* [WithStore() Higher Order Component](#withstore-higher-order-component-1)
4968
* [Examples](#examples)
5069
* [Dev Workflow](#dev-workflow)
70+
* [Contributors](#contributors)
5171

5272
## 🛠 Tutorial
5373
Let's make a simple carousel with three slides, a next button, and a back button.
@@ -629,7 +649,7 @@ I promise to add docs for every component. In the meantime, feel free to downlo
629649
- `npm lint` runs linting tests using eslint & airbnb linting.<br><br>
630650
- `npm test:watch` same as `npm test` but it will watch for updates and auto-run tests. Does not do coverage reporting.<br><br>
631651
632-
## Contributors
652+
## Contributors
633653
634654
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
635655

0 commit comments

Comments
 (0)