Skip to content

Commit

Permalink
no version in js file
Browse files Browse the repository at this point in the history
  • Loading branch information
tkthundr committed Feb 5, 2020
1 parent d786c87 commit 04c652f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Or if you're not into package management, just [download a ZIP](https://github.c
First, include the script located on the `dist` folder or load it from unpkg.

```html
<script src="https://unpkg.com/[email protected].0/dist/lnpay-js-0.1.0.min.js"></script>
<script src="https://unpkg.com/lnpay-js@^0.1/dist/lnpay.min.js"></script>
```

Now, you need to instantiate it with a Public API Key from [LNPay.co](https://lnpay.co)
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion example/example1.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
</style>
<title>lnpay-js</title>
<script src="../dist/lnpay-js-0.1.0.js"></script>
<script src="../dist/lnpay.js"></script>
<script>
/**
* Initialize the SDK with our keys
Expand Down
7 changes: 2 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ gulp.task('example-upgrade-tag', function(){
let v = pkg.version;
let file = 'example/*.html';

return gulp.src([file])
.pipe(replace(/lnpay-js-([\d.]+)\.js/g, 'lnpay-js-' + v + '.js'))
.pipe(gulp.dest('example'));
});

// continous integration tasks
Expand Down Expand Up @@ -174,9 +171,9 @@ gulp.task('build', gulp.series('clean', function (cb) {
let pkg = require('./package.json');

return gulp.src('./src/*.js')
.pipe(concat(pkg.name + '-' + pkg.version + '.js'))
.pipe(concat(pkg.name.replace('-js','') + '.js'))
.pipe(gulp.dest('./dist'))
.pipe(rename(pkg.name + '-' + pkg.version + '.min.js'))
.pipe(rename(pkg.name.replace('-js','') + '.min.js'))
.pipe(uglify())
.pipe(size({showFiles:true}))
.pipe(gulp.dest('./dist'));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lnpay-js",
"preferGlobal": true,
"analyze": false,
"version": "0.1.1",
"version": "0.1.2",
"author": "Tim Kijewski <[email protected]>",
"description": "LNPay JavaScript SDK",
"repository": {
Expand Down

0 comments on commit 04c652f

Please sign in to comment.