Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yjs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sweng-group-15
yjs
Commits
accf0dba
Commit
accf0dba
authored
8 years ago
by
Kevin Jahns
Browse files
Options
Downloads
Patches
Plain Diff
fixed bump script
parent
6b8ce0ab
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dist
+1
-1
1 addition, 1 deletion
dist
gulpfile.helper.js
+24
-5
24 additions, 5 deletions
gulpfile.helper.js
with
25 additions
and
6 deletions
dist
@
5c7bab42
Compare
f21e1c54
...
5c7bab42
Subproject commit
f21e1c549a12275c36980fe6d117fa1589f1ff69
Subproject commit
5c7bab422f236b5d29f767f8c6b6f0dfef55cfde
This diff is collapsed.
Click to expand it.
gulpfile.helper.js
+
24
−
5
View file @
accf0dba
...
...
@@ -127,9 +127,8 @@ module.exports = function (gulp, helperOptions) {
]))
})
gulp
.
task
(
'
bump
'
,
function
()
{
var
bumptype
return
gulp
.
src
([
'
./package.json
'
,
'
./bower.json
'
,
'
./dist/bower.json
'
],
{
base
:
'
.
'
})
gulp
.
task
(
'
bump
'
,
function
(
cb
)
{
gulp
.
src
([
'
./package.json
'
,
'
./bower.json
'
,
'
./dist/bower.json
'
],
{
base
:
'
.
'
})
.
pipe
(
$
.
prompt
.
prompt
({
type
:
'
checkbox
'
,
name
:
'
bump
'
,
...
...
@@ -139,9 +138,29 @@ module.exports = function (gulp, helperOptions) {
if
(
res
.
bump
.
length
===
0
)
{
console
.
info
(
'
You have to select a bump type. Now I
\'
m going to use "patch" as bump type..
'
)
}
bumptype
=
res
.
bump
[
0
]
var
bumptype
=
res
.
bump
[
0
]
if
(
bumptype
===
'
major
'
)
{
runSequence
(
'
bump_major
'
,
cb
)
}
else
if
(
bumptype
===
'
minor
'
)
{
runSequence
(
'
bump_minor
'
,
cb
)
}
else
{
runSequence
(
'
bump_patch
'
,
cb
)
}
}))
.
pipe
(
$
.
bump
({
type
:
bumptype
}))
})
gulp
.
task
(
'
bump_patch
'
,
function
()
{
return
gulp
.
src
([
'
./package.json
'
,
'
./bower.json
'
,
'
./dist/bower.json
'
],
{
base
:
'
.
'
})
.
pipe
(
$
.
bump
({
type
:
'
patch
'
}))
.
pipe
(
gulp
.
dest
(
'
./
'
))
})
gulp
.
task
(
'
bump_minor
'
,
function
()
{
return
gulp
.
src
([
'
./package.json
'
,
'
./bower.json
'
,
'
./dist/bower.json
'
],
{
base
:
'
.
'
})
.
pipe
(
$
.
bump
({
type
:
'
minor
'
}))
.
pipe
(
gulp
.
dest
(
'
./
'
))
})
gulp
.
task
(
'
bump_major
'
,
function
()
{
return
gulp
.
src
([
'
./package.json
'
,
'
./bower.json
'
,
'
./dist/bower.json
'
],
{
base
:
'
.
'
})
.
pipe
(
$
.
bump
({
type
:
'
major
'
}))
.
pipe
(
gulp
.
dest
(
'
./
'
))
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment