Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gzweb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Neurorobotics Platform
gzweb
Commits
23725b8d
Commit
23725b8d
authored
9 years ago
by
Sandro Weber
Committed by
BBP code review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "fixing bower register"
parents
671fe909
e79e4203
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gz3d/utils/Gruntfile.js
+0
-41
0 additions, 41 deletions
gz3d/utils/Gruntfile.js
gz3d/utils/bower.json
+2
-1
2 additions, 1 deletion
gz3d/utils/bower.json
with
2 additions
and
42 deletions
gz3d/utils/Gruntfile.js
+
0
−
41
View file @
23725b8d
...
@@ -141,45 +141,6 @@ module.exports = function(grunt) {
...
@@ -141,45 +141,6 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'
build_and_watch
'
,
[
'
watch
'
]);
grunt
.
registerTask
(
'
build_and_watch
'
,
[
'
watch
'
]);
grunt
.
registerTask
(
'
doc
'
,
[
'
clean
'
,
'
jsdoc
'
]);
grunt
.
registerTask
(
'
doc
'
,
[
'
clean
'
,
'
jsdoc
'
]);
grunt
.
registerTask
(
'
bower_register
'
,
function
(){
var
request
=
require
(
'
request
'
);
var
bowerConfig
=
grunt
.
file
.
readJSON
(
'
./bower.json
'
);
var
baseUrl
=
grunt
.
file
.
readJSON
(
'
./.bowerrc
'
).
registry
;
var
done
=
this
.
async
();
var
registerComponent
=
function
(
done
)
{
grunt
.
log
.
writeln
(
'
Send registration request
'
);
if
(
!
(
bowerConfig
&&
bowerConfig
.
repository
&&
bowerConfig
.
repository
.
url
))
{
grunt
.
fail
.
warn
(
'
Missing repository.url key in bower.json
'
);
done
(
false
);
}
request
.
post
(
baseUrl
+
'
/packages/
'
,
{
form
:
{
name
:
bowerConfig
.
name
,
url
:
bowerConfig
.
repository
.
url
}
},
function
(
error
,
response
){
if
(
response
.
statusCode
!==
201
)
{
grunt
.
fail
.
warn
(
'
Registration failed:
'
+
response
.
statusCode
+
'
-
'
+
error
);
done
(
false
);
}
else
{
grunt
.
log
.
writeln
(
'
registration successful
'
);
done
();
}
});
};
request
.
get
(
baseUrl
+
'
/packages/
'
+
bowerConfig
.
name
,
function
(
error
,
response
)
{
if
(
error
||
response
.
statusCode
!==
200
)
{
registerComponent
(
done
);
}
else
{
grunt
.
log
.
writeln
(
'
already registered
'
);
done
();
}
});
});
grunt
.
registerTask
(
'
ci
'
,
'
Run all the build steps on the CI server
'
,
function
(
target
)
{
grunt
.
registerTask
(
'
ci
'
,
'
Run all the build steps on the CI server
'
,
function
(
target
)
{
var
tasks
=
[
'
concat
'
,
'
jshint
'
,
'
uglify
'
];
var
tasks
=
[
'
concat
'
,
'
jshint
'
,
'
uglify
'
];
var
branch
=
this
.
options
().
gerritBranch
;
var
branch
=
this
.
options
().
gerritBranch
;
...
@@ -190,8 +151,6 @@ module.exports = function(grunt) {
...
@@ -190,8 +151,6 @@ module.exports = function(grunt) {
tasks
.
push
(
'
gitcommit:bump
'
);
tasks
.
push
(
'
gitcommit:bump
'
);
tasks
.
push
(
'
gitpush:bump
'
);
tasks
.
push
(
'
gitpush:bump
'
);
tasks
.
push
(
'
gittag:dist
'
);
tasks
.
push
(
'
gittag:dist
'
);
tasks
.
push
(
'
bower_register
'
);
}
}
grunt
.
task
.
run
(
tasks
);
grunt
.
task
.
run
(
tasks
);
});
});
...
...
This diff is collapsed.
Click to expand it.
gz3d/utils/bower.json
+
2
−
1
View file @
23725b8d
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
"version"
:
"0.1.1"
,
"version"
:
"0.1.1"
,
"private"
:
true
,
"private"
:
true
,
"repository"
:
{
"repository"
:
{
"url"
:
"ssh://bbpcode.epfl.ch/neurorobotics/gzweb/gz3d"
"url"
:
"git+ssh://bbpcode.epfl.ch/neurorobotics/gzweb/gz3d"
,
"type"
:
"git"
},
},
"main"
:
"build/gz3d.js"
,
"main"
:
"build/gz3d.js"
,
"dependencies"
:
{
"dependencies"
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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