Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Commit

Permalink
updated generator files
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Maekelbergh committed Nov 17, 2016
1 parent 9ae8293 commit 3943841
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 9,615 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ JavaScript API wrapper for bpost track & trace
[![NPM](https://img.shields.io/npm/v/bpost.svg?style=flat-square)](https://www.npmjs.com/package/bpost)
[![David](https://img.shields.io/david/thibmaek/bpost.svg?style=flat-square)](https://david-dm.org/thibmaek/bpost)
[![Travis](https://img.shields.io/travis/thibmaek/bpost/master.svg?style=flat-square)](https://travis-ci.org/thibmaek/bpost)
[![Gitmoji](https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg?style=flat-square)](https://gitmoji.carloscuesta.me/)

### Installation

Install via yarn or npm
Install via [yarn](https://github.com/yarnpkg/yarn)

yarn add --dev bpost
yarn add bpost (--dev)

or
or npm

npm install --save-dev bpost
npm install bpost (--save-dev)


If you don't use a package manager, you can [access `bpost` via unpkg (CDN)](https://unpkg.com/bpost/), download the source, or point your package manager to the url.
Expand All @@ -23,20 +24,26 @@ If you don't use a package manager, you can [access `bpost` via unpkg (CDN)](htt

The `bpost` package includes precompiled production and development [UMD](https://github.com/umdjs/umd) builds in the [`dist` folder](https://unpkg.com/bpost/dist/). They can be used directly without a bundler and are thus compatible with many popular JavaScript module loaders and environments. You can drop a UMD build as a [`<script>` tag](https://unpkg.com/bpost) on your page. The UMD builds make `bpost` available as a `window.bpost` global variable.

This module was created using [generator-module-boilerplate](https://github.com/duivvv/generator-module-boilerplate).

### Usage

```js
### setup

```js
// es native
import bpost from 'bpost';

// CommonJS
const bpost = require('bpost');
```

### Configuration
### methods

### Examples

see [`example` folder](example/)
see [`example`](example/script.js) folder or the [runkit](https://runkit.com//gen) example

### License

MIT
[MIT](LICENSE)
4 changes: 2 additions & 2 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1479381691301" clover="3.2.0">
<project timestamp="1479381691301" name="All files">
<coverage generated="1479388221763" clover="3.2.0">
<project timestamp="1479388221763" name="All files">
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0">
</metrics>
</project>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Nov 17 2016 12:21:31 GMT+0100 (CET)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Nov 17 2016 14:10:21 GMT+0100 (CET)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
9,586 changes: 0 additions & 9,586 deletions dist/bpost.js

This file was deleted.

3 changes: 0 additions & 3 deletions dist/bpost.min.js

This file was deleted.

13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"module": "es/index.js",
"jsxnext:main": "es/index.js",
"watch": {
"prepublish": {
"lint:build:test": {
"patterns": [
"src",
"__tests__"
Expand All @@ -23,17 +23,19 @@
"src"
],
"pre-commit": [
"prepublish"
"lint:build:test"
],
"pre-push": [
"prepublish"
"lint:build:test"
],
"scripts": {
"lint": "eslint src/*.js",
"test": "jest --coverage",
"prepublish": "npm run lint && npm run build:cjs && npm run test",
"lint:build:test": "npm run lint && npm run build:cjs && npm run test",
"prepublish": "npm run build",
"development": "npm-watch",
"build": "npm run prepublish && npm run build:es && npm run build:umd",
"release": "release-it",
"build": "npm run lint:build:test && npm run build:es && npm run build:umd",
"build:es": "rimraf es && cross-env BABEL_ENV=es babel src --out-dir es",
"build:cjs": "rimraf cjs && cross-env BABEL_ENV=cjs babel src --out-dir cjs",
"build:umd": "rimraf dist && cross-env BABEL_ENV=es rollup -c & cross-env BABEL_ENV=es NODE_ENV=production rollup -c"
Expand All @@ -55,6 +57,7 @@
"npm-watch": "^0.1.6",
"pre-commit": "^1.1.3",
"pre-push": "^0.1.1",
"release-it": "^2.5.1",
"rimraf": "^2.5.4",
"rollup": "^0.36.1",
"rollup-plugin-babel": "^2.6.1",
Expand Down

0 comments on commit 3943841

Please sign in to comment.