@patternslib/dev 3.1.13 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +94 -0
- package/Makefile +20 -37
- package/package.json +2 -2
package/CHANGES.md
CHANGED
|
@@ -2,6 +2,100 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
## [3.3.0](https://github.com/patternslib/dev/compare/3.2.0...3.3.0) (2023-04-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
* Simplify release make commands. ([49077d2](https://github.com/patternslib/dev/commit/49077d2c6d79d7b98898c6576d0aaa01e003a0d6))
|
|
12
|
+
|
|
13
|
+
Change the prerelease commands back to pre-3.2.0 names.
|
|
14
|
+
This was necessary because the previous change did create for each
|
|
15
|
+
command a new increment, which was not what we wanted.
|
|
16
|
+
Instead the Makefile is now restructured:
|
|
17
|
+
- First the npm release is done and the package.json written with the
|
|
18
|
+
correct version. If no increment is given (in case of the prerelease
|
|
19
|
+
targets) an interactive prompt asks the user to define one.
|
|
20
|
+
- Second the GitHub release is done. It's no more necessary to guess the
|
|
21
|
+
next version before the npm version was done. Instead we now rely on
|
|
22
|
+
release-it choosing it for us.
|
|
23
|
+
Now we do have again the "prerelease-alpha" and "prerelease-beta"
|
|
24
|
+
Makefile targets.
|
|
25
|
+
|
|
26
|
+
## [3.2.0](https://github.com/patternslib/dev/compare/3.1.13...3.2.0) (2023-04-17)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
* Change prerelease commands to prerelease-INCREMENT-PREID ([6b488e1](https://github.com/patternslib/dev/commit/6b488e120761951ba01eae524563bdd490a9b739))
|
|
33
|
+
|
|
34
|
+
Change the prerelease commands to define the increment level.
|
|
35
|
+
Instead of "prerelease-alpha" there are now "prerelease-major-alpha",
|
|
36
|
+
"prerelease-minor-alpha" and "prerelease-patch-alpha".
|
|
37
|
+
Instead of "prerelease-beta" there are now "prerelease-major-beta",
|
|
38
|
+
"prerelease-minor-beta" and "prerelease-patch-beta".
|
|
39
|
+
This fixes a problem where the first prerelease for major or minor
|
|
40
|
+
increments got only a patch-level increment.
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Maintenance
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
* Upgrade dependencies. ([68f4ca8](https://github.com/patternslib/dev/commit/68f4ca8b4d243f1b1b25ffacb404be71103b86aa))
|
|
48
|
+
|
|
49
|
+
## [3.2.0](https://github.com/patternslib/dev/compare/3.1.13...3.2.0) (2023-04-17)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
* Change prerelease commands to prerelease-INCREMENT-PREID ([6b488e1](https://github.com/patternslib/dev/commit/6b488e120761951ba01eae524563bdd490a9b739))
|
|
56
|
+
|
|
57
|
+
Change the prerelease commands to define the increment level.
|
|
58
|
+
Instead of "prerelease-alpha" there are now "prerelease-major-alpha",
|
|
59
|
+
"prerelease-minor-alpha" and "prerelease-patch-alpha".
|
|
60
|
+
Instead of "prerelease-beta" there are now "prerelease-major-beta",
|
|
61
|
+
"prerelease-minor-beta" and "prerelease-patch-beta".
|
|
62
|
+
This fixes a problem where the first prerelease for major or minor
|
|
63
|
+
increments got only a patch-level increment.
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Maintenance
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
* Upgrade dependencies. ([68f4ca8](https://github.com/patternslib/dev/commit/68f4ca8b4d243f1b1b25ffacb404be71103b86aa))
|
|
71
|
+
|
|
72
|
+
## [3.1.13](https://github.com/patternslib/dev/compare/3.1.12...3.1.13) (2023-04-17)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Bug Fixes
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
* Improve the release-it commit template to include a newline between each commit and add any commit references to the end. ([1603d0b](https://github.com/patternslib/dev/commit/1603d0b1a08aab290f021b20562c92dab45f75c1))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
* Improve the release-it commit template to include a newline between header and body text. ([14ace2b](https://github.com/patternslib/dev/commit/14ace2b2c2c2dd2bc77c4cd0cf9b47744d5ca1c1))
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
* Include all changes since last regular release only in GitHub releases. ([ec86755](https://github.com/patternslib/dev/commit/ec8675589217f5c66ffcfab273942c11b845a79c))
|
|
85
|
+
|
|
86
|
+
When doing regular releases include all the changes since the last
|
|
87
|
+
regular release - including changes from pre-releases in the release
|
|
88
|
+
notes on GitHub, but not in the CHANGES.md file. In the CHANGES.md file
|
|
89
|
+
every change can be seen at once. Including all the changes since the
|
|
90
|
+
previous regular release is useful for the GitHub release page only.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Maintenance
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
* Update dependencies. ([b02c37b](https://github.com/patternslib/dev/commit/b02c37b0a41a347f955a7a7a8fb47d8e1f4c4f11))
|
|
98
|
+
|
|
5
99
|
## [3.1.13](https://github.com/patternslib/dev/compare/3.1.12...3.1.13) (2023-04-17)
|
|
6
100
|
|
|
7
101
|
|
package/Makefile
CHANGED
|
@@ -76,28 +76,17 @@ ifneq "$(PACKAGE_NAME)" "$(PACKAGE_DEV)"
|
|
|
76
76
|
endif
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
#
|
|
80
|
-
define write_package_json
|
|
81
|
-
const fs = require("fs"); \
|
|
82
|
-
const package_json = require("./package.json"); \
|
|
83
|
-
package_json.version = "$(NEXT_VERSION)"; \
|
|
84
|
-
const data = JSON.stringify(package_json, null, 4); \
|
|
85
|
-
fs.writeFileSync("package.json", data);
|
|
86
|
-
endef
|
|
87
|
-
|
|
79
|
+
# Prepare some necessary variables.
|
|
88
80
|
prepare-release:
|
|
89
|
-
@# Get the current package version.
|
|
90
|
-
$(eval CURRENT_VERSION := $(shell node -p "require('./package.json').version"))
|
|
91
81
|
ifeq ($(LEVEL),$(filter $(LEVEL), alpha beta))
|
|
92
82
|
@# case alpha or beta pre-release
|
|
93
83
|
|
|
94
84
|
@# Changelog for the GitHub release when doing prereleases:
|
|
95
85
|
@# Include all the changes since the previous pre- or regular release.
|
|
96
86
|
$(eval RELEASE_IT_GITHUB_OPTIONS := "")
|
|
87
|
+
|
|
97
88
|
@# Set level argument for release-it.
|
|
98
89
|
$(eval RELEASE_IT_LEVEL := "--preRelease=$(LEVEL)")
|
|
99
|
-
@# Get the next version via semver.
|
|
100
|
-
$(eval NEXT_VERSION := $(shell npx semver --increment prerelease --preid $(LEVEL) $(CURRENT_VERSION)))
|
|
101
90
|
else
|
|
102
91
|
@# case normal major/minor/patch release
|
|
103
92
|
|
|
@@ -106,48 +95,44 @@ else
|
|
|
106
95
|
@# changes from pre-releases.
|
|
107
96
|
@# See: https://github.com/release-it/release-it/blob/master/docs/pre-releases.md
|
|
108
97
|
$(eval RELEASE_IT_GITHUB_OPTIONS := "--git.tagExclude='*[-]*'")
|
|
98
|
+
|
|
109
99
|
@# Set level argument for release-it.
|
|
110
100
|
$(eval RELEASE_IT_LEVEL := $(LEVEL))
|
|
111
|
-
@# Get the next version via semver.
|
|
112
|
-
$(eval NEXT_VERSION := $(shell npx semver --increment $(LEVEL) $(CURRENT_VERSION)))
|
|
113
101
|
endif
|
|
114
|
-
@echo Next version is: $(NEXT_VERSION)
|
|
115
102
|
|
|
116
|
-
@# Temporarily write the NEXT_VERSION to package.json, so that the bundle
|
|
117
|
-
@# and release-zip generate correct version strings.
|
|
118
|
-
node -p '$(write_package_json)'
|
|
119
103
|
|
|
104
|
+
# Do the npm release.
|
|
105
|
+
release-npm: prepare-release
|
|
106
|
+
npx release-it $(RELEASE_IT_LEVEL)
|
|
120
107
|
|
|
121
|
-
release: clean install check prepare-release release-zip
|
|
122
|
-
@# RELEASE_IT_LEVEL and NEXT_VERSION set by prepare-release
|
|
123
108
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
@# Checkout package.json which was modified by prepare-release and read by
|
|
128
|
-
@# release-zip.
|
|
129
|
-
git checkout .
|
|
109
|
+
# Do the GitHub release.
|
|
110
|
+
release-github: prepare-release release-zip
|
|
111
|
+
@# NOTE: PACKAGE_VERSION is defined in release-zip
|
|
130
112
|
|
|
131
|
-
|
|
132
|
-
@# 2) When successful, update release on GitHub
|
|
133
|
-
@# 3) Checkout CHANGES.md, which was modified by step 2)
|
|
134
|
-
npx release-it $(RELEASE_IT_LEVEL) \
|
|
135
|
-
&& npx release-it \
|
|
113
|
+
npx release-it \
|
|
136
114
|
--github.release \
|
|
137
115
|
--github.update \
|
|
138
|
-
--github.assets=$(BUNDLE_NAME)-bundle-$(
|
|
116
|
+
--github.assets=$(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION).zip \
|
|
139
117
|
--no-increment \
|
|
140
118
|
--no-github.draft \
|
|
141
119
|
--no-git \
|
|
142
120
|
--no-npm \
|
|
143
|
-
$(RELEASE_IT_GITHUB_OPTIONS)
|
|
144
|
-
|
|
121
|
+
$(RELEASE_IT_GITHUB_OPTIONS)
|
|
122
|
+
|
|
123
|
+
@# Checkout CHANGES.md, which was modified just before
|
|
124
|
+
git checkout CHANGES.md
|
|
145
125
|
|
|
146
126
|
@# Remove the bundle from release-zip again.
|
|
147
127
|
@# But don't break if it doesn't exist.
|
|
148
128
|
-rm $(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION).zip
|
|
149
129
|
|
|
150
130
|
|
|
131
|
+
release: clean install check release-npm release-github
|
|
132
|
+
@# Note: If you want to include the compiled bundle in your npm package you
|
|
133
|
+
@# have to allow it in a .npmignore file.
|
|
134
|
+
|
|
135
|
+
|
|
151
136
|
.PHONY: release-major
|
|
152
137
|
release-major:
|
|
153
138
|
make LEVEL=major release
|
|
@@ -162,12 +147,10 @@ release-minor:
|
|
|
162
147
|
release-patch:
|
|
163
148
|
make LEVEL=patch release
|
|
164
149
|
|
|
165
|
-
|
|
166
150
|
.PHONY: prerelease-alpha
|
|
167
151
|
prerelease-alpha:
|
|
168
152
|
make LEVEL=alpha release
|
|
169
153
|
|
|
170
|
-
|
|
171
154
|
.PHONY: prerelease-beta
|
|
172
155
|
prerelease-beta:
|
|
173
156
|
make LEVEL=beta release
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternslib/dev",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Development base files for working with Patternslib and add-ons.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"release-it": "^15.10.1",
|
|
25
25
|
"sass": "^1.62.0",
|
|
26
26
|
"sass-loader": "^13.2.2",
|
|
27
|
-
"semver": "^7.
|
|
27
|
+
"semver": "^7.5.0",
|
|
28
28
|
"style-loader": "^3.3.2",
|
|
29
29
|
"terser-webpack-plugin": "^5.3.7",
|
|
30
30
|
"timezone-mock": "^1.3.6",
|