Skip to content

Commit

Permalink
add skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftbj committed Jan 9, 2025
1 parent 9bba8fb commit 1be7f76
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projects/js-packages/jetpack-cli/.gitattributes
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions projects/js-packages/jetpack-cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor/
node_modules/
7 changes: 7 additions & 0 deletions projects/js-packages/jetpack-cli/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).

18 changes: 18 additions & 0 deletions projects/js-packages/jetpack-cli/README.md
Original file line number Diff line number Diff line change
@@ -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).

Empty file.
4 changes: 4 additions & 0 deletions projects/js-packages/jetpack-cli/changelog/initial-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: added

Initial version.
37 changes: 37 additions & 0 deletions projects/js-packages/jetpack-cli/composer.json
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 2 additions & 0 deletions projects/js-packages/jetpack-cli/src/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Put your code in this `src/` folder!
// Feel free to delete or rename this file.
7 changes: 7 additions & 0 deletions projects/js-packages/jetpack-cli/tests/index.test.js
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 7 additions & 0 deletions projects/js-packages/jetpack-cli/tests/jest.config.cjs
Original file line number Diff line number Diff line change
@@ -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, '..' ),
};

0 comments on commit 1be7f76

Please sign in to comment.