-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
44 lines (34 loc) · 1.06 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
# -*- mode:makefile; coding:utf-8 -*-
#
# Pre-Commit
#
# to allow re-use of terraform github actions
dependency-install-darwin-linux:
@:
dependency-pre-commit:
./ci/install-deps.sh
pre-commit install
pre-commit: dependency-pre-commit
pre-commit run --all-files
# to allow re-use of terraform github actions
pre-commit-no-terraform: pre-commit
#
# npm
#
clean-npmrc:
rm -f .npmrc client/.npmrc
create-npmrc: clean-npmrc
@echo 'Creating .npmrc file'
@curl -u ${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD} "https://na-private.artifactory.swg-devops.com/artifactory/api/npm/auth/" > .npmrc
echo "registry=https://na-private.artifactory.swg-devops.com/artifactory/api/npm/wcp-goldeneye-team-npm-virtual" >> .npmrc
sed -i.bak 's/_auth/\/\/na-private.artifactory.swg-devops.com\/artifactory\/api\/npm\/:_auth/' .npmrc
cp .npmrc client/.npmrc
rm -f .npmrc.bak
clean-npm:
rm -rf node_modules/ client/node_modules/
rm -f package-lock.json client/package-lock.json
npm install --save-dev
cd client; npm install --save-dev
run-tests:
npm install --save-dev
npm test