Skip to content

Commit 44b5ecf

Browse files
committed
remove release versioning in repo
1 parent abb8ac3 commit 44b5ecf

File tree

73 files changed

+149
-25110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+149
-25110
lines changed

Gruntfile.js

Lines changed: 96 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*global module:false*/
22
module.exports = function(grunt) {
33

4-
var component = require('./bower.json');
4+
var component = require('./package.json');
55
// before release:
66
// update component.js, package.json
77
// after release:
@@ -69,32 +69,72 @@ module.exports = function(grunt) {
6969

7070
uglify: {
7171
options: {
72-
banner: '<%= meta.banner %>'
72+
banner: '<%= meta.banner %>',
7373
},
7474
// bin: {
7575
// src: ['bin/flowchart-latest.js'],
7676
// dest: 'bin/flowchart-<%= meta.version %>.min.js'
7777
// },
78+
// release: {
79+
// src: ['bin/flowchart-latest.js'],
80+
// dest: 'release/flowchart-<%= meta.version %>.min.js',
81+
// options: {
82+
// sourceMap: true,
83+
// sourceMapName: 'release/flowchart-<%= meta.version %>.min.map'
84+
// }
85+
// },
86+
// amd: {
87+
// src: ['bin/flowchart.amd-latest.js'],
88+
// dest: 'release/flowchart.amd-<%= meta.version %>.min.js',
89+
// options: {
90+
// sourceMap: true,
91+
// sourceMapName: 'release/flowchart.amd-<%= meta.version %>.min.map'
92+
// }
93+
// }
7894
release: {
7995
src: ['bin/flowchart-latest.js'],
80-
dest: 'release/flowchart-<%= meta.version %>.min.js'
96+
dest: 'release/flowchart.min.js',
97+
options: {
98+
sourceMap: true,
99+
sourceMapName: 'release/flowchart.min.map'
100+
}
81101
},
82102
amd: {
83103
src: ['bin/flowchart.amd-latest.js'],
84-
dest: 'release/flowchart.amd-<%= meta.version %>.min.js'
104+
dest: 'release/flowchart.amd.min.js',
105+
options: {
106+
sourceMap: true,
107+
sourceMapName: 'release/flowchart.amd.min.map'
108+
}
85109
}
86110
},
87111

88112
copy: {
89113
js: {
114+
// files: [
115+
// { expand: true, cwd: 'bin/', src: ['*.js'], dest: 'release/',
116+
// rename: function(dest, src) { console.log(src + ' -> ' + dest);
117+
// if (src == 'flowchart-latest.js') {
118+
// dest += 'flowchart-' + component.version + '.js';
119+
// }
120+
// if (src == 'flowchart.amd-latest.js') {
121+
// dest += 'flowchart.amd-' + component.version + '.js';
122+
// }
123+
// return dest;
124+
// }
125+
// },
126+
// { expand: true, cwd: 'bin/', src: ['flowchart-latest.js'], dest: 'site/'}
127+
// //'bin/': ['bin/flowchart-latest.js', 'bin/flowchart.amd-latest.js'],
128+
// //'release/': ['bin/flowchart-latest.js', 'bin/flowchart.amd-latest.js']
129+
// ]
90130
files: [
91131
{ expand: true, cwd: 'bin/', src: ['*.js'], dest: 'release/',
92132
rename: function(dest, src) { console.log(src + ' -> ' + dest);
93133
if (src == 'flowchart-latest.js') {
94-
dest += 'flowchart-' + component.version + '.js';
134+
dest += 'flowchart.js';
95135
}
96136
if (src == 'flowchart.amd-latest.js') {
97-
dest += 'flowchart.amd-' + component.version + '.js';
137+
dest += 'flowchart.amd.js';
98138
}
99139
return dest;
100140
}
@@ -107,47 +147,29 @@ module.exports = function(grunt) {
107147
},
108148

109149
compress: {
110-
zip: {
111-
options: {
112-
archive: 'release/flowchart-<%= meta.version %>.zip',
113-
mode: 'zip',
114-
level: 1
115-
},
116-
files: [
117-
{
118-
expand: true,
119-
flatten: true,
120-
cwd: 'release/',
121-
src: [
122-
'flowchart-<%= meta.version %>.js',
123-
'flowchart-<%= meta.version %>.min.js'
124-
],
125-
dest: 'flowchart-<%= meta.version %>/'
126-
}
127-
]
128-
},
150+
// zip: {
151+
// options: {
152+
// archive: 'release/flowchart-<%= meta.version %>.zip',
153+
// mode: 'zip',
154+
// level: 1
155+
// },
156+
// files: [
157+
// {
158+
// expand: true,
159+
// flatten: true,
160+
// cwd: 'release/',
161+
// src: [
162+
// 'flowchart-<%= meta.version %>.js',
163+
// 'flowchart-<%= meta.version %>.min.js',
164+
// 'flowchart-<%= meta.version %>.min.map'
165+
// ],
166+
// dest: 'flowchart-<%= meta.version %>/'
167+
// }
168+
// ]
169+
// },
129170
'zip-latest': {
130171
options: {
131-
archive: 'release/flowchart-latest.zip',
132-
mode: 'zip',
133-
level: 1
134-
},
135-
files: [
136-
{
137-
expand: true,
138-
flatten: true,
139-
cwd: 'release/',
140-
src: [
141-
'flowchart-<%= meta.version %>.js',
142-
'flowchart-<%= meta.version %>.min.js'
143-
],
144-
dest: 'flowchart-latest/'
145-
}
146-
]
147-
},
148-
zipamd: {
149-
options: {
150-
archive: 'release/flowchart.amd-<%= meta.version %>.zip',
172+
archive: 'release/flowchart.zip',
151173
mode: 'zip',
152174
level: 1
153175
},
@@ -157,16 +179,37 @@ module.exports = function(grunt) {
157179
flatten: true,
158180
cwd: 'release/',
159181
src: [
160-
'flowchart.amd-<%= meta.version %>.js',
161-
'flowchart.amd-<%= meta.version %>.min.js'
182+
'flowchart.js',
183+
'flowchart.min.js',
184+
'flowchart.min.map'
162185
],
163-
dest: 'flowchart.amd-<%= meta.version %>/'
186+
dest: 'flowchart/'
164187
}
165188
]
166189
},
190+
// zipamd: {
191+
// options: {
192+
// archive: 'release/flowchart.amd-<%= meta.version %>.zip',
193+
// mode: 'zip',
194+
// level: 1
195+
// },
196+
// files: [
197+
// {
198+
// expand: true,
199+
// flatten: true,
200+
// cwd: 'release/',
201+
// src: [
202+
// 'flowchart.amd-<%= meta.version %>.js',
203+
// 'flowchart.amd-<%= meta.version %>.min.js',
204+
// 'flowchart.amd-<%= meta.version %>.min.map'
205+
// ],
206+
// dest: 'flowchart.amd-<%= meta.version %>/'
207+
// }
208+
// ]
209+
// },
167210
'zipamd-latest': {
168211
options: {
169-
archive: 'release/flowchart.amd-latest.zip',
212+
archive: 'release/flowchart.amd.zip',
170213
mode: 'zip',
171214
level: 1
172215
},
@@ -176,10 +219,11 @@ module.exports = function(grunt) {
176219
flatten: true,
177220
cwd: 'release/',
178221
src: [
179-
'flowchart.amd-<%= meta.version %>.js',
180-
'flowchart.amd-<%= meta.version %>.min.js'
222+
'flowchart.amd.js',
223+
'flowchart.amd.min.js',
224+
'flowchart.amd.min.map'
181225
],
182-
dest: 'flowchart-latest/'
226+
dest: 'flowchart/'
183227
}
184228
]
185229
}

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "flowchart",
3-
"version": "1.4.0",
4-
"main": "./release/flowchart-1.4.0.min.js",
3+
"version": "1.4.1",
4+
"main": "./release/flowchart.min.js",
55
"dependencies": {},
66
"ignore": [
77
"src/",

example/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
</style>
99
<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
1010
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
11-
<script src="../bin/flowchart-latest.js"></script>
12-
<!--<script src="../release/flowchart-1.4.0.min.js"></script>-->
11+
<script src="http://flowchart.js.org/flowchart-latest.js"></script>
12+
<!--<script src="../bin/flowchart-latest.js"></script>-->
13+
<!--<script src="../release/flowchart-1.4.1.min.js"></script>-->
1314
<script>
1415

1516
window.onload = function () {
@@ -79,7 +80,7 @@
7980
op1=>operation: My Operation|past
8081
op2=>operation: Stuff|current
8182
sub1=>subroutine: My Subroutine|invalid
82-
cond=>condition: Yes
83+
cond=>condition: Yes
8384
or No?|approved:>http://www.google.com
8485
c2=>condition: Good idea|rejected
8586
io=>inputoutput: catch something...|request

example/loadFile.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
</style>
99
<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
1010
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
11-
<script src="../bin/flowchart-latest.js"></script>
11+
<script src="http://flowchart.js.org/flowchart-latest.js"></script>
12+
<!--<script src="../bin/flowchart-latest.js"></script>-->
13+
<!--<script src="../release/flowchart-1.4.1.min.js"></script>-->
1214
<script>
1315
$(document).ready(function() {
1416
$.ajax({
@@ -25,4 +27,4 @@
2527
<body>
2628
<div id="canvas"></div>
2729
</body>
28-
</html>
30+
</html>

package.json

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
22
"author": "adrai",
3-
"name": "flowchart-clientscript",
4-
"version": "1.4.0",
5-
"private": true,
6-
"main": "server.js",
3+
"name": "flowchart",
4+
"version": "1.4.1",
5+
"private": false,
76
"engines": {
87
"node": "~v0.4.12"
98
},
109
"dependencies": {},
1110
"devDependencies": {
12-
"grunt": "~0.4.1",
13-
"grunt-rigger": "~0.5.0",
11+
"grunt": ">=0.4.1",
12+
"grunt-rigger": ">=0.5.0",
1413
"grunt-contrib": ">=0.1.0",
1514
"express": ">= 0.0.1",
1615
"async": ">= 0.1.18",
@@ -19,5 +18,24 @@
1918
},
2019
"scripts": {
2120
"test": ""
22-
}
21+
},
22+
"repository": {
23+
"type": "git",
24+
"url": "https://github.com/adrai/flowchart.js.git"
25+
},
26+
"keywords": [
27+
"flowchart",
28+
"client",
29+
"script"
30+
],
31+
"homepage": "http://flowchart.js.org/",
32+
"license": "MIT",
33+
"files": [
34+
"release/flowchart.js",
35+
"release/flowchart.min.js",
36+
"release/flowchart.min.map",
37+
"release/flowchart.amd.js",
38+
"release/flowchart.amd.min.js",
39+
"release/flowchart.amd.min.map"
40+
]
2341
}

0 commit comments

Comments
 (0)