-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
70 lines (69 loc) · 1.74 KB
/
build.sh
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
cd netlify-cms
# Apply patches
git config --global user.email "[email protected]"
git config --global user.name "Developer"
git config pull.rebase true
git am ../patches/cms/0001-add-custom-client.patch
git am ../patches/cms/0002-remove-auto-init.patch
git am ../patches/cms/0003-remove-not-needed-backends-locales.patch
git am ../patches/cms/0005-remove-not-needed-backends.patch
git am ../patches/cms/0007-remove-not-needed-Widgets.patch
git am ../patches/cms/0008-remove-create-react-class.patch
# Install deps
yarn
# Build
cd packages
cd netlify-cms-app
yarn build:esm
cd ../netlify-cms-core
yarn build:esm
cd ../netlify-cms-locales
yarn build:esm
cd ../netlify-cms-backend-git-gateway
yarn build:esm
cd ../netlify-cms-lib-widgets
yarn build:esm
cd ../netlify-cms-lib-util
yarn build:esm
cd ../netlify-cms-ui-default
yarn build:esm
cd ../netlify-cms-backend-github
yarn build:esm
cd ../netlify-cms-lib-auth
yarn build:esm
cd ../netlify-cms-widget-string
yarn build:esm
cd ../netlify-cms-widget-number
yarn build:esm
cd ../netlify-cms-widget-text
yarn build:esm
cd ../netlify-cms-widget-image
yarn build:esm
cd ../netlify-cms-widget-file
yarn build:esm
cd ../netlify-cms-widget-select
yarn build:esm
cd ../netlify-cms-widget-markdown
yarn build:esm
cd ../netlify-cms-widget-list
yarn build:esm
cd ../netlify-cms-widget-object
yarn build:esm
cd ../netlify-cms-widget-relation
yarn build:esm
cd ../netlify-cms-widget-boolean
yarn build:esm
cd ../netlify-cms-widget-map
yarn build:esm
cd ../netlify-cms-widget-datetime
yarn build:esm
cd ../netlify-cms-editor-component-image
yarn build:esm
cd ../netlify-cms
yarn build
cd ../../..
mkdir dist
cp netlify-cms/packages/netlify-cms/dist/netlify-cms.js dist/netlify-cms.js
cp main.js dist/main.js
cp index.html dist/index.html
ls -l dist