-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
65 lines (65 loc) · 3.48 KB
/
package.json
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": "test-test",
"version": "1.0.0",
"description": "Block Editor plugin generated by create-block-plugin – build step required.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
"main": "./src/index.js'",
"config": {
"author_uri": "https://wordpress.org/",
"plugin_uri": "https://wordpress.org/plugins/",
"plugin_name": "Test Test",
"contributors": "The WordPress Contributors",
"tags": "blockhandbook, block handbook",
"slug": "test-test",
"slug_snake_case": "test_test",
"namespace": "TestTest",
"textdomain": "test-test",
"tested_up_to": "5.4",
"language": "eo"
},
"scripts": {
"start": "npm run browser-sync & npm run tailwind:watch",
"build": "wp-scripts build && npm run tailwind:build",
"setup": "composer install && npm run composer:generate-autoloader && npm install && npm run build",
"server:setup": "npm run setup && npm run server:start",
"server:start": "npx wp-env start && npm run cli:install-gutenberg && npm run cli:permalinks",
"server:stop": "npx wp-env stop",
"server:clean": "npx wp-env clean && npm run server:stop && rm -rf node_modules wordpress vendor",
"format:js": "wp-scripts format-js",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js",
"lint:pkg-json": "wp-scripts lint-pkg-json",
"packages-update": "wp-scripts packages-update",
"i18n:make-pot": "wp i18n make-pot ./ ./languages/$npm_package_config_textdomain.pot --headers='{\"Last-Translator\":\"The WordPress Contributors <yourname@yourwebsite.com>\",\"Language-Team\":\"The WordPress Contributors <yourname@yourwebsite.com>\"}' --exclude=src && cp ./languages/$npm_package_config_textdomain.pot ./languages/$npm_package_config_textdomain-$npm_package_config_language.po",
"i18n:make-json": "wp i18n make-json ./languages/ && rename 's/(test-test-[a-zA-Z_]+-)[^\\.]*(\\.json)/$1test-test-block-editor$2/' ./languages/*",
"i18n:make-mo": "cd languages && find . -name \\*.po -execdir sh -c 'msgfmt \"$0\" -o `basename $0 .po`.mo' '{}' \\;",
"svn:make": "svn co https://plugins.svn.wordpress.org/$npm_package_config_slug svn",
"svn:add": "cd svn && svn add trunk/* && svn add assets/* && svn add branches && svn add tags/*",
"svn:tag": "cd svn && svn cp trunk tags/$npm_package_version",
"svn:update": "cd svn && svn up",
"test:e2e": "wp-scripts test-e2e",
"test:unit": "wp-scripts test-unit-js",
"wp": "wp-env run cli wp",
"zip": "bestzip ./$npm_package_config_slug.zip ./src ./class-plugin.php ./readme.txt ./LICENSE [ ./build ./languages ./includes ./vendor ]",
"browser-sync": "browser-sync start --config ./bs-config.js",
"cli:install-gutenberg": "npx wp-env run cli wp plugin install gutenberg && npx wp-env run cli wp plugin activate gutenberg",
"cli:permalinks": "wp-env run cli wp rewrite structure /%postname%/ --hard",
"composer:generate-autoloader": "composer dump-autoload -o",
"tailwind:build": "cross-env NODE_ENV=production postcss --config ./postcss.config.js ./src/tailwind.css -o ./build/tailwind.css",
"tailwind:watch": "cross-env NODE_ENV=development postcss --config ./postcss.config.js ./src/tailwind.css -o ./build/tailwind.css -w"
},
"devDependencies": {
"@blockhandbook/block-hot-loader": "^1.2.24",
"@blockhandbook/controls": "^0.1.90",
"@blockhandbook/data": "^0.1.41",
"@blockhandbook/tailwindcss": "^0.2.8",
"@blockhandbook/tailwindcss-controls": "^0.1.31",
"@wordpress/env": "^1.6.0",
"@wordpress/scripts": "^12.1.1",
"bestzip": "^2.1.5"
},
"dependencies": {
"classnames": "^2.2.6"
}
}