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
c0c1edf6
Commit
c0c1edf6
authored
8 years ago
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete defines
parent
472d4436
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
36 deletions
+2
-36
build/Gruntfile.js
build/Gruntfile.js
+2
-17
build/configs/webexcel.json
build/configs/webexcel.json
+0
-6
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+0
-7
build/configs/webword.json
build/configs/webword.json
+0
-6
No files found.
build/Gruntfile.js
View file @
c0c1edf6
...
@@ -69,9 +69,7 @@ module.exports = function(grunt) {
...
@@ -69,9 +69,7 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'
compile_sdk_init
'
,
function
(
compilation_level
)
{
grunt
.
registerTask
(
'
compile_sdk_init
'
,
function
(
compilation_level
)
{
var
tmp_sdk_path
=
'
sdk-js.tmp
'
;
var
tmp_sdk_path
=
'
sdk-js.tmp
'
;
var
concat_src
=
[
var
concat_src
=
[
packageFile
[
'
compile
'
][
'
sdk
'
][
'
dst
'
]];
packageFile
[
'
compile
'
][
'
sdk
'
][
'
dst
'
],
packageFile
[
'
compile
'
][
'
defines
'
][
'
dst
'
]];
var
concat_src_with_banner_file
=
[];
var
concat_src_with_banner_file
=
[];
var
srcFiles
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
common
'
];
var
srcFiles
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
common
'
];
var
sdkOpt
=
{
var
sdkOpt
=
{
...
@@ -79,12 +77,8 @@ module.exports = function(grunt) {
...
@@ -79,12 +77,8 @@ module.exports = function(grunt) {
warning_level
:
'
QUIET
'
,
warning_level
:
'
QUIET
'
,
externs
:
packageFile
[
'
compile
'
][
'
sdk
'
][
'
externs
'
]
externs
:
packageFile
[
'
compile
'
][
'
sdk
'
][
'
externs
'
]
};
};
var
definesOpt
=
{
compilation_level
:
'
ADVANCED
'
===
compilation_level
?
'
SIMPLE
'
:
compilation_level
,
warning_level
:
'
QUIET
'
};
if
(
formatting
)
{
if
(
formatting
)
{
definesOpt
[
'
formatting
'
]
=
sdkOpt
[
'
formatting
'
]
=
formatting
;
sdkOpt
[
'
formatting
'
]
=
formatting
;
}
}
if
(
grunt
.
option
(
'
mobile
'
))
{
if
(
grunt
.
option
(
'
mobile
'
))
{
...
@@ -119,12 +113,6 @@ module.exports = function(grunt) {
...
@@ -119,12 +113,6 @@ module.exports = function(grunt) {
'
<%= pkg.compile.sdk.dst %>
'
:
srcFiles
'
<%= pkg.compile.sdk.dst %>
'
:
srcFiles
},
},
options
:
sdkOpt
options
:
sdkOpt
},
defines
:
{
files
:
{
'
<%= pkg.compile.defines.dst %>
'
:
packageFile
[
'
compile
'
][
'
defines
'
][
'
src
'
]
},
options
:
definesOpt
}
}
},
},
concat
:
{
concat
:
{
...
@@ -142,7 +130,6 @@ module.exports = function(grunt) {
...
@@ -142,7 +130,6 @@ module.exports = function(grunt) {
}
}
},
},
clean
:
[
clean
:
[
packageFile
[
'
compile
'
][
'
defines
'
][
'
dst
'
],
tmp_sdk_path
tmp_sdk_path
],
],
replace
:
{
replace
:
{
...
@@ -162,7 +149,5 @@ module.exports = function(grunt) {
...
@@ -162,7 +149,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
(
'
default
'
,
[
'
build_webpowerpoint
'
]);
grunt
.
registerTask
(
'
default
'
,
[
'
build_webpowerpoint
'
]);
};
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
build/configs/webexcel.json
View file @
c0c1edf6
...
@@ -216,12 +216,6 @@
...
@@ -216,12 +216,6 @@
"map"
:
"sdk-all.js.map"
,
"map"
:
"sdk-all.js.map"
,
"log"
:
"../cell/Build/Log"
"log"
:
"../cell/Build/Log"
},
},
"defines"
:
{
"src"
:
[
"../common/Shapes/EditorSettings.js"
],
"dst"
:
"apiDefines.min.js"
},
"source_map"
:
{
"source_map"
:
{
"url"
:
"http://localhost:8080/sdkjs/cell"
"url"
:
"http://localhost:8080/sdkjs/cell"
}
}
...
...
This diff is collapsed.
Click to expand it.
build/configs/webpowerpoint.json
View file @
c0c1edf6
...
@@ -200,13 +200,6 @@
...
@@ -200,13 +200,6 @@
"map"
:
"sdk-all.js.map"
,
"map"
:
"sdk-all.js.map"
,
"log"
:
"../slide/Build/Log"
"log"
:
"../slide/Build/Log"
},
},
"defines"
:
{
"src"
:
[
"../common/Shapes/EditorSettings.js"
,
"../slide/themes/Themes.js"
],
"dst"
:
"apiDefines.min.js"
},
"source_map"
:
{
"source_map"
:
{
"url"
:
"http://localhost:8080/sdkjs/slide"
"url"
:
"http://localhost:8080/sdkjs/slide"
}
}
...
...
This diff is collapsed.
Click to expand it.
build/configs/webword.json
View file @
c0c1edf6
...
@@ -178,12 +178,6 @@
...
@@ -178,12 +178,6 @@
"map"
:
"sdk-all.js.map"
,
"map"
:
"sdk-all.js.map"
,
"log"
:
"../word/Build/Log"
"log"
:
"../word/Build/Log"
},
},
"defines"
:
{
"src"
:
[
"../common/Shapes/EditorSettings.js"
],
"dst"
:
"apiDefines.min.js"
},
"source_map"
:
{
"source_map"
:
{
"url"
:
"http://localhost:8080/sdkjs/word"
"url"
:
"http://localhost:8080/sdkjs/word"
}
}
...
...
This diff is collapsed.
Click to expand it.
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