diff --git a/README.md b/README.md index 9509a3c..c4558f7 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 ``` @@ -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 diff --git a/circle.yml b/circle.yml index e419a33..85584d7 100644 --- a/circle.yml +++ b/circle.yml @@ -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