scratchblocks-plus 1.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/LICENSE +19 -0
- package/README.md +193 -0
- package/browser.es.js +8 -0
- package/browser.js +8 -0
- package/build/scratchblocks-plus.min.es.js +12 -0
- package/build/scratchblocks-plus.min.es.js.map +1 -0
- package/build/scratchblocks-plus.min.js +12 -0
- package/build/scratchblocks-plus.min.js.map +1 -0
- package/build/translations-all-es.js +11 -0
- package/build/translations-all-es.js.map +1 -0
- package/build/translations-all.js +11 -0
- package/build/translations-all.js.map +1 -0
- package/build/translations-es.js +11 -0
- package/build/translations-es.js.map +1 -0
- package/build/translations.js +11 -0
- package/build/translations.js.map +1 -0
- package/index.d.ts +297 -0
- package/index.js +229 -0
- package/locales/ab.json +1630 -0
- package/locales/af.json +1630 -0
- package/locales/all.d.ts +108 -0
- package/locales/all.js +161 -0
- package/locales/am.json +1925 -0
- package/locales/an.json +1630 -0
- package/locales/ar.json +1924 -0
- package/locales/ast.json +1630 -0
- package/locales/az.json +1925 -0
- package/locales/be.json +1630 -0
- package/locales/bg.json +1924 -0
- package/locales/bn.json +1630 -0
- package/locales/ca.json +1930 -0
- package/locales/ckb.json +1630 -0
- package/locales/cs.json +1930 -0
- package/locales/cy.json +1929 -0
- package/locales/da.json +1924 -0
- package/locales/de.json +1929 -0
- package/locales/el.json +1931 -0
- package/locales/eo.json +1630 -0
- package/locales/es-419.json +1924 -0
- package/locales/es.json +1929 -0
- package/locales/et.json +1924 -0
- package/locales/eu.json +1924 -0
- package/locales/fa.json +1929 -0
- package/locales/fi.json +1924 -0
- package/locales/fil.json +1631 -0
- package/locales/forums.js +37 -0
- package/locales/fr.json +1929 -0
- package/locales/fy.json +1630 -0
- package/locales/ga.json +1924 -0
- package/locales/gd.json +1929 -0
- package/locales/gl.json +1924 -0
- package/locales/ha.json +1630 -0
- package/locales/he.json +1929 -0
- package/locales/hi.json +1635 -0
- package/locales/hr.json +1929 -0
- package/locales/ht.json +1630 -0
- package/locales/hu.json +1930 -0
- package/locales/hy.json +1630 -0
- package/locales/id.json +1929 -0
- package/locales/is.json +1924 -0
- package/locales/it.json +1929 -0
- package/locales/ja-Hira.json +1637 -0
- package/locales/ja.json +1931 -0
- package/locales/ka.json +1630 -0
- package/locales/kk.json +1632 -0
- package/locales/km.json +1630 -0
- package/locales/ko.json +1924 -0
- package/locales/ku.json +1632 -0
- package/locales/lt.json +1924 -0
- package/locales/lv.json +1924 -0
- package/locales/mi.json +1924 -0
- package/locales/mn.json +1631 -0
- package/locales/nb.json +1929 -0
- package/locales/nl.json +1929 -0
- package/locales/nn.json +1630 -0
- package/locales/nso.json +1630 -0
- package/locales/oc.json +1630 -0
- package/locales/or.json +1631 -0
- package/locales/pl.json +1929 -0
- package/locales/pt-br.json +1924 -0
- package/locales/pt.json +1929 -0
- package/locales/qu.json +1630 -0
- package/locales/rap.json +1632 -0
- package/locales/ro.json +1929 -0
- package/locales/ru.json +1929 -0
- package/locales/sk.json +1924 -0
- package/locales/sl.json +1929 -0
- package/locales/sr.json +1924 -0
- package/locales/sv.json +1924 -0
- package/locales/sw.json +1630 -0
- package/locales/th.json +1924 -0
- package/locales/tn.json +1630 -0
- package/locales/tr.json +1932 -0
- package/locales/uk.json +1924 -0
- package/locales/uz.json +1631 -0
- package/locales/vi.json +1925 -0
- package/locales/xh.json +1630 -0
- package/locales/zh-cn.json +1930 -0
- package/locales/zh-tw.json +1930 -0
- package/locales/zu.json +1918 -0
- package/package.json +81 -0
- package/scratch2/blocks.js +1000 -0
- package/scratch2/draw.js +452 -0
- package/scratch2/filter.js +78 -0
- package/scratch2/index.js +12 -0
- package/scratch2/style.css.js +148 -0
- package/scratch2/style.js +214 -0
- package/scratch3/blocks.js +1134 -0
- package/scratch3/draw.js +334 -0
- package/scratch3/index.js +12 -0
- package/scratch3/style.css.js +280 -0
- package/scratch3/style.js +877 -0
- package/syntax/blocks.js +921 -0
- package/syntax/commands.js +1755 -0
- package/syntax/dropdowns.js +688 -0
- package/syntax/extensions.js +34 -0
- package/syntax/index.js +17 -0
- package/syntax/model.js +566 -0
- package/syntax/syntax.js +1091 -0
package/package.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "scratchblocks-plus",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Make pictures of Scratch blocks from text.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Lu Yifei",
|
|
7
|
+
"homepage": "https://github.com/LuYifei2011/scratchblocks-plus",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/LuYifei2011/scratchblocks-plus.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/LuYifei2011/scratchblocks-plus/issues"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "build/scratchblocks-plus.min.js",
|
|
17
|
+
"module": "build/scratchblocks-plus.min.es.js",
|
|
18
|
+
"types": "index.d.ts",
|
|
19
|
+
"directories": {
|
|
20
|
+
"test": "tests"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "rollup -c --environment buildTarget:PROD",
|
|
24
|
+
"fmt": "prettier --cache --write *.js syntax/*.js scratch2/*.js scratch3/*.js locales-src/*.js snapshots/*.js snapshots/*.html tests/*.js",
|
|
25
|
+
"lint:staged": "lint-staged",
|
|
26
|
+
"lint": "eslint *.js syntax/*.js scratch2/*.js scratch3/*.js locales-src/*.js snapshots/*.js tests/*.js",
|
|
27
|
+
"locales": "node locales-src/build-locales.js",
|
|
28
|
+
"rollup": "rollup -c",
|
|
29
|
+
"snapshots": "node ./snapshots/index.js",
|
|
30
|
+
"start": "rollup -c -m -w",
|
|
31
|
+
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@babel/cli": "^7.28.3",
|
|
35
|
+
"@babel/core": "^7.28.5",
|
|
36
|
+
"@babel/eslint-parser": "^7.28.5",
|
|
37
|
+
"@babel/plugin-external-helpers": "^7.27.1",
|
|
38
|
+
"@babel/preset-env": "^7.28.5",
|
|
39
|
+
"@eslint/js": "^9.39.1",
|
|
40
|
+
"@rollup/plugin-babel": "^6.1.0",
|
|
41
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
42
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
43
|
+
"cross-env": "^10.1.0",
|
|
44
|
+
"csso": "^5.0.5",
|
|
45
|
+
"eslint": "^9.39.1",
|
|
46
|
+
"express": "^5.1.0",
|
|
47
|
+
"globals": "^16.5.0",
|
|
48
|
+
"jest": "^30.2.0",
|
|
49
|
+
"lint-staged": "^16.2.6",
|
|
50
|
+
"prettier": "^3.6.2",
|
|
51
|
+
"prettier-package-json": "^2.8.0",
|
|
52
|
+
"puppeteer": "^24.30.0",
|
|
53
|
+
"rollup": "^4.53.2",
|
|
54
|
+
"rollup-plugin-license": "^3.6.0",
|
|
55
|
+
"rollup-plugin-serve": "^3.0.0",
|
|
56
|
+
"scratch-l10n": "^6.1.23",
|
|
57
|
+
"scratch-translate-extension-languages": "^1.0.7"
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"scratch"
|
|
61
|
+
],
|
|
62
|
+
"lint-staged": {
|
|
63
|
+
"package.json": [
|
|
64
|
+
"prettier-package-json --write",
|
|
65
|
+
"git add"
|
|
66
|
+
],
|
|
67
|
+
"*.js": [
|
|
68
|
+
"prettier --write",
|
|
69
|
+
"git add"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"pre-commit": "lint:staged",
|
|
73
|
+
"prettier": {
|
|
74
|
+
"semi": false,
|
|
75
|
+
"trailingComma": "all",
|
|
76
|
+
"arrowParens": "avoid"
|
|
77
|
+
},
|
|
78
|
+
"jest": {
|
|
79
|
+
"transform": {}
|
|
80
|
+
}
|
|
81
|
+
}
|