File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 38
38
@echo " exit - Exit development mode."
39
39
@echo
40
40
41
+ node_modules :
42
+ @npm install
43
+
41
44
check : package.json book.json LANGS.md
42
45
@if ! which node 1> /dev/null; then\
43
46
echo " Error: Node.js not found" ; \
@@ -46,13 +49,11 @@ check: package.json book.json LANGS.md
46
49
false ; \
47
50
fi
48
51
49
- setup : check
52
+ setup : node_modules check
50
53
@if ! test -f " .langs" ; then\
51
54
cp LANGS.md .langs && \
52
55
echo " $( LANG_DATA) " > LANGS.md && \
53
56
echo " You are set to $( LANG_NAME) for development" ; \
54
- npm install && \
55
- echo " Project is ready for development." ; \
56
57
fi
57
58
58
59
build : setup
@@ -69,7 +70,7 @@ dev: setup
69
70
70
71
mode :
71
72
@if test -f " .langs" ; then\
72
- echo " You are in development mode" ; \
73
+ echo " You are in development mode using the language $( LANG_NAME ) " ; \
73
74
else\
74
75
echo " You are not in development mode" ; \
75
76
fi
You can’t perform that action at this time.
0 commit comments