Skip to content

Commit 8c1454e

Browse files
committed
only npm install when needed in makefile
1 parent 2fefee5 commit 8c1454e

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Makefile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,19 @@ build_dir=$(project_dir)/build
66
appstore_dir=$(build_dir)/appstore
77
package_name=$(app_name)
88

9-
all: appstore
9+
all: javascript
1010

1111
clean:
1212
rm -rf $(build_dir)
1313
rm -rf node_modules
1414

15-
install-deps:
16-
npm install --production
17-
18-
install-deps-dev:
15+
node_modules: package.json
1916
npm install --deps
2017

21-
javascript:
18+
javascript: node_modules
2219
npm run build
2320

24-
dev-setup: install-deps-dev
25-
26-
appstore: clean install-deps-dev javascript package
21+
appstore: clean javascript package
2722

2823
package:
2924
mkdir -p $(appstore_dir)

0 commit comments

Comments
 (0)