Skip to content

Commit

Permalink
6.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
yeojz committed Sep 4, 2017
1 parent e6b1d4f commit f6afbe2
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Alternatively you can
- Use unpkg.com

```html
<script src="https://unpkg.com/[email protected]/otplib-browser.js"></script>
<script src="https://unpkg.com/otplib@^6.0.0/otplib-browser.js"></script>
```

For a live example, the [project site][project-web] has been built using `otplib-browser.js`. The source code can be found [here](https://github.com/yeojz/otplib/tree/master/site).
Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ deployment:
- yarn run clean
- yarn run build
- echo -e "$NPM_USER\n$NPM_PASS\n$NPM_EMAIL" | npm login
- cd ./dist && npm publish
- cd dist && npm publish
- npm logout
- git config --global user.email $CI_DEPLOY_EMAIL
- git config --global user.name $CI_DEPLOY_NAME
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "otplib",
"version": "6.0.2",
"version": "6.0.3",
"description": "HMAC-based (HOTP) and Time-based (TOTP) One-Time Password library",
"main": "otplib.js",
"scripts": {
"build": "./scripts/build.sh",
"build:browser": "webpack --config ./scripts/webpack.config.js",
"build:docs": "jsdoc --configure jsdoc.json --verbose",
"build:module": "./scripts/build-module.sh",
"build:copy": "cp ./{README.md,LICENSE,package.json,yarn.lock,.npmignore} ./dist",
"build:transpile": "babel dist --out-dir dist",
"clean": "rimraf dist coverage docs",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"deploy-gh-pages": "./scripts/build-site.sh",
"deploy-package": "./scripts/build-publish.sh",
"lint": "eslint --ext js src",
"test": "jest --coverage",
"test:watch": "jest --coverage --watch"
Expand Down
7 changes: 7 additions & 0 deletions scripts/build-publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
yarn run clean
yarn run build
echo -e "$NPM_USER\n$NPM_PASS\n$NPM_EMAIL" | npm login
cd dist
pwd
npm publish
npm logout
10 changes: 5 additions & 5 deletions scripts/build-site.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Generate file dependants
yarn run build:browser;
yarn run build:docs;
yarn run build:browser
yarn run build:docs

# Build within site directory
cd site;
yarn install;
cd site
yarn install
yarn run clean
yarn run build;
yarn run build
yarn run deploy

cd ..
6 changes: 5 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
yarn run build:module
yarn run build:transpile
yarn run build:copy
NODE_ENV=production yarn run build:browser
cp README.md dist/README.md
cp LICENSE dist/LICENSE
cp package.json dist/package.json
cp yarn.lock dist/yarn.lock
cp .npmignore dist/.npmignore

0 comments on commit f6afbe2

Please sign in to comment.