Skip to content

Commit

Permalink
Package.json: a base (#14)
Browse files Browse the repository at this point in the history
* Composer: add scripts to use some of our dependencies

* Add base package.json

We can build upon that first list of commands in the future, for developing and for releasing.
Let's aim to have commands that match the ones in Jetpack

* tabs throughout
  • Loading branch information
jeherve authored and dereksmart committed Jun 12, 2019
1 parent 56c9041 commit 9018014
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 15 deletions.
36 changes: 21 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
{
"name": "automattic/vaultpress",
"description": "VaultPress is a subscription service offering real-time backup, automated security scanning, and support from WordPress experts.",
"homepage": "https://vaultpress.com/",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"support": {
"issues": "https://github.com/Automattic/vaultpress/issues"
},
"require": {
"automattic/jetpack-logo": "1.1.0"
},
"require-dev": {
"automattic/jetpack-standards": "master-dev",
"automattic/jetpack-autoloader": "1.0.0"
}
"name": "automattic/vaultpress",
"description": "VaultPress is a subscription service offering real-time backup, automated security scanning, and support from WordPress experts.",
"homepage": "https://vaultpress.com/",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"support": {
"issues": "https://github.com/Automattic/vaultpress/issues"
},
"require": {
"automattic/jetpack-logo": "1.1.0"
},
"require-dev": {
"automattic/jetpack-standards": "master-dev",
"automattic/jetpack-autoloader": "1.0.0"
},
"scripts": {
"php:compatibility": "composer install && vendor/bin/phpcs -p -s --runtime-set testVersion '5.3-' --standard=PHPCompatibilityWP --ignore=docker,tools,tests,node_modules,vendor --extensions=php",
"php:lint": "composer install && vendor/bin/phpcs -p -s",
"php:autofix": "composer install && vendor/bin/phpcbf",
"php:lint:errors": "composer install && vendor/bin/phpcs -p -s --runtime-set ignore_warnings_on_exit 1"
}
}
32 changes: 32 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "VaultPress",
"version": "2.0.0-beta",
"description": "VaultPress is a subscription service offering real-time backup, automated security scanning, and support from WordPress experts.",
"homepage": "https://vaultpress.com",
"author": "Automattic",
"license": "GPL-2.0-or-later",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/Automattic/vaultpress.git"
},
"bugs": {
"url": "https://github.com/Automattic/vaultpress/issues"
},
"scripts": {
"clean": "yarn clean-composer",
"clean-composer": "rm -rf composer.lock vendor/",
"install-if-deps-outdated": "yarn check 2> /dev/null || yarn install --check-files",
"distclean": "rm -rf node_modules && yarn clean",
"build": "yarn install-if-deps-outdated && yarn clean && yarn build-php",
"build-php": "composer install",
"build-production": "yarn distclean && yarn && yarn build",
"php:compatibility": "composer php:compatibility",
"php:lint": "composer php:lint",
"php:autofix": "composer php:autofix"
},
"engines": {
"node": ">=10",
"yarn": "^1.3.2"
}
}
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


0 comments on commit 9018014

Please sign in to comment.