Skip to content

Commit

Permalink
Add Licensing JS Package (#21730)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Bauermeister authored Nov 16, 2021
1 parent 992a577 commit e9f9498
Show file tree
Hide file tree
Showing 30 changed files with 1,174 additions and 16 deletions.
1 change: 1 addition & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@automattic/jetpack-config",
"@automattic/jetpack-connection",
"@automattic/jetpack-idc",
"@automattic/jetpack-licensing",
"@automattic/jetpack-storybook",
"@automattic/jetpack-webpack-config",
"automattic/jetpack-a8c-mc-stats",
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/.sass-cache/
/node_modules
vendor/
/.nova/
/.vscode/
/logs
/allure-results/
Expand Down Expand Up @@ -51,4 +52,5 @@ phpcs.xml
/tools/docker/bin/jt/

# This file indicates we're in draft mode, which reduces checks
.jetpack-draft
.jetpack-draft

94 changes: 79 additions & 15 deletions pnpm-lock.yaml

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

20 changes: 20 additions & 0 deletions projects/js-packages/licensing/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
// This project uses react, so load the shared react config.
root: true,
extends: [ '../../../.eslintrc.react.js', 'plugin:@wordpress/eslint-plugin/i18n' ],
parserOptions: {
requireConfigFile: false,
babelOptions: {
presets: [ '@babel/preset-react' ],
},
},
rules: {
// Enforce the use of the Jetpack textdomain.
'@wordpress/i18n-text-domain': [
'error',
{
allowedTextDomain: 'jetpack',
},
],
},
};
7 changes: 7 additions & 0 deletions projects/js-packages/licensing/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 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
/.eslintrc.cjs production-exclude
2 changes: 2 additions & 0 deletions projects/js-packages/licensing/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor/
node_modules/
5 changes: 5 additions & 0 deletions projects/js-packages/licensing/.nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extensions": [".js", ".jsx"],
"exclude": "**/test/*.jsx",
"reporter": "clover"
}
6 changes: 6 additions & 0 deletions projects/js-packages/licensing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 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).
19 changes: 19 additions & 0 deletions projects/js-packages/licensing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# licensing

Jetpack licensing flow

## How to install licensing

### 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

licensing 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: major
Type: added

Licensing package introduced.
Loading

0 comments on commit e9f9498

Please sign in to comment.