Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
9df1cf6b
Commit
9df1cf6b
authored
Mar 29, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete get_svn_info
parent
d066de4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
25 deletions
+2
-25
build/Gruntfile.js
build/Gruntfile.js
+2
-25
No files found.
build/Gruntfile.js
View file @
9df1cf6b
...
@@ -12,23 +12,6 @@ module.exports = function(grunt) {
...
@@ -12,23 +12,6 @@ module.exports = function(grunt) {
grunt
.
loadNpmTasks
(
'
grunt-exec
'
);
grunt
.
loadNpmTasks
(
'
grunt-exec
'
);
grunt
.
loadNpmTasks
(
'
grunt-replace
'
);
grunt
.
loadNpmTasks
(
'
grunt-replace
'
);
grunt
.
registerTask
(
'
get_svn_info
'
,
'
Initialize svn information
'
,
function
()
{
// Instruct this task to wait until we call the done() method to continue
var
done
=
this
.
async
();
grunt
.
util
.
spawn
({
cmd
:
'
svnversion
'
,
args
:
[
'
../../
'
],
},
function
(
error
,
result
,
code
)
{
if
(
null
===
error
)
{
revision
=
result
;
}
// All done, continue to the next tasks
done
();
});
});
grunt
.
registerTask
(
'
build_webword_init
'
,
'
Initialize build WebWord SDK.
'
,
function
(){
grunt
.
registerTask
(
'
build_webword_init
'
,
'
Initialize build WebWord SDK.
'
,
function
(){
defaultConfig
=
path
+
'
/webword.json
'
;
defaultConfig
=
path
+
'
/webword.json
'
;
packageFile
=
require
(
defaultConfig
);
packageFile
=
require
(
defaultConfig
);
...
@@ -117,13 +100,7 @@ module.exports = function(grunt) {
...
@@ -117,13 +100,7 @@ module.exports = function(grunt) {
packageFile
[
'
info
'
][
'
build
'
]
=
parseInt
(
process
.
env
[
'
BUILD_NUMBER
'
]);
packageFile
[
'
info
'
][
'
build
'
]
=
parseInt
(
process
.
env
[
'
BUILD_NUMBER
'
]);
pkg
.
info
.
build
=
packageFile
[
'
info
'
][
'
build
'
];
pkg
.
info
.
build
=
packageFile
[
'
info
'
][
'
build
'
];
}
}
if
(
undefined
!==
process
.
env
[
'
SVN_REVISION
'
]){
packageFile
[
'
info
'
][
'
rev
'
]
=
process
.
env
[
'
SVN_REVISION
'
]
||
revision
;
packageFile
[
'
info
'
][
'
rev
'
]
=
process
.
env
[
'
SVN_REVISION
'
];
}
else
{
grunt
.
log
.
ok
(
'
Use revision number
\
"
'
+
revision
+
'
\
" from svnversion!
'
.
yellow
);
packageFile
[
'
info
'
][
'
rev
'
]
=
revision
;
}
grunt
.
file
.
write
(
defaultConfig
,
JSON
.
stringify
(
pkg
,
null
,
4
));
grunt
.
file
.
write
(
defaultConfig
,
JSON
.
stringify
(
pkg
,
null
,
4
));
});
});
...
@@ -229,5 +206,5 @@ module.exports = function(grunt) {
...
@@ -229,5 +206,5 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'
compile_sdk
'
,
[
'
compile_sdk_init:
'
+
level
,
'
closure-compiler
'
,
'
concat
'
,
'
replace
'
,
'
clean
'
]);
grunt
.
registerTask
(
'
compile_sdk
'
,
[
'
compile_sdk_init:
'
+
level
,
'
closure-compiler
'
,
'
concat
'
,
'
replace
'
,
'
clean
'
]);
grunt
.
registerTask
(
'
compile_sdk_native
'
,
[
'
compile_sdk_init:
'
+
level
,
'
closure-compiler:sdk
'
,
'
concat
'
,
'
replace
'
,
'
clean
'
]);
grunt
.
registerTask
(
'
compile_sdk_native
'
,
[
'
compile_sdk_init:
'
+
level
,
'
closure-compiler:sdk
'
,
'
concat
'
,
'
replace
'
,
'
clean
'
]);
grunt
.
registerTask
(
'
default
'
,
[
'
get_svn_info
'
,
'
build_all
'
]);
grunt
.
registerTask
(
'
default
'
,
[
'
build_all
'
]);
};
};
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment