Skip to content

Commit

Permalink
Backup: demo plugin wireframe (#19332)
Browse files Browse the repository at this point in the history
  • Loading branch information
samiff authored Apr 28, 2021
1 parent f7313c7 commit 6d069e9
Show file tree
Hide file tree
Showing 25 changed files with 13,341 additions and 21 deletions.
1 change: 1 addition & 0 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<element value="jetpack"/>
<!-- Jetpack Beta plugin -->
<element value="jetpack-beta"/>
<element value="jetpack-backup"/>
</property>
</properties>
</rule>
Expand Down
38 changes: 19 additions & 19 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
"license": "GPL-2.0-or-later",
"author": "Automattic",
"scripts": {
"build": "yarn install-if-deps-outdated && yarn clean && yarn build-php && yarn build-packages && yarn build-jetpack",
"build-concurrently": "yarn install-if-deps-outdated && yarn clean && yarn concurrently 'yarn build-php' 'yarn build-packages' 'yarn build-jetpack-concurrently'",
"build": "yarn install-if-deps-outdated && yarn clean && yarn build-php && yarn build-packages && yarn build-jetpack && yarn build-jetpack-backup",
"build-concurrently": "yarn install-if-deps-outdated && yarn clean && yarn concurrently 'yarn build-php' 'yarn build-packages' 'yarn build-jetpack-concurrently' 'yarn build-jetpack-backup-concurrently'",
"build-jetpack": "cd projects/plugins/jetpack && yarn build",
"build-jetpack-backup": "cd projects/plugins/jetpack-backup && yarn build",
"build-jetpack-backup-concurrently": "cd projects/plugins/jetpack-backup && yarn build-concurrently",
"build-jetpack-concurrently": "cd projects/plugins/jetpack && yarn build-concurrently",
"build-packages": "echo 'Deprecated: Please use the command: jetpack build packages' && yarn jetpack build packages",
"build-php": "composer install --ignore-platform-reqs",
Expand Down
12 changes: 12 additions & 0 deletions projects/plugins/backup/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
}
13 changes: 13 additions & 0 deletions projects/plugins/backup/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Files not needed to be distributed in the package.
.gitattributes export-ignore
.github/ export-ignore
package.json export-ignore

# Files to include in the mirror repo, but excluded via gitignore
# /src/js/example.min.js production-include

# Files to exclude from the mirror repo, but included in the monorepo.
.gitignore production-exclude
changelog/** production-exclude
phpunit.xml.dist production-exclude
tests/** production-exclude
4 changes: 4 additions & 0 deletions projects/plugins/backup/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vendor/
node_modules/
build/
.cache/
7 changes: 7 additions & 0 deletions projects/plugins/backup/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

20 changes: 20 additions & 0 deletions projects/plugins/backup/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Jetpack Backup

Easily restore or download a backup of your site from a specific moment in time.

## How to install Jetpack Backup

### Installation From Git Repo

## Contribute

## Get Help

## Security

Need to report a security vulnerability? Go to [https://automattic.com/security/](https://automattic.com/security/) or directly to our security bug bounty site [https://hackerone.com/automattic](https://hackerone.com/automattic).

## License

Jetpack Backup is licensed under [GNU General Public License v2 (or later)](./LICENSE.txt)

Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Initial wire frame for the Jetpack Backup plugin.
43 changes: 43 additions & 0 deletions projects/plugins/backup/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "automattic/jetpack-backup",
"description": "Easily restore or download a backup of your site from a specific moment in time.",
"type": "library",
"license": "GPL-2.0-or-later",
"require": {
"automattic/jetpack-autoloader": "^2.10",
"automattic/jetpack-connection-ui": "1.0.x-dev"
},
"require-dev": {
"yoast/phpunit-polyfills": "0.2.0",
"automattic/jetpack-changelogger": "^1.1"
},
"autoload": {
"classmap": [
"src/"
]
},
"scripts": {
"build-development": [
"Composer\\Config::disableProcessTimeout",
"yarn build"
],
"build-production": [
"Composer\\Config::disableProcessTimeout",
"yarn build"
]
},
"repositories": [
{
"type": "path",
"url": "../../packages/*",
"options": {
"monorepo": true
}
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"mirror-repo": "Automattic/jetpack-backup-plugin"
}
}
Loading

0 comments on commit 6d069e9

Please sign in to comment.