Skip to content

Commit

Permalink
added deployment scripts 👷
Browse files Browse the repository at this point in the history
  • Loading branch information
yeojz committed May 28, 2017
1 parent 0f95c00 commit 3207c53
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# babel-plugin-transform-assets-import-to-string
> Babel plugin that transforms image assets import and requires to urls / cdn
[![npm][npm-badge]][npm-link]
[![Build Status][circle-badge]][circle-link]

## Table of Contents
Expand Down Expand Up @@ -35,6 +36,8 @@ const image1 = 'http://your.cdn.address/assets/icon1.svg';
// ajaxAsyncRequest(image)
```

See the spec for more [examples](babel-plugin-transform-assets-import-to-string/blob/master/test/index.spec.js).

## Installation

```
Expand Down Expand Up @@ -85,4 +88,5 @@ __Note:__ leading `.` (dot) is required.
[circle-badge]: https://img.shields.io/circleci/project/github/yeojz/babel-plugin-transform-assets-import-to-string/master.svg?style=flat-square
[circle-link]: https://circleci.com/gh/yeojz/babel-plugin-transform-assets-import-to-string


[npm-badge]: https://img.shields.io/npm/v/babel-plugin-transform-assets-import-to-string.svg?style=flat-square
[npm-link]: https://www.npmjs.com/package/babel-plugin-transform-assets-import-to-string
14 changes: 14 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,17 @@ test:
override:
- npm run test
- npm run lint
deployment:
coverage:
branch: [master, /^hotfix\/.*$/, /^feature\/.*$/]
commands:
- npm run coveralls
release:
tag: /^v[0-9]+(\.[0-9]+)*$/
owner: yeojz
commands:
- npm run clean
- npm run build
- echo -e "$NPM_USER\n$NPM_PASS\n$NPM_EMAIL" | npm login
- npm publish
- npm logout

0 comments on commit 3207c53

Please sign in to comment.