-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathpackage.json
95 lines (95 loc) · 3.66 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"name": "acf-openstreetmap-field",
"version": "1.6.1",
"description": "A configurable OpenStreetMap Field to ACF.",
"private": true,
"scripts": {
"dev": "npm-run-all --parallel dev:scss dev:js dev:lint",
"dev:scss": "sass --watch ./src/scss/:./assets/css/ --load-path=node_modules/",
"dev:js": "webpack watch --output-path ./assets/js --config ./webpack.config.js --mode development",
"dev:lint": "node ./src/run/lint.js --watch",
"build": "npm run build:lint && npm-run-all --parallel build:scss build:js build:i18n",
"build:scss": "find ./assets/css -name *.css* -delete && sass ./src/scss/:./assets/css/ --load-path=node_modules/ --style=compressed",
"build:js": "rm -rf assets/js/ && webpack build --output-path ./assets/js --config ./webpack.config.js --mode production",
"build:lint": "node ./src/run/lint.js",
"build:i18n": "npm-run-all --serial build:i18n:json build:i18n:pot",
"build:i18n:pot": "php -d memory_limit=1G $(which wp) i18n make-pot . languages/acf-openstreetmap-field.pot --domain=acf-openstreetmap-field --exclude=tmp --exclude=vendor --exclude=test --exclude=tests",
"build:i18n:json": "node ./src/run/i18n-json-strings.js",
"uitest": "echo \"Running UI Tests. Press ^C to stop\" && node --watch ./src/run/test.js start && node ./src/run/test.js stop",
"test": "npm-run-all --serial test:legacy test:edge",
"test:edge": "WP_ENV_PHP_VERSION=8.3 wp-env start && wp-env run cli php -v && npm run test:phpunit",
"test:legacy": "WP_ENV_PHP_VERSION=7.4 wp-env start && wp-env run cli php -v && npm run test:phpunit",
"test:phpunit": "wp-env run tests-cli --env-cwd=wp-content/plugins/acf-openstreetmap-field vendor/bin/phpunit --",
"dev-test": "./src/run/dev-test.sh",
"dashicons": "node ./src/run/dashicons.js",
"i18n": "wp i18n make-pot . languages/acf-openstreetmap-field.pot --domain=acf-openstreetmap-field --exclude=tmp/*",
"rollback": "git reset --hard HEAD~ && git push origin +master",
"postinstall": "composer install",
"audit": "./vendor/squizlabs/php_codesniffer/bin/phpcs . --report=code --standard=./phpcs.ruleset.xml -n -s > ./phpcs-report.txt || exit 0",
"ver": "echo \"<?php return $(jq .version < ./package.json);\" > include/version.php"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mcguffin/acf-openstreetmap-field.git"
},
"author": "Jörn Lund",
"license": "GPL-3.0-or-later",
"bugs": {
"url": "https://github.com/mcguffin/acf-openstreetmap-field/issues"
},
"browserslist": [
"last 3 versions",
"> 0.125%"
],
"homepage": "https://github.com/mcguffin/acf-openstreetmap-field#readme",
"devDependencies": {
"@babel/preset-env": "*",
"@wordpress/env": "^10.14.0",
"colors": "^1.4.0",
"jsonlint": "^1.6.3",
"leaflet": "1.9.4",
"leaflet-control-geocoder": "^3.1.0",
"leaflet.locatecontrol": "^0.82.0",
"npm-run-all": "^4.1.5",
"sass": "*",
"webpack-cli": "^6.0.1"
},
"browserify-shim": {
"jquery": "global:jQuery",
"backbone": "global:Backbone",
"osm": "global:acf_osm",
"osm-admin": "global:acf_osm_admin",
"wp": "global:wp"
},
"wporg": {
"steps": [
"build",
"test",
"git",
"github",
"wporg"
],
"type": "plugin",
"build": {
"versionedFiles": null,
"prebuild": [
],
"build": [
"npm run build",
"npm run ver"
]
},
"git": {
"host": "github.com",
"user": "mcguffin"
},
"wporg": {
"assets": ".wporg",
"svn_user": "podpirate",
"svn": "https://plugins.svn.wordpress.org/acf-openstreetmap-field/"
},
"test": [
"npm run test"
]
}
}