This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
50 lines (50 loc) · 1.84 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
{
"name": "mojo-marketplace-wp-plugin",
"description": "WordPress plugin that has shortcodes, widgets and themes.",
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/bluehost/mojo-marketplace-wp-plugin.git"
},
"bugs": {
"url": "https://github.com/bluehost/mojo-marketplace-wp-plugin/issues"
},
"homepage": "https://github.com/bluehost/mojo-marketplace-wp-plugin#readme",
"author": "Micah Wood (https://wpscholar.com)",
"license": "GPL-2.0+",
"dependencies": {
"classnames": "^2.3.2",
"react-router-dom": "^6.16.0"
},
"devDependencies": {
"@wordpress/scripts": "^26.15.0",
"husky": "^8.0.3",
"lint-staged": "^15.0.2",
"node-wp-i18n": "^1.2.7",
"yaml-lint": "^1.2.4"
},
"scripts": {
"build": "wp-scripts build src/marketplace.js --output-path=build",
"start": "NODE_ENV=develop wp-scripts start src/marketplace.js --output-path=build",
"i18n": "wpi18n addtextdomain && composer run i18n",
"lint": "npx yamllint **/*.yml --ignore=node_modules/**",
"create:dist": "rsync -r --exclude-from=.distignore . ./mojo-marketplace-wp-plugin",
"php-deps": "composer install --no-dev --optimize-autoloader",
"create:zip": "cd ./mojo-marketplace-wp-plugin && zip -r -9 ../mojo-marketplace-wp-plugin.zip . && ls -lh ../mojo-marketplace-wp-plugin.zip",
"simulate-runner-build": "rm -rf ./mojo-marketplace-wp-plugin ./mojo-marketplace-wp-plugin.zip ./vendor && npm i && npm run php-deps && npm run create:dist && npm run create:zip",
"prepare": "husky install"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npx wpi18n addtextdomain && vendor/bin/composer run i18n"
}
},
"lint-staged": {
"**/*.yml": [
"npx yamllint --ignore=node_modules/**"
],
"**/*.php": [
"vendor/bin/phpcs --standard=Mojo-Plugin -s"
]
}
}