forked from Automattic/newspack-custom-content-migrator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
92 lines (92 loc) · 2.58 KB
/
composer.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
{
"name": "automattic/newspack-custom-content-migrator",
"autoload": {
"classmap": [
"src/",
"tests/"
]
},
"repositories": [
{
"url": "https://github.com/Automattic/newspack-scraper-migrator.git",
"type": "vcs"
},
{
"url": "https://github.com/Automattic/newspack-post-image-downloader.git",
"type": "vcs"
},
{
"url": "https://github.com/Automattic/newspack-content-converter.git",
"type": "vcs"
},
{
"type": "vcs",
"url": "https://github.com/Automattic/newspack-migration-tools.git"
}
],
"require": {
"paquettg/php-html-parser": "^3.1",
"symfony/dom-crawler": "^5.2",
"symfony/css-selector": "^5.2",
"automattic/newspack-post-image-downloader": "dev-trunk",
"automattic/newspack-content-converter": "dev-master",
"simplehtmldom/simplehtmldom": "2.0-RC2",
"automattic/newspack-scraper-migrator": "dev-trunk",
"automattic/newspack-migration-tools": "dev-trunk"
},
"require-dev": {
"automattic/vipwpcs": "^3.0",
"wp-coding-standards/wpcs": "^3.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"composer/installers": "^1.7",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"yoast/phpunit-polyfills": "^1.0",
"phpunit/phpunit": "9.*",
"sirbrillig/phpcs-changed": "^2.11"
},
"config": {
"vendor-dir": "vendor",
"platform-check": false,
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"archive": {
"exclude": [
"!vendor/*",
"create_release.sh",
"release/*",
"bin/*",
"tests/*",
"phpunit*",
".phpunit*",
"phpcs*",
".phpcs*",
".travis.yml",
".git*",
".git/*",
".distignore",
".DS_Store",
".env*",
".idea",
"*.log*",
"release"
]
},
"scripts": {
"phpcs": "./vendor/bin/phpcs",
"phpcs-unstaged-diff": "./vendor/bin/phpcs-changed --git --git-unstaged $(git diff --diff-filter=d --name-only | grep '\\.php$' | tr '\\n' ' ') || true",
"phpcbf": "./vendor/bin/phpcbf",
"release": [
"composer install --no-dev --optimize-autoloader",
"composer archive --format=zip --dir=release --file=newspack-custom-content-migrator"
],
"update-with-nmt-symlinked": [
"rm -rf vendor/automattic/newspack-migration-tools",
"composer install",
"rm -rf vendor/automattic/newspack-migration-tools",
"ln -s ../../dev/newspack-migration-tools vendor/automattic/newspack-migration-tools"
]
}
}