Skip to content

Commit f8816c5

Browse files
committed
[build] update the publish task and bump to 2.9.3
1 parent c522667 commit f8816c5

File tree

6 files changed

+6
-15
lines changed

6 files changed

+6
-15
lines changed

app/templates/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h3 class="modal-title">About Swagger Editor</h3>
33
</div>
44
<div class="modal-body">
55
<p>Swagger Editor</p>
6-
<p>Version 2.9.x</p>
6+
<p>Version 2.9.3</p>
77
<p><a href="https://github.com/swagger-api/swagger-editor" target="_blank">Github Project Page</a></p>
88
<iframe src="https://ghbtns.com/github-btn.html?user=swagger-api&repo=swagger-editor&type=star&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe>
99
<div class="monospace">

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swagger-editor",
3-
"version": "2.9.2",
3+
"version": "2.9.3",
44
"devDependencies": {
55
"angular": "1.3.15",
66
"angular-bootstrap": "0.11.0",

grunt/shell.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
module.exports = {
44
'publish': {
55
command: [
6-
'./node_modules/mversion/bin/version patch --tag -m "%s"',
76
'npm publish',
87
'node scripts/copy-dist-package-json.js',
98
'cd dist',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swagger-editor-src",
3-
"version": "2.9.2",
3+
"version": "2.9.3",
44
"homepage": "https://github.com/swagger-api/swagger-editor",
55
"description": "Swagger Editor",
66
"authors": [

scripts/copy-dist-package-json.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,10 @@
33
var fs = require('fs');
44
var path = require('path');
55

6-
var distPackage = fs.readFileSync(path.join('.', 'scripts', 'npm.json'));
7-
var sourcePackage = fs.readFileSync(path.join('.', 'package.json'));
8-
9-
distPackage = parse(distPackage);
10-
sourcePackage = parse(sourcePackage);
6+
var distPackage = require('./scripts/npm.json');
7+
var sourcePackage = require('./package.json');
118

129
distPackage.version = sourcePackage.version;
1310

1411
fs.writeFileSync(path.join('.', 'dist', 'package.json'),
1512
JSON.stringify(distPackage), null, 4);
16-
17-
18-
function parse (buffer) {
19-
return JSON.parse(buffer.toString());
20-
}

scripts/npm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "swagger-editor",
33
"description": "Swagger Editor Web App",
4-
"version": "2.9.2",
4+
"version": "2.9.3",
55
"repository": "https://github.com/swagger-api/swagger-editor.git",
66
"dependencies": {},
77
"devDependencies": {},

0 commit comments

Comments
 (0)