File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,16 @@ BUILD_DIR = .build
2
2
TEST_DIR = .
3
3
SEMVER =prerelease --preid=beta
4
4
5
+ EXAMPLES =$(dir $(wildcard examples/* /package.json) )
6
+
5
7
install :
6
8
npm install
7
9
npm run build
8
- cd examples/articles && npm install && npm link && npm run build;
9
- cd examples/blocks && npm install && npm link && npm run build;
10
- cd examples/masonry && npm install && npm link && npm run build;
10
+ $(foreach ex,$(EXAMPLES ) ,(cd $(ex ) && npm install && npm run link && npm run build) || exit $$? ; )
11
11
.PHONY : install
12
12
13
13
update :
14
- cd examples/articles && npm update;
15
- cd examples/blocks && npm update;
16
- cd examples/masonry && npm update;
14
+ $(foreach ex,$(EXAMPLES ) ,(cd $(ex ) && npm update) || exit $$? ; )
17
15
.PHONY : update
18
16
19
17
up :
You can’t perform that action at this time.
0 commit comments