File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ stamp-yarn install:
2626 touch stamp-yarn
2727
2828
29+ .PHONY : clean
2930clean-dist :
3031 rm -Rf dist/
3132
@@ -46,6 +47,7 @@ check: stamp-yarn eslint
4647 $(YARN ) run test
4748
4849
50+ .PHONY : bundle-pre
4951bundle-pre :
5052 @# Override this in your project to add some tasks before the bundle is built.
5153 @# Example: Unlink any linked dependencies.
6668
6769
6870# Create a ZIP file from the bundle which is uploaded to the GitHub release tag.
71+ .PHONY : release-zip
6972release-zip :
7073ifneq "$(PACKAGE_NAME ) " "$(PACKAGE_DEV ) "
7174 @# Do not create a zip release for @patternslib/dev
7982
8083
8184# Prepare some necessary variables.
85+ .PHONY : prepare-release
8286prepare-release :
8387ifeq ($(LEVEL ) ,$(filter $(LEVEL ) , alpha beta) )
8488 @# case alpha or beta pre-release
@@ -104,11 +108,13 @@ endif
104108
105109
106110# Do the npm release.
111+ .PHONY : release-npm
107112release-npm : prepare-release
108113 npx release-it $(RELEASE_IT_LEVEL )
109114
110115
111116# Do the GitHub release.
117+ .PHONY : release-github
112118release-github : prepare-release release-zip
113119 @# NOTE: PACKAGE_VERSION is defined in release-zip
114120
@@ -130,6 +136,7 @@ release-github: prepare-release release-zip
130136 -rm $(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION).zip
131137
132138
139+ .PHONY : release
133140release : clean install check release-npm release-github
134141 @# Note: If you want to include the compiled bundle in your npm package you
135142 @# have to allow it in a .npmignore file.
You can’t perform that action at this time.
0 commit comments