forked from busy-web/ember-date-time
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
58 lines (50 loc) · 1.21 KB
/
Copy pathmakefile
File metadata and controls
58 lines (50 loc) · 1.21 KB
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
###
# busy-web ember-cli install and update script
#
###
# Operating System Type
UNAME_S := $(shell uname -s)
# version info
YARN_VERSION := $(shell yarn --version 2>/dev/null)
# folder info
NODE_FILES := $(shell stat -f %N ./node_modules 2>/dev/null)
DIST_FILES := $(shell stat -f %N ./dist 2>/dev/null)
TMP_FILES := $(shell stat -f %N ./tmp 2>/dev/null)
# standard commands
all: clean install
# Install project packages
install:
yarn
lockfile: clean
rm -f yarn.lock
yarn install
# cleanup files and clear caches
clean:
ifdef NODE_FILES # remove node files
rm -rf ./node_modules
endif
ifdef DIST_FILES # remove dist files
rm -rf ./dist
endif
ifdef TMP_FILES # remove tmp files
rm -rf ./tmp
endif
help:
@echo ""
@echo "busybusy web tools: make"
@echo "version: 2.0"
@echo ""
@echo "commands: "
@echo " default: (all)"
@echo " * Fresh install of dev environment"
@echo " * Run just 'make' to execute the default command"
@echo ""
@echo " clean: "
@echo " * Removes all packages and build files"
@echo ""
@echo " install: "
@echo " * Set up dev environment dependency packes"
@echo ""
@echo " lockfile: "
@echo " * Deletes the yarn.lock file regenerates a new lock file after install"
@echo ""