Skip to content

Commit

Permalink
Making completion utilities available in AI package (woocommerce#39190)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <github-actions@github.com>
  • Loading branch information
joelclimbsthings and github-actions authored Jul 17, 2023
1 parent 7229221 commit 7cb5cfe
Show file tree
Hide file tree
Showing 30 changed files with 1,770 additions and 2,076 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ npm-debug.log
build/
build-module/
build-style/
build-style.js
build-types/
dist/

Expand Down
12 changes: 12 additions & 0 deletions packages/js/ai/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ],
root: true,
overrides: [
{
files: [ '**/*.js', '**/*.jsx', '**/*.tsx' ],
rules: {
'react/react-in-jsx-scope': 'off',
},
},
],
};
1 change: 1 addition & 0 deletions packages/js/ai/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
11 changes: 11 additions & 0 deletions packages/js/ai/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Artificial Intelligence tools

A collection of WooCommerce tools and utilities to implement ai features.

## Installation

Install the module

```bash
pnpm install @woocommerce/ai --save
```
3 changes: 3 additions & 0 deletions packages/js/ai/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: '../internal-js-tests/babel.config.js',
};
3 changes: 3 additions & 0 deletions packages/js/ai/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Changelog

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4 changes: 4 additions & 0 deletions packages/js/ai/changelog/update-completion-hooks-39009
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: update

Moving text completion hooks into @woocommerce/ai package for reuse.
32 changes: 32 additions & 0 deletions packages/js/ai/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "woocommerce/ai",
"description": "WooCommerce AI library",
"type": "library",
"license": "GPL-3.0-or-later",
"minimum-stability": "dev",
"require-dev": {
"automattic/jetpack-changelogger": "3.3.0"
},
"config": {
"platform": {
"php": "7.2"
}
},
"extra": {
"changelogger": {
"formatter": {
"filename": "../../../tools/changelogger/class-package-formatter.php"
},
"types": {
"fix": "Fixes an existing bug",
"add": "Adds functionality",
"update": "Update existing functionality",
"dev": "Development related task",
"tweak": "A minor adjustment to the codebase",
"performance": "Address performance issues",
"enhancement": "Improve existing functionality"
},
"changelog": "CHANGELOG.md"
}
}
}
Loading

0 comments on commit 7cb5cfe

Please sign in to comment.