Skip to content

Commit

Permalink
Update version info.
Browse files Browse the repository at this point in the history
  • Loading branch information
cssmagic committed Jul 31, 2018
1 parent 983afb6 commit 83f5174
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* 也可以在页面中直接加载 CDN 版本:

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/nasa.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/nasa\[email protected].4/dist/nasa.min.js"></script>
```

### 文档
Expand Down
19 changes: 19 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,28 @@ gulp.task('js', gulpfiles.concat({
},
}))

gulp.task('readme', gulpfiles.concat({
rules: {
'README.md': ['./README.md'],
},
dest: './',
config: {
pipes: [
{
plugin: 'replace',
config: [
/cdn\.jsdelivr\.net\/npm\/nasa\.js@[0-9.]+\/dist\//g,
`cdn\.jsdelivr\.net\/npm\/nasa\\.js@${version}\/dist\/`,
],
},
]
},
}))

gulp.task('dist', gulp.series([
'clean',
'deps',
'js',
'readme',
]))
gulp.task('default', gulp.series('dist'))
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nasa.js",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/NasaTeam/Nasa.js",
"author": "cssmagic <[email protected]>",
"description": "Lightweight and friendly util library for DApp development on Nebulas Blockchain.",
Expand Down
2 changes: 1 addition & 1 deletion src/_wrapper/dist-global.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Nasa.js {{ version }} | LGPL-3.0 | https://github.com/NasaTeam/Nasa.js */
/*! Nasa.js v{{ version }} | LGPL-3.0 | https://github.com/NasaTeam/Nasa.js */
void function (window, document, undefined) {

// check conflict, and avoid repeated executing
Expand Down

0 comments on commit 83f5174

Please sign in to comment.