-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
65 lines (65 loc) · 1.99 KB
/
package.json
File metadata and controls
65 lines (65 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"name": "embed-block-figma",
"version": "0.4.0",
"description": "Adds a Figma embed block to the WordPress Block Editor.",
"homepage": "https://github.com/10up/embed-block-figma",
"license": "GPL-2.0-or-later",
"author": {
"name": "10up",
"email": "opensource@10up.com",
"url": "https://10up.com"
},
"scripts": {
"start": "10up-toolkit start",
"watch": "10up-toolkit watch --port=3000 --hot",
"build": "10up-toolkit build",
"format-js": "10up-toolkit format-js",
"lint-js": "10up-toolkit lint-js",
"lint-style": "10up-toolkit lint-style",
"test": "10up-toolkit test-unit-jest",
"clean-dist": "rm -rf ./dist",
"cypress:open": "cypress open --browser chrome --config-file tests/cypress/cypress.config.js",
"cypress:run": "cypress run --browser chrome --config-file tests/cypress/cypress.config.js",
"env": "wp-env",
"env:start": "wp-env start",
"env:stop": "wp-env stop",
"postenv:start": "./tests/bin/initialize.sh",
"archive": "composer archive --file=embed-block-figma --format=zip",
"postarchive": "rm -rf embed-block-figma && unzip embed-block-figma.zip -d embed-block-figma && rm embed-block-figma.zip && zip -r embed-block-figma.zip embed-block-figma && rm -rf embed-block-figma"
},
"engines": {
"node": ">=20.0.0"
},
"devDependencies": {
"@10up/cypress-wp-utils": "^0.6.0",
"@wordpress/env": "^10.38.0",
"10up-toolkit": "^6.5.1",
"classnames": "^2.3.2",
"cypress": "^15.9.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "3.2.5"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"includes/**/*.js": [
"npm run lint:js"
],
"/includes/**/*.css": [
"lint:css"
],
"*.php": [
"./vendor/bin/phpcs . --extensions=php --standard=phpcs.xml --warning-severity=8 -s"
]
},
"10up-toolkit": {
"useBlockAssets": false,
"entry": {
"figma-embed": "./src/assets/js/figma-embed.js"
}
}
}