diff --git a/projects/js-packages/jetpack-cli/.gitattributes b/projects/js-packages/jetpack-cli/.gitattributes new file mode 100644 index 0000000000000..992b114f7ffa8 --- /dev/null +++ b/projects/js-packages/jetpack-cli/.gitattributes @@ -0,0 +1,6 @@ +# Files not needed to be distributed in the package. +.gitattributes export-ignore +node_modules export-ignore + +# Files to exclude from the mirror repo +/changelog/** production-exclude diff --git a/projects/js-packages/jetpack-cli/.gitignore b/projects/js-packages/jetpack-cli/.gitignore new file mode 100644 index 0000000000000..140fd587d2d52 --- /dev/null +++ b/projects/js-packages/jetpack-cli/.gitignore @@ -0,0 +1,2 @@ +vendor/ +node_modules/ diff --git a/projects/js-packages/jetpack-cli/CHANGELOG.md b/projects/js-packages/jetpack-cli/CHANGELOG.md new file mode 100644 index 0000000000000..721294abd00ad --- /dev/null +++ b/projects/js-packages/jetpack-cli/CHANGELOG.md @@ -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). + diff --git a/projects/js-packages/jetpack-cli/README.md b/projects/js-packages/jetpack-cli/README.md new file mode 100644 index 0000000000000..71453fa986d24 --- /dev/null +++ b/projects/js-packages/jetpack-cli/README.md @@ -0,0 +1,18 @@ +# Jetpack + + +## How to install Jetpack plugin on your site +### 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 + +Licensed under [GNU General Public License v2 (or later)](./LICENSE.txt). + diff --git a/projects/js-packages/jetpack-cli/changelog/.gitkeep b/projects/js-packages/jetpack-cli/changelog/.gitkeep new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/projects/js-packages/jetpack-cli/changelog/initial-version b/projects/js-packages/jetpack-cli/changelog/initial-version new file mode 100644 index 0000000000000..fb1837c901e51 --- /dev/null +++ b/projects/js-packages/jetpack-cli/changelog/initial-version @@ -0,0 +1,4 @@ +Significance: patch +Type: added + +Initial version. diff --git a/projects/js-packages/jetpack-cli/composer.json b/projects/js-packages/jetpack-cli/composer.json new file mode 100644 index 0000000000000..42127f0f1f562 --- /dev/null +++ b/projects/js-packages/jetpack-cli/composer.json @@ -0,0 +1,37 @@ +{ + "name": "automattic/jetpack-cli", + "description": "Development tools for the Jetpack monorepo", + "type": "library", + "license": "GPL-2.0-or-later", + "require": {}, + "require-dev": { + "automattic/jetpack-changelogger": "@dev" + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "scripts": { + "phpunit": [ + "./vendor/phpunit/phpunit/phpunit --colors=always" + ], + "test-coverage": [ + "php -dpcov.directory=. ./vendor/bin/phpunit --coverage-php \"$COVERAGE_DIR/php.cov\"" + ], + "test-php": [ + "@composer phpunit" + ] + }, + "repositories": [ + { + "type": "path", + "url": "../../packages/*", + "options": { + "monorepo": true + } + } + ], + "minimum-stability": "dev", + "prefer-stable": true +} diff --git a/projects/js-packages/jetpack-cli/src/index.jsx b/projects/js-packages/jetpack-cli/src/index.jsx new file mode 100644 index 0000000000000..9ad1e06860e5c --- /dev/null +++ b/projects/js-packages/jetpack-cli/src/index.jsx @@ -0,0 +1,2 @@ +// Put your code in this `src/` folder! +// Feel free to delete or rename this file. diff --git a/projects/js-packages/jetpack-cli/tests/index.test.js b/projects/js-packages/jetpack-cli/tests/index.test.js new file mode 100644 index 0000000000000..d34c1ab3fc541 --- /dev/null +++ b/projects/js-packages/jetpack-cli/tests/index.test.js @@ -0,0 +1,7 @@ +// We recommend using `jest` for testing. If you're testing React code, we recommend `@testing-library/react` and related packages. +// Please match the versions used elsewhere in the monorepo. +// +// Please don't add new uses of `mocha`, `chai`, `sinon`, `enzyme`, and so on. We're trying to standardize on one testing framework. +// +// The default setup is to have files named like "name.test.js" (or .jsx, .ts, or .tsx) in this `tests/` directory. +// But you could instead put them in `src/`, or put files like "name.js" (or .jsx, .ts, or .tsx) in `test` or `__tests__` directories somewhere. diff --git a/projects/js-packages/jetpack-cli/tests/jest.config.cjs b/projects/js-packages/jetpack-cli/tests/jest.config.cjs new file mode 100644 index 0000000000000..b5ceacda1f7e0 --- /dev/null +++ b/projects/js-packages/jetpack-cli/tests/jest.config.cjs @@ -0,0 +1,7 @@ +const path = require( 'path' ); +const baseConfig = require( 'jetpack-js-tools/jest/config.base.js' ); + +module.exports = { + ...baseConfig, + rootDir: path.join( __dirname, '..' ), +};