scratch-gui 0.1.0-prerelease.20220928050448 → 1.0.2
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/.circleci/config.yml +22 -22
- package/.husky/.gitattributes +1 -0
- package/.husky/commit-msg +4 -0
- package/CHANGELOG.md +891 -0
- package/commitlint.config.js +4 -0
- package/dist/scratch-gui.js +1 -1
- package/pack/scratch-gui-1.0.2.tgz +0 -0
- package/package.json +21 -11
- package/release.config.js +13 -0
package/.circleci/config.yml
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
version: 2.1
|
|
2
2
|
orbs:
|
|
3
|
-
|
|
3
|
+
browser-tools: circleci/browser-tools@1.2.4
|
|
4
|
+
commitlint: conventional-changelog/commitlint@1.0.0
|
|
5
|
+
node: circleci/node@5.0.2
|
|
4
6
|
aliases:
|
|
5
7
|
- &save_git_cache
|
|
6
8
|
save_cache:
|
|
@@ -42,10 +44,12 @@ aliases:
|
|
|
42
44
|
- v3-npm-
|
|
43
45
|
- &defaults
|
|
44
46
|
docker:
|
|
45
|
-
|
|
47
|
+
# TODO: fix scratch-audio and change this to `cimg/node:lts-browsers`
|
|
48
|
+
- image: cimg/node:14.20-browsers
|
|
46
49
|
auth:
|
|
47
50
|
username: $DOCKERHUB_USERNAME
|
|
48
51
|
password: $DOCKERHUB_PASSWORD
|
|
52
|
+
executor: node/default
|
|
49
53
|
working_directory: ~/repo
|
|
50
54
|
|
|
51
55
|
jobs:
|
|
@@ -57,7 +61,7 @@ jobs:
|
|
|
57
61
|
steps:
|
|
58
62
|
- *restore_git_cache
|
|
59
63
|
- checkout
|
|
60
|
-
-
|
|
64
|
+
- node/install-packages
|
|
61
65
|
- run:
|
|
62
66
|
name: Lint
|
|
63
67
|
command: npm run test:lint -- --quiet --output-file test-results/eslint-results.xml --format junit
|
|
@@ -90,7 +94,7 @@ jobs:
|
|
|
90
94
|
steps:
|
|
91
95
|
- *restore_git_cache
|
|
92
96
|
- checkout
|
|
93
|
-
-
|
|
97
|
+
- node/install-packages
|
|
94
98
|
- *save_git_cache
|
|
95
99
|
- *save_npm_cache
|
|
96
100
|
lint:
|
|
@@ -173,27 +177,19 @@ jobs:
|
|
|
173
177
|
|
|
174
178
|
deploy-npm:
|
|
175
179
|
<<: *defaults
|
|
176
|
-
environment:
|
|
177
|
-
NODE_OPTIONS: --max-old-space-size=4000
|
|
178
180
|
steps:
|
|
179
181
|
- *restore_git_cache
|
|
180
|
-
- *restore_dist_cache
|
|
181
182
|
- checkout
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
- run:
|
|
192
|
-
- run: |
|
|
193
|
-
npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
|
|
194
|
-
npm publish --tag $NPM_TAG
|
|
195
|
-
- run: git tag $RELEASE_VERSION
|
|
196
|
-
- run: git push $CIRCLE_REPOSITORY_URL $RELEASE_VERSION
|
|
183
|
+
- *restore_npm_cache
|
|
184
|
+
- *restore_dist_cache
|
|
185
|
+
- run:
|
|
186
|
+
name: adjust config for hotfix if necessary
|
|
187
|
+
command: |
|
|
188
|
+
# double brackets are important for matching the wildcard
|
|
189
|
+
if [[ "$CIRCLE_BRANCH" == hotfix/* ]]; then
|
|
190
|
+
sed -e "s|hotfix/REPLACE|${CIRCLE_BRANCH}|" --in-place release.config.js
|
|
191
|
+
fi
|
|
192
|
+
- run: npx semantic-release
|
|
197
193
|
|
|
198
194
|
deploy-gh-pages:
|
|
199
195
|
<<: *defaults
|
|
@@ -217,6 +213,10 @@ jobs:
|
|
|
217
213
|
|
|
218
214
|
workflows:
|
|
219
215
|
version: 2
|
|
216
|
+
commitlint:
|
|
217
|
+
jobs:
|
|
218
|
+
- commitlint/lint:
|
|
219
|
+
target-branch: develop
|
|
220
220
|
push-translations:
|
|
221
221
|
triggers:
|
|
222
222
|
- schedule:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text eol=lf
|