Skip to content

Commit f32615e

Browse files
authored
release: v13 plugins
release: v13 plugins Merge pull request #2737 from RaspberryPiFoundation/v13
2 parents d9407cd + 3605556 commit f32615e

359 files changed

Lines changed: 9186 additions & 122837 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## How can I contribute?
44

5-
- [Suggest](https://github.com/RaspberryPiFoundation/blockly-samples/issues/new?assignees=&labels=type%3A+feature+request%2C+triage&template=feature_request.md) plugins, examples, or codelabs
5+
- [Suggest](https://github.com/RaspberryPiFoundation/blockly-samples/issues/new?assignees=&labels=type%3A+feature+request%2C+triage&template=feature_request.md) plugins or examples
66
- :arrow_right: Start by reading [How To Write A Good Issue](https://developers.google.com/blockly/guides/modify/contribute/write_a_good_issue)
7-
- Implement plugins, examples, or codelabs
8-
- :arrow_right: Read up on how to [Add a Plugin](https://developers.google.com/blockly/guides/modify/contribute/add_a_plugin) or [Write a Codelab](https://developers.google.com/blockly/guides/modify/contribute/write_a_codelab)
7+
- Implement plugins
8+
- :arrow_right: Read up on how to [Add a Plugin](https://developers.google.com/blockly/guides/modify/contribute/add_a_plugin)
99
- [Report bugs](https://github.com/RaspberryPiFoundation/blockly-samples/issues/new?assignees=&labels=type%3A+bug%2C+triage&template=bug_report.md)
1010
- :arrow_right: Start by reading [How To Write A Good Issue](https://developers.google.com/blockly/guides/modify/contribute/write_a_good_issue)
1111
- Fix bugs

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ body:
1919
attributes:
2020
label: Component
2121
description: Which component has a bug?
22-
placeholder: e.g. workspace search plugin, custom generator codelab, RTL demo
22+
placeholder: e.g. workspace search plugin, RTL demo
2323
- type: textarea
2424
id: description
2525
attributes:
@@ -34,8 +34,8 @@ body:
3434
label: Reproduction steps
3535
description: What steps should we take to reproduce the issue?
3636
value: |
37-
1.
38-
2.
37+
1.
38+
2.
3939
3.
4040
- type: textarea
4141
id: stack-trace

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ body:
1919
attributes:
2020
label: Component
2121
description: Which component does this request apply to?
22-
placeholder: e.g. workspace search plugin, custom generator codelab, RTL demo
22+
placeholder: e.g. workspace search plugin, RTL demo
2323
- type: textarea
2424
id: problem
2525
attributes:

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node-version: [20.x, 22.x, 24.x]
16+
node-version: [22.x, 24.x]
1717
steps:
1818
- uses: actions/checkout@v4
1919

@@ -40,7 +40,7 @@ jobs:
4040
- name: Setup node
4141
uses: actions/setup-node@v4
4242
with:
43-
node-version: 20
43+
node-version: 24
4444

4545
- name: Npm CI
4646
run: npm ci
@@ -57,7 +57,7 @@ jobs:
5757
- name: Setup node
5858
uses: actions/setup-node@v4
5959
with:
60-
node-version: 20
60+
node-version: 24
6161

6262
- name: Npm CI
6363
run: npm ci

.github/workflows/publish.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ name: publish
55
on:
66
workflow_dispatch: # Manually trigger. Colon is required.
77
inputs:
8+
version:
9+
description: 'Version to publish all (non-private) plugins as.'
10+
required: true
11+
type: string
12+
default: '13.1.0'
813
from-package:
9-
description: 'Check to publish from-package instead of the default publish. This is used to publish packages that have already been version bumped and tagged by a previous workflow run, but failed to publish for some reason.'
14+
description: 'Check to publish from-package instead of the default publish. This skips versioning and publishes any package whose package.json version is not yet on npm. Use this to retry a partially-failed run, or to publish a plugin that was previously held back as private (set its version + remove private first).'
1015
required: false
1116
type: boolean
1217
default: false
@@ -43,7 +48,7 @@ jobs:
4348
- name: Setup Node
4449
uses: actions/setup-node@v6
4550
with:
46-
node-version: 20
51+
node-version: 24
4752
registry-url: 'https://registry.npmjs.org'
4853

4954
- name: NPM install
@@ -60,12 +65,13 @@ jobs:
6065
env:
6166
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6267
FROM_PACKAGE: ${{ github.event.inputs['from-package'] }}
68+
VERSION: ${{ github.event.inputs.version }}
6369
run: |
6470
cd plugins
6571
if [ "${FROM_PACKAGE}" = "true" ]; then
66-
npx lerna publish from-package --yes --loglevel silly
72+
npx lerna publish from-package --no-private --yes --loglevel silly
6773
else
68-
npx lerna publish --no-private --conventional-commits --create-release github --yes --loglevel silly
74+
npx lerna publish "${VERSION}" --no-private --force-publish --conventional-commits --create-release github --yes --loglevel silly
6975
fi
7076
7177
update-gh-pages:

.github/workflows/update_gh_pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Node
2929
uses: actions/setup-node@v3
3030
with:
31-
node-version: 20
31+
node-version: 24
3232

3333
- name: NPM install
3434
# Use CI so that we don't update dependencies in this step.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ node_modules/
1212
# Generated files
1313
dist/
1414
build/
15+
plugins/*/test/**/*.d.ts
16+
plugins/*/test/**/*.d.ts.map
1517
gh-pages/index.html
1618
gh-pages/plugins
1719
gh-pages/examples

.prettierignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# Examples, codelabs, etc.
1+
# Examples, etc.
22
**/acorn_interpreter.js
33
examples/interpreter-demo/acorn.js
44
examples/interpreter-demo/diff_match_patch.js
55
examples/interpreter-demo/interpreter.js
66
node_modules/*
7-
codelabs/*
87
gh-pages/*
98

109
# All build artifacts, etc.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
Blockly Samples <br /> <a href="https://github.com/RaspberryPiFoundation/blockly"><img src="https://tinyurl.com/built-on-blockly" /> </a>
33
</h1>
44

5-
Plugins, codelabs, and examples related to the [Blockly](https://github.com/RaspberryPiFoundation/blockly) library.
5+
Plugins and examples related to the [Blockly](https://github.com/RaspberryPiFoundation/blockly) library.
66

7-
This repository has three sections:
7+
This repository has two sections:
88

99
- [Plugins](plugins/): self-contained pieces of code that add functionality to Blockly.
1010
- [Examples](examples/): self-contained sample projects demonstrating techniques to include and extend the Blockly library.
11-
- [Codelabs](codelabs/): interactive tutorials demonstrating how to use Blockly.
1211

1312
Please see our [GitHub Pages site](https://raspberrypifoundation.github.io/blockly-samples/index.html) for interactive demos of most plugins.
1413

codelabs/README.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)