Skip to content

Commit

Permalink
Merge pull request #190 from dabapps/publish-to-npm
Browse files Browse the repository at this point in the history
Publish to npm
  • Loading branch information
JakeSidSmith authored Jan 26, 2018
2 parents a6bbe25 + dfd3a78 commit daabc5a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!/dist/*
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ deploy:
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: master

deploy:
provider: npm
email: [email protected]
on:
tags: true
api_key:
secure: NiEYS2mfHM0O7HxZ+tLFe9YCjkaZB2cy2tHLGqGnWUdNM4CLRugbAreYRgewylbWoqwm3ge5G2PbDKpf19t6aB/RSDtjm4OcSfPZF2MM/s0K2Cnoh62TRbEnZHmaDF6v73GI1H6sxp3EQvHpGt3JyPblNelBkW1MbnlFPAmxiivRIBjEDPyCtwUE3SnnoTJM8ojmFOZL5sidXWH1S4iJslO3i4Y8LUISKOqr9etII9HuaxrIuf0H5rL8uWBnhw9A4y+dCRt6yBkfm4jTPg0s2T1oPQYLsu9OV2vmbmctu3D3qF2RG3k2m2NeWpIdicaEsLl2W9yBdXy1NRfNst85s40Gr5VW3DeHhC34In801rYHSSXcs/bMwXJ+pIFyAg/Q1BaJgbcLyXJghQznqXzWHyErmbi/0nnkVkny3QVajAZBialdNt+6Qh2bI7cDERkEA+ViOaRYoO48Xioxv8GqWPmdm1x/bsBU6CZlUgCd/7+Qdro9TFjAg/qPODpw8csORGWpFGDfk5z0r3Ki6XX6/ZunnMXZ88B91Hw+d29YlxuXOIljVZIWri1aVXymIa0OM6o+6lznIpJEBa73UiLdnafoY8ytxN0iWeQAET56WwfZepqgO2L+sRNiAWmnKOikJ3EmS7eGIXTgZ6X0pynLvLBDK/Wm2NCR1UiGKkzAiwo=
skip_cleanup: true
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ npm start
You need to install Roe and its peer dependencies with npm. Npm should warn you if you haven't installed any peer dependencies.

```shell
npm i dabapps/roe#vX.X.X
npm i @dabapps/roe -SE
```

Note: `-SE` is shorthand for `--save` (to add to package.json) `--save-exact` (exact version).

Install a specific version with

```shell
npm i @dabapps/[email protected] -SE
```

See [releases](https://github.com/dabapps/roe/releases) for a full list of versions.
Expand All @@ -30,7 +38,7 @@ See [releases](https://github.com/dabapps/roe/releases) for a full list of versi
Include Roe in your main `index.less` file. Do not use `../` in the path.

```less
@import 'node_modules/roe/src/less/index.less';
@import 'node_modules/@dabapps/roe/src/less/index.less';
```

### Components
Expand All @@ -42,7 +50,7 @@ import {
Column,
Container,
Row
} from 'roe';
} from '@dabapps/roe';
```

### Code Higlighting
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "roe",
"name": "@dabapps/roe",
"version": "0.8.30",
"description": "A Collection of React Components for Project Development",
"main": "dist/js/index.js",
Expand Down Expand Up @@ -27,6 +27,9 @@
"react",
"components"
],
"publishConfig": {
"access": "restricted"
},
"author": "DabApps",
"license": "BSD-3-Clause",
"bugs": {
Expand Down

0 comments on commit daabc5a

Please sign in to comment.