UNPKG

scratchblocks

Version:

Make pictures of Scratch blocks from text.

176 lines (175 loc) 4.56 kB
{ "name": "scratchblocks", "version": "3.6.4", "description": "Make pictures of Scratch blocks from text.", "license": "MIT", "author": "Tim Radvan", "homepage": "https://scratchblocks.github.io/", "repository": { "type": "git", "url": "git+https://github.com/scratchblocks/scratchblocks.git" }, "bugs": { "url": "https://github.com/scratchblocks/scratchblocks/issues" }, "type": "module", "main": "build/scratchblocks.min.js", "module": "build/scratchblocks.min.es.js", "directories": { "test": "tests" }, "scripts": { "build": "rollup -c --environment buildTarget:PROD", "fmt": "prettier --cache --write *.js syntax/*.js scratch2/*.js scratch3/*.js locales-src/*.js snapshots/*.js snapshots/*.html tests/*.js", "lint:staged": "lint-staged", "lint": "eslint *.js syntax/*.js scratch2/*.js scratch3/*.js locales-src/*.js snapshots/*.js tests/*.js", "locales": "node locales-src/build-locales.js", "rollup": "rollup -c", "snapshots": "node ./snapshots/index.js", "start": "rollup -c -m -w", "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest" }, "devDependencies": { "@babel/cli": "^7.22.10", "@babel/core": "^7.22.10", "@babel/eslint-parser": "^7.22.10", "@babel/plugin-external-helpers": "^7.22.5", "@babel/plugin-syntax-import-assertions": "^7.22.5", "@babel/plugin-transform-object-assign": "^7.22.5", "@babel/preset-env": "^7.22.10", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-terser": "^0.4.3", "cross-env": "^7.0.3", "csso": "^5.0.5", "eslint": "^8.47.0", "express": "^4.18.2", "jest": "^29.6.3", "lint-staged": "^14.0.1", "prettier": "^3.0.2", "prettier-package-json": "^2.8.0", "puppeteer": "^21.1.0", "rollup": "^3.28.1", "rollup-plugin-license": "^3.0.1", "rollup-plugin-serve": "^2.0.2", "scratch-l10n": "^3.16.20230823032242" }, "keywords": [ "scratch" ], "lint-staged": { "package.json": [ "prettier-package-json --write", "git add" ], "*.js": [ "prettier --write", "git add" ] }, "pre-commit": "lint:staged", "prettier": { "semi": false, "trailingComma": "all", "arrowParens": "avoid" }, "jest": { "transform": {} }, "eslintConfig": { "extends": "eslint:recommended", "env": { "browser": true, "es6": true, "node": true }, "parser": "@babel/eslint-parser", "parserOptions": { "requireConfigFile": false, "sourceType": "module", "ecmaVersion": 13 }, "rules": { "curly": [ 2, "all" ], "default-case": 2, "default-case-last": 2, "dot-notation": 2, "eqeqeq": [ 2, "always", { "null": "never" } ], "no-constant-condition": [ 2, { "checkLoops": false } ], "no-constant-binary-expression": 2, "no-duplicate-imports": 2, "no-else-return": 2, "no-lonely-if": 2, "no-loop-func": 2, "no-restricted-syntax": [ 2, { "selector": "CallExpression > MemberExpression[property.name=\"join\"] > ArrayExpression", "message": "Do not call Array.join on newly constructed array; use template string instead" }, { "selector": "BinaryExpression[left.callee.property.name=\"indexOf\"] > UnaryExpression[operator=\"-\"][argument.value=\"1\"]", "message": "Use includes method instead of indexOf method" } ], "no-self-compare": 2, "no-sequences": 2, "no-unreachable-loop": 2, "no-unused-private-class-members": 2, "no-unused-vars": [ 2, { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" } ], "no-useless-concat": 2, "no-var": 2, "prefer-arrow-callback": 2, "prefer-const": 2, "prefer-object-spread": 2, "prefer-rest-params": 2, "prefer-spread": 2, "yoda": [ 2, "never" ] }, "overrides": [ { "files": [ "tests/*.js" ], "env": { "jest": true } }, { "files": [ "rollup.config.js" ], "parserOptions": { "babelOptions": { "plugins": [ "@babel/plugin-syntax-import-assertions" ] } } } ] } }