-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
48 lines (35 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
SIMULATOR_DESTINATION := OS=17.5,name=iPhone 15 Plus
define XCODEBUILD_CMD
@set -o pipefail && \
xcodebuild $(1) \
-scheme GutenbergKit \
-sdk iphonesimulator \
-destination '${SIMULATOR_DESTINATION}' \
| xcbeautify
endef
npm-dependencies:
echo "--- :npm: Installing NPM Dependencies"
npm ci
build: npm-dependencies
echo "--- :node: Building Gutenberg"
npm run build
# Copy build products into place
echo "--- :open_file_folder: Copying Build Products into place"
rm -rf ./ios/Sources/GutenbergKit/Gutenberg/ ./android/Gutenberg/src/main/assets/
cp -r ./dist/. ./ios/Sources/GutenbergKit/Gutenberg/
cp -r ./dist/. ./android/Gutenberg/src/main/assets
dev-server: npm-dependencies
npm run dev
dev-server-remote: npm-dependencies
npm run dev:remote
fmt-js: npm-dependencies
npm run format
lint-js: npm-dependencies
npm run lint
local-android-library: build
echo "--- :android: Building Library"
./android/gradlew -p ./android :gutenberg:publishToMavenLocal -exclude-task prepareToPublishToS3
build-swift-package: build
$(call XCODEBUILD_CMD, build)
test-swift-package: build
$(call XCODEBUILD_CMD, test)