forked from PrestaShopCorp/ps_checkout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (39 loc) · 1.53 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
help:
@egrep "^#" Makefile
# target: docker-build|db - Setup/Build PHP & (node)JS dependencies
db: docker-build
docker-build: build-back build-front
build-back:
docker-compose run --rm php sh -c "composer install"
build-back-prod:
docker-compose run --rm php sh -c "composer install --no-dev -o"
build-front:
docker-compose run --rm node sh -c "yarn --cwd _dev/ install"
docker-compose run --rm node sh -c "yarn --cwd _dev/ build"
# target: watch-front - Watcher for the vueJS files
watch-front:
docker-compose run --rm node sh -c "yarn --cwd _dev/ dev"
# target: test-front - Launch the front test suite
test-front:
docker-compose run --rm node sh -c "yarn --cwd _dev/ lint"
build-zip:
cp -Ra $(PWD) /tmp/ps_checkout
rm -rf /tmp/ps_checkout/.env.test
rm -rf /tmp/ps_checkout/.php_cs.*
rm -rf /tmp/ps_checkout/.travis.yml
rm -rf /tmp/ps_checkout/cloudbuild.yaml
rm -rf /tmp/ps_checkout/composer.*
rm -rf /tmp/ps_checkout/.gitignore
rm -rf /tmp/ps_checkout/deploy.sh
rm -rf /tmp/ps_checkout/.editorconfig
rm -rf /tmp/ps_checkout/.git
rm -rf /tmp/ps_checkout/.github
rm -rf /tmp/ps_checkout/_dev
rm -rf /tmp/ps_checkout/tests
rm -rf /tmp/ps_checkout/docker-compose.yml
rm -rf /tmp/ps_checkout/Makefile
mv -v /tmp/ps_checkout $(PWD)/ps_checkout
zip -r ps_checkout.zip ps_checkout
rm -rf $(PWD)/ps_checkout
# target: build-zip-prod - Launch prod zip generation of the module (will not work on windows)
build-zip-prod: build-back-prod test-front build-front build-zip