@patternslib/dev 3.9.0-alpha.0 → 4.0.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/.claude/settings.local.json +10 -0
- package/.editorconfig +1 -1
- package/.release-it.js +1 -1
- package/CHANGES.md +943 -322
- package/Makefile +20 -31
- package/Session.vim +164 -0
- package/eslint.config.js +2 -4
- package/package.json +24 -24
package/Makefile
CHANGED
|
@@ -15,7 +15,7 @@ ESLINT ?= npx eslint
|
|
|
15
15
|
PRETTIER ?= npx prettier
|
|
16
16
|
YARN ?= npx yarn
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
BUILDABLE := $(shell node -p "Boolean(require('./package.json').scripts?.build)")
|
|
19
19
|
PACKAGE_NAME := $(shell node -p "require('./package.json').name")
|
|
20
20
|
BUNDLE_NAME := $(subst @patternslib/,,$(subst @plone/,,$(PACKAGE_NAME)))
|
|
21
21
|
|
|
@@ -55,12 +55,14 @@ check: install eslint
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
.PHONY: bundle-pre
|
|
58
|
-
bundle-pre
|
|
58
|
+
bundle-pre::
|
|
59
59
|
@# Override this in your project to add some tasks before the bundle is built.
|
|
60
|
+
@# Please use double-colons `::` so that the base bundle-pre is also run.
|
|
60
61
|
@# Example: Unlink any linked dependencies.
|
|
61
|
-
@# bundle-pre
|
|
62
|
+
@# bundle-pre::
|
|
62
63
|
@# -yarn unlink @patternslib/patternslib
|
|
63
64
|
@# yarn install --force
|
|
65
|
+
npx update-browserslist-db@latest
|
|
64
66
|
|
|
65
67
|
|
|
66
68
|
# Compile the bundle.
|
|
@@ -68,17 +70,17 @@ bundle-pre:
|
|
|
68
70
|
# relase-it config runs `make bundle` after the version bump.
|
|
69
71
|
.PHONY: bundle
|
|
70
72
|
bundle: clean-dist bundle-pre install
|
|
71
|
-
|
|
72
|
-
@# Do not build a bundle for @patternslib/dev
|
|
73
|
+
ifeq ($(BUILDABLE),true)
|
|
73
74
|
$(YARN) run build
|
|
74
75
|
endif
|
|
75
76
|
|
|
76
77
|
|
|
77
78
|
# Create a ZIP file from the bundle which is uploaded to the GitHub release tag.
|
|
79
|
+
# NOTE: When using the normal workflow - e.g. `make release-minor`, the
|
|
80
|
+
# relase-it config runs `make release-zip` after the version bump and `make bundle`.
|
|
78
81
|
.PHONY: release-zip
|
|
79
82
|
release-zip:
|
|
80
|
-
|
|
81
|
-
@# Do not create a zip release for @patternslib/dev
|
|
83
|
+
ifeq ($(BUILDABLE),true)
|
|
82
84
|
$(eval PACKAGE_VERSION := $(shell node -p "require('./package.json').version"))
|
|
83
85
|
@echo Creating $(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION).zip
|
|
84
86
|
mkdir -p $(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION)
|
|
@@ -96,7 +98,7 @@ ifeq ($(LEVEL),$(filter $(LEVEL), alpha beta))
|
|
|
96
98
|
|
|
97
99
|
@# Changelog for the GitHub release when doing prereleases:
|
|
98
100
|
@# Include all the changes since the previous pre- or regular release.
|
|
99
|
-
$(eval RELEASE_IT_GITHUB_OPTIONS
|
|
101
|
+
$(eval RELEASE_IT_GITHUB_OPTIONS += "")
|
|
100
102
|
|
|
101
103
|
@# Set level argument for release-it.
|
|
102
104
|
$(eval RELEASE_IT_LEVEL := "--preRelease=$(LEVEL)")
|
|
@@ -107,48 +109,35 @@ else
|
|
|
107
109
|
@# Include all changes since the previous regular release, also including
|
|
108
110
|
@# changes from pre-releases.
|
|
109
111
|
@# See: https://github.com/release-it/release-it/blob/master/docs/pre-releases.md
|
|
110
|
-
$(eval RELEASE_IT_GITHUB_OPTIONS
|
|
112
|
+
$(eval RELEASE_IT_GITHUB_OPTIONS += "--git.tagExclude='*[-]*' \\")
|
|
111
113
|
|
|
112
114
|
@# Set level argument for release-it.
|
|
113
115
|
$(eval RELEASE_IT_LEVEL := $(LEVEL))
|
|
114
116
|
endif
|
|
115
117
|
|
|
116
118
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
.PHONY: release
|
|
120
|
+
release: clean install check prepare-release
|
|
121
|
+
@# Note: If you want to include the compiled bundle in your npm package you
|
|
122
|
+
@# have to allow it in a .npmignore file.
|
|
122
123
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
$(eval PACKAGE_VERSION := $(shell npx release-it $(RELEASE_IT_LEVEL) --release-version))
|
|
125
|
+
ifeq ($(BUILDABLE),true)
|
|
126
|
+
$(eval RELEASE_IT_GITHUB_OPTIONS += "--github.assets=$(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION).zip \\")
|
|
127
|
+
endif
|
|
127
128
|
|
|
128
129
|
npx release-it \
|
|
129
|
-
|
|
130
|
-
--no-git \
|
|
131
|
-
--no-npm \
|
|
130
|
+
$(RELEASE_IT_LEVEL) \
|
|
132
131
|
--github.release \
|
|
133
132
|
--github.update \
|
|
134
|
-
--github.assets=$(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION).zip \
|
|
135
133
|
--no-github.draft \
|
|
136
134
|
$(RELEASE_IT_GITHUB_OPTIONS)
|
|
137
135
|
|
|
138
|
-
@# Checkout CHANGES.md, which was modified just before
|
|
139
|
-
git checkout CHANGES.md
|
|
140
|
-
|
|
141
136
|
@# Remove the bundle from release-zip again.
|
|
142
137
|
@# But don't break if it doesn't exist.
|
|
143
138
|
-rm $(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION).zip
|
|
144
139
|
|
|
145
140
|
|
|
146
|
-
.PHONY: release
|
|
147
|
-
release: clean install check release-npm release-github
|
|
148
|
-
@# Note: If you want to include the compiled bundle in your npm package you
|
|
149
|
-
@# have to allow it in a .npmignore file.
|
|
150
|
-
|
|
151
|
-
|
|
152
141
|
.PHONY: release-major
|
|
153
142
|
release-major:
|
|
154
143
|
make LEVEL=major release
|
package/Session.vim
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
let SessionLoad = 1
|
|
2
|
+
let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1
|
|
3
|
+
let v:this_session=expand("<sfile>:p")
|
|
4
|
+
let GPGFilePattern = "*.{gpg,asc,pgp}"
|
|
5
|
+
silent only
|
|
6
|
+
silent tabonly
|
|
7
|
+
cd /home/_thet/data/dev/syslab/REPOS/patternslib/REPOS-pat/dev
|
|
8
|
+
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
|
|
9
|
+
let s:wipebuf = bufnr('%')
|
|
10
|
+
endif
|
|
11
|
+
let s:shortmess_save = &shortmess
|
|
12
|
+
if &shortmess =~ 'A'
|
|
13
|
+
set shortmess=aoOA
|
|
14
|
+
else
|
|
15
|
+
set shortmess=aoO
|
|
16
|
+
endif
|
|
17
|
+
badd +650 CHANGES.md
|
|
18
|
+
argglobal
|
|
19
|
+
%argdel
|
|
20
|
+
$argadd CHANGES.md
|
|
21
|
+
edit CHANGES.md
|
|
22
|
+
wincmd t
|
|
23
|
+
let s:save_winminheight = &winminheight
|
|
24
|
+
let s:save_winminwidth = &winminwidth
|
|
25
|
+
set winminheight=0
|
|
26
|
+
set winheight=1
|
|
27
|
+
set winminwidth=0
|
|
28
|
+
set winwidth=1
|
|
29
|
+
argglobal
|
|
30
|
+
setlocal foldmethod=expr
|
|
31
|
+
setlocal foldexpr=v:lua.LazyVim.treesitter.foldexpr()
|
|
32
|
+
setlocal foldmarker={{{,}}}
|
|
33
|
+
setlocal foldignore=#
|
|
34
|
+
setlocal foldlevel=99
|
|
35
|
+
setlocal foldminlines=1
|
|
36
|
+
setlocal foldnestmax=20
|
|
37
|
+
setlocal foldenable
|
|
38
|
+
1
|
|
39
|
+
sil! normal! zo
|
|
40
|
+
5
|
|
41
|
+
sil! normal! zo
|
|
42
|
+
13
|
|
43
|
+
sil! normal! zo
|
|
44
|
+
27
|
|
45
|
+
sil! normal! zo
|
|
46
|
+
33
|
|
47
|
+
sil! normal! zo
|
|
48
|
+
46
|
|
49
|
+
sil! normal! zo
|
|
50
|
+
48
|
|
51
|
+
sil! normal! zo
|
|
52
|
+
59
|
|
53
|
+
sil! normal! zo
|
|
54
|
+
61
|
|
55
|
+
sil! normal! zo
|
|
56
|
+
69
|
|
57
|
+
sil! normal! zo
|
|
58
|
+
71
|
|
59
|
+
sil! normal! zo
|
|
60
|
+
89
|
|
61
|
+
sil! normal! zo
|
|
62
|
+
101
|
|
63
|
+
sil! normal! zo
|
|
64
|
+
172
|
|
65
|
+
sil! normal! zo
|
|
66
|
+
174
|
|
67
|
+
sil! normal! zo
|
|
68
|
+
178
|
|
69
|
+
sil! normal! zo
|
|
70
|
+
184
|
|
71
|
+
sil! normal! zo
|
|
72
|
+
210
|
|
73
|
+
sil! normal! zo
|
|
74
|
+
212
|
|
75
|
+
sil! normal! zo
|
|
76
|
+
218
|
|
77
|
+
sil! normal! zo
|
|
78
|
+
224
|
|
79
|
+
sil! normal! zo
|
|
80
|
+
226
|
|
81
|
+
sil! normal! zo
|
|
82
|
+
238
|
|
83
|
+
sil! normal! zo
|
|
84
|
+
240
|
|
85
|
+
sil! normal! zo
|
|
86
|
+
249
|
|
87
|
+
sil! normal! zo
|
|
88
|
+
323
|
|
89
|
+
sil! normal! zo
|
|
90
|
+
325
|
|
91
|
+
sil! normal! zo
|
|
92
|
+
369
|
|
93
|
+
sil! normal! zo
|
|
94
|
+
383
|
|
95
|
+
sil! normal! zo
|
|
96
|
+
385
|
|
97
|
+
sil! normal! zo
|
|
98
|
+
391
|
|
99
|
+
sil! normal! zo
|
|
100
|
+
393
|
|
101
|
+
sil! normal! zo
|
|
102
|
+
407
|
|
103
|
+
sil! normal! zo
|
|
104
|
+
409
|
|
105
|
+
sil! normal! zo
|
|
106
|
+
415
|
|
107
|
+
sil! normal! zo
|
|
108
|
+
417
|
|
109
|
+
sil! normal! zo
|
|
110
|
+
443
|
|
111
|
+
sil! normal! zo
|
|
112
|
+
472
|
|
113
|
+
sil! normal! zo
|
|
114
|
+
478
|
|
115
|
+
sil! normal! zo
|
|
116
|
+
480
|
|
117
|
+
sil! normal! zo
|
|
118
|
+
541
|
|
119
|
+
sil! normal! zo
|
|
120
|
+
551
|
|
121
|
+
sil! normal! zo
|
|
122
|
+
561
|
|
123
|
+
sil! normal! zo
|
|
124
|
+
563
|
|
125
|
+
sil! normal! zo
|
|
126
|
+
588
|
|
127
|
+
sil! normal! zo
|
|
128
|
+
590
|
|
129
|
+
sil! normal! zo
|
|
130
|
+
595
|
|
131
|
+
sil! normal! zo
|
|
132
|
+
804
|
|
133
|
+
sil! normal! zo
|
|
134
|
+
812
|
|
135
|
+
sil! normal! zo
|
|
136
|
+
937
|
|
137
|
+
sil! normal! zo
|
|
138
|
+
971
|
|
139
|
+
sil! normal! zo
|
|
140
|
+
let s:l = 650 - ((18 * winheight(0) + 45) / 91)
|
|
141
|
+
if s:l < 1 | let s:l = 1 | endif
|
|
142
|
+
keepjumps exe s:l
|
|
143
|
+
normal! zt
|
|
144
|
+
keepjumps 650
|
|
145
|
+
normal! 06|
|
|
146
|
+
tabnext 1
|
|
147
|
+
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
|
|
148
|
+
silent exe 'bwipe ' . s:wipebuf
|
|
149
|
+
endif
|
|
150
|
+
unlet! s:wipebuf
|
|
151
|
+
set winheight=1 winwidth=20
|
|
152
|
+
let &shortmess = s:shortmess_save
|
|
153
|
+
let &winminheight = s:save_winminheight
|
|
154
|
+
let &winminwidth = s:save_winminwidth
|
|
155
|
+
let s:sx = expand("<sfile>:p:r")."x.vim"
|
|
156
|
+
if filereadable(s:sx)
|
|
157
|
+
exe "source " . fnameescape(s:sx)
|
|
158
|
+
endif
|
|
159
|
+
let &g:so = s:so_save | let &g:siso = s:siso_save
|
|
160
|
+
set hlsearch
|
|
161
|
+
nohlsearch
|
|
162
|
+
doautoall SessionLoadPost
|
|
163
|
+
unlet SessionLoad
|
|
164
|
+
" vim: set ft=vim :
|
package/eslint.config.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
const js = require("@eslint/js");
|
|
2
2
|
const config_prettier = require("eslint-config-prettier");
|
|
3
3
|
const globals = require("globals");
|
|
4
|
-
const babel_parser = require("@babel/eslint-parser");
|
|
5
4
|
|
|
6
5
|
module.exports = [
|
|
7
6
|
js.configs.recommended,
|
|
8
7
|
config_prettier,
|
|
9
8
|
{
|
|
10
9
|
languageOptions: {
|
|
11
|
-
ecmaVersion:
|
|
10
|
+
ecmaVersion: "latest",
|
|
12
11
|
globals: {
|
|
13
12
|
...globals.browser,
|
|
14
13
|
...globals.node,
|
|
15
14
|
...globals.jest,
|
|
16
15
|
},
|
|
17
|
-
parser: babel_parser,
|
|
18
16
|
},
|
|
19
17
|
ignores: [
|
|
20
18
|
"cache/",
|
|
@@ -33,5 +31,5 @@ module.exports = [
|
|
|
33
31
|
"no-self-assign": 0,
|
|
34
32
|
"no-useless-escape": 0,
|
|
35
33
|
},
|
|
36
|
-
}
|
|
34
|
+
},
|
|
37
35
|
];
|
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternslib/dev",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Development base files for working with Patternslib and add-ons.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@babel/core": "^7.
|
|
8
|
-
"@babel/
|
|
9
|
-
"@
|
|
10
|
-
"@commitlint/
|
|
11
|
-
"@
|
|
12
|
-
"@release-it/conventional-changelog": "^
|
|
13
|
-
"babel-loader": "^10.
|
|
14
|
-
"caniuse-lite": "
|
|
15
|
-
"css-loader": "^7.1.
|
|
16
|
-
"eslint": "^
|
|
7
|
+
"@babel/core": "^7.29.0",
|
|
8
|
+
"@babel/preset-env": "^7.29.2",
|
|
9
|
+
"@commitlint/cli": "^20.5.0",
|
|
10
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
11
|
+
"@eslint/js": "^10.0.1",
|
|
12
|
+
"@release-it/conventional-changelog": "^10.0.6",
|
|
13
|
+
"babel-loader": "^10.1.1",
|
|
14
|
+
"caniuse-lite": "1.0.30001790",
|
|
15
|
+
"css-loader": "^7.1.4",
|
|
16
|
+
"eslint": "^10.2.1",
|
|
17
17
|
"eslint-config-prettier": "^10.1.8",
|
|
18
|
-
"globals": "^
|
|
18
|
+
"globals": "^17.5.0",
|
|
19
19
|
"identity-obj-proxy": "^3.0.0",
|
|
20
|
-
"jest": "^30.
|
|
21
|
-
"jest-environment-jsdom": "^30.
|
|
20
|
+
"jest": "^30.3.0",
|
|
21
|
+
"jest-environment-jsdom": "^30.3.0",
|
|
22
22
|
"jest-watch-typeahead": "^3.0.1",
|
|
23
|
-
"prettier": "^3.
|
|
23
|
+
"prettier": "^3.8.3",
|
|
24
24
|
"regenerator-runtime": "^0.14.1",
|
|
25
|
-
"release-it": "^
|
|
26
|
-
"sass": "^1.
|
|
27
|
-
"sass-loader": "^16.0.
|
|
25
|
+
"release-it": "^20.0.0",
|
|
26
|
+
"sass": "^1.99.0",
|
|
27
|
+
"sass-loader": "^16.0.7",
|
|
28
28
|
"style-loader": "^4.0.0",
|
|
29
|
-
"terser-webpack-plugin": "^5.
|
|
30
|
-
"timezone-mock": "^1.
|
|
31
|
-
"webpack": "^5.
|
|
32
|
-
"webpack-bundle-analyzer": "^
|
|
33
|
-
"webpack-cli": "^
|
|
34
|
-
"webpack-dev-server": "^5.2.
|
|
29
|
+
"terser-webpack-plugin": "^5.4.0",
|
|
30
|
+
"timezone-mock": "^1.4.2",
|
|
31
|
+
"webpack": "^5.106.2",
|
|
32
|
+
"webpack-bundle-analyzer": "^5.3.0",
|
|
33
|
+
"webpack-cli": "^7.0.2",
|
|
34
|
+
"webpack-dev-server": "^5.2.3",
|
|
35
35
|
"whybundled": "^2.0.0",
|
|
36
36
|
"yarn": "^1.22.22"
|
|
37
37
|
},
|