File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 1
1
BUILD_DIR = .build
2
2
TEST_DIR = .
3
+ SEMVER =prerelease --preid=beta
3
4
4
- build :
5
+ install :
6
+ npm install
7
+ 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;
11
+ .PHONY : install
12
+
13
+ up :
14
+ npm run start
15
+ open http://localhost:8080
16
+ .PHONY : up
17
+
18
+ build : guard-SEMVER
5
19
mkdir $(BUILD_DIR )
6
20
git archive HEAD | tar -x -C $(BUILD_DIR )
7
21
cd $(BUILD_DIR ) ; \
22
+ npm --no-git-tag-version version $(SEMVER ) ; \
8
23
npm install; \
9
- npm run build;
24
+ npm run build --production ;
10
25
.PHONY : build
11
26
12
27
test :
13
28
cd $(TEST_DIR ) ; \
29
+ npm run lint && \
14
30
npm run test
15
31
.PHONY : test
16
32
17
33
release : TEST_DIR=$(BUILD_DIR )
18
- release : guard-SEMVER clean build test
34
+ release : clean build test
19
35
cd $(BUILD_DIR ) ; \
20
- npm --no-git-tag-version version $(SEMVER ) ; \
21
36
npm publish
22
37
.PHONY : release
23
38
You can’t perform that action at this time.
0 commit comments