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
a9296562
Commit
a9296562
authored
Feb 03, 2017
by
Alexey Golubev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make build by the component
parent
16f16f86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
Makefile
Makefile
+15
-7
build/Gruntfile.js
build/Gruntfile.js
+4
-4
No files found.
Makefile
View file @
a9296562
...
...
@@ -6,19 +6,27 @@ OUTPUT = $(OUTPUT_DIR)
WEBAPPS_DIR
=
web-apps
WEBAPPS
=
$(OUTPUT)
/
$(WEBAPPS_DIR)
GRUNT_FILES
=
build/Gruntfile.js.out ../web-apps/build/Gruntfile.js.out
NODE_MODULES
=
build/node_modules ../web-apps/build/node_modules
WEBAPPS_FILES
=
../web-apps/deploy/web-apps/apps/documenteditor/main/app.js ../web-apps/deploy/web-apps/apps/presentationeditor/main/app.js ../web-apps/deploy/web-apps/apps/spreadsheeteditor/main/app.js
SDKJS_FILES
=
word/sdk-all.js cell/sdk-all.js slide/sdk-all.js
all
:
$(WEBAPPS)
$(WEBAPPS)
:
$(
GRUNT
_FILES)
$(WEBAPPS)
:
$(
WEBAPPS
_FILES)
mkdir
-p
$(OUTPUT)
/
$(WEBAPPS_DIR)
&&
\
cp
-r
-t
$(OUTPUT)
/
$(WEBAPPS_DIR)
../
$(WEBAPPS_DIR)
/deploy/
**
$(GRUNT_FILES)
:
$(WEBAPPS_FILES)
:
$(NODE_MODULES) $(SDKJS_FILES)
cd
../
$(WEBAPPS_DIR)
/build
&&
\
$(GRUNT)
deploy-
$(
filter
%editor,
$(
subst
/, ,
$
(
@D
)))
$(GRUNT_FLAGS)
$(NODE_MODULES)
:
cd
$
(
@D
)
&&
\
npm
install
&&
\
$(GRUNT)
$(GRUNT_FLAGS)
echo
"Done"
>
$@
npm
install
$(SDKJS_FILES)
:
$(NODE_MODULES)
cd
build
&&
\
$(GRUNT)
build_
$
(
@D
)
$(GRUNT_FLAGS)
clean
:
rm
-f
$(
GRUNT
_FILES)
rm
-f
$(
WEBAPPS_FILES)
$(SDKJS
_FILES)
build/Gruntfile.js
View file @
a9296562
...
...
@@ -84,11 +84,11 @@ module.exports = function(grunt) {
}
});
grunt
.
registerTask
(
'
build_w
ebw
ord
'
,
[
'
build_webword_init
'
,
'
build_sdk
'
]);
grunt
.
registerTask
(
'
build_
webexce
l
'
,
[
'
build_webexcel_init
'
,
'
build_sdk
'
]);
grunt
.
registerTask
(
'
build_
webpowerpoint
'
,
[
'
build_webpowerpoint_init
'
,
'
build_sdk
'
]);
grunt
.
registerTask
(
'
build_word
'
,
[
'
build_webword_init
'
,
'
build_sdk
'
]);
grunt
.
registerTask
(
'
build_
cel
l
'
,
[
'
build_webexcel_init
'
,
'
build_sdk
'
]);
grunt
.
registerTask
(
'
build_
slide
'
,
[
'
build_webpowerpoint_init
'
,
'
build_sdk
'
]);
grunt
.
registerTask
(
'
build_all
'
,
[
'
build_w
ebword_init
'
,
'
build_sdk
'
,
'
build_webexcel_init
'
,
'
build_sdk
'
,
'
build_webpowerpoint_init
'
,
'
build_sdk
'
]);
grunt
.
registerTask
(
'
build_all
'
,
[
'
build_w
ord
'
,
'
build_cell
'
,
'
build_slide
'
]);
grunt
.
registerTask
(
'
concat_sdk_init
'
,
function
()
{
var
sdkDstFolder
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
dst
'
];
...
...
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