@mytechtoday/augment-extensions 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/augment-extensions/domain-rules/wordpress/README.md +163 -0
  2. package/augment-extensions/domain-rules/wordpress/module.json +32 -0
  3. package/augment-extensions/domain-rules/wordpress/rules/coding-standards.md +617 -0
  4. package/augment-extensions/domain-rules/wordpress/rules/directory-structure.md +270 -0
  5. package/augment-extensions/domain-rules/wordpress/rules/file-patterns.md +423 -0
  6. package/augment-extensions/domain-rules/wordpress/rules/gutenberg-blocks.md +493 -0
  7. package/augment-extensions/domain-rules/wordpress/rules/performance.md +568 -0
  8. package/augment-extensions/domain-rules/wordpress/rules/plugin-development.md +510 -0
  9. package/augment-extensions/domain-rules/wordpress/rules/project-detection.md +251 -0
  10. package/augment-extensions/domain-rules/wordpress/rules/rest-api.md +501 -0
  11. package/augment-extensions/domain-rules/wordpress/rules/security.md +564 -0
  12. package/augment-extensions/domain-rules/wordpress/rules/theme-development.md +388 -0
  13. package/augment-extensions/domain-rules/wordpress/rules/woocommerce.md +441 -0
  14. package/augment-extensions/domain-rules/wordpress-plugin/README.md +139 -0
  15. package/augment-extensions/domain-rules/wordpress-plugin/examples/ajax-plugin.md +1599 -0
  16. package/augment-extensions/domain-rules/wordpress-plugin/examples/custom-post-type-plugin.md +1727 -0
  17. package/augment-extensions/domain-rules/wordpress-plugin/examples/gutenberg-block-plugin.md +428 -0
  18. package/augment-extensions/domain-rules/wordpress-plugin/examples/gutenberg-block.md +422 -0
  19. package/augment-extensions/domain-rules/wordpress-plugin/examples/mvc-plugin.md +1623 -0
  20. package/augment-extensions/domain-rules/wordpress-plugin/examples/object-oriented-plugin.md +1343 -0
  21. package/augment-extensions/domain-rules/wordpress-plugin/examples/rest-endpoint.md +734 -0
  22. package/augment-extensions/domain-rules/wordpress-plugin/examples/settings-page-plugin.md +1350 -0
  23. package/augment-extensions/domain-rules/wordpress-plugin/examples/simple-procedural-plugin.md +503 -0
  24. package/augment-extensions/domain-rules/wordpress-plugin/examples/singleton-plugin.md +971 -0
  25. package/augment-extensions/domain-rules/wordpress-plugin/module.json +53 -0
  26. package/augment-extensions/domain-rules/wordpress-plugin/rules/activation-hooks.md +770 -0
  27. package/augment-extensions/domain-rules/wordpress-plugin/rules/admin-interface.md +874 -0
  28. package/augment-extensions/domain-rules/wordpress-plugin/rules/ajax-handlers.md +629 -0
  29. package/augment-extensions/domain-rules/wordpress-plugin/rules/asset-management.md +559 -0
  30. package/augment-extensions/domain-rules/wordpress-plugin/rules/context-providers.md +709 -0
  31. package/augment-extensions/domain-rules/wordpress-plugin/rules/cron-jobs.md +736 -0
  32. package/augment-extensions/domain-rules/wordpress-plugin/rules/database-management.md +1057 -0
  33. package/augment-extensions/domain-rules/wordpress-plugin/rules/documentation-standards.md +463 -0
  34. package/augment-extensions/domain-rules/wordpress-plugin/rules/frontend-functionality.md +478 -0
  35. package/augment-extensions/domain-rules/wordpress-plugin/rules/gutenberg-blocks.md +818 -0
  36. package/augment-extensions/domain-rules/wordpress-plugin/rules/internationalization.md +416 -0
  37. package/augment-extensions/domain-rules/wordpress-plugin/rules/migration.md +667 -0
  38. package/augment-extensions/domain-rules/wordpress-plugin/rules/performance-optimization.md +878 -0
  39. package/augment-extensions/domain-rules/wordpress-plugin/rules/plugin-architecture.md +693 -0
  40. package/augment-extensions/domain-rules/wordpress-plugin/rules/plugin-structure.md +352 -0
  41. package/augment-extensions/domain-rules/wordpress-plugin/rules/rest-api.md +818 -0
  42. package/augment-extensions/domain-rules/wordpress-plugin/rules/scaffolding-workflow.md +624 -0
  43. package/augment-extensions/domain-rules/wordpress-plugin/rules/security-best-practices.md +866 -0
  44. package/augment-extensions/domain-rules/wordpress-plugin/rules/testing-patterns.md +1165 -0
  45. package/augment-extensions/domain-rules/wordpress-plugin/rules/testing.md +414 -0
  46. package/augment-extensions/domain-rules/wordpress-plugin/rules/vscode-integration.md +751 -0
  47. package/augment-extensions/domain-rules/wordpress-plugin/rules/woocommerce-integration.md +949 -0
  48. package/augment-extensions/domain-rules/wordpress-plugin/rules/wordpress-org-submission.md +458 -0
  49. package/augment-extensions/examples/gutenberg-block-plugin/README.md +101 -0
  50. package/augment-extensions/examples/gutenberg-block-plugin/examples/testimonial-block.md +428 -0
  51. package/augment-extensions/examples/gutenberg-block-plugin/module.json +40 -0
  52. package/augment-extensions/examples/rest-api-plugin/README.md +98 -0
  53. package/augment-extensions/examples/rest-api-plugin/examples/task-manager-api.md +1299 -0
  54. package/augment-extensions/examples/rest-api-plugin/module.json +40 -0
  55. package/augment-extensions/examples/woocommerce-extension/README.md +98 -0
  56. package/augment-extensions/examples/woocommerce-extension/examples/product-customizer.md +763 -0
  57. package/augment-extensions/examples/woocommerce-extension/module.json +40 -0
  58. package/augment-extensions/workflows/wordpress-plugin/README.md +232 -0
  59. package/augment-extensions/workflows/wordpress-plugin/ai-prompts.md +839 -0
  60. package/augment-extensions/workflows/wordpress-plugin/bead-decomposition-patterns.md +854 -0
  61. package/augment-extensions/workflows/wordpress-plugin/examples/complete-plugin-example.md +540 -0
  62. package/augment-extensions/workflows/wordpress-plugin/examples/custom-post-type-example.md +1083 -0
  63. package/augment-extensions/workflows/wordpress-plugin/examples/feature-addition-workflow.md +669 -0
  64. package/augment-extensions/workflows/wordpress-plugin/examples/plugin-creation-workflow.md +597 -0
  65. package/augment-extensions/workflows/wordpress-plugin/examples/secure-form-handler-example.md +925 -0
  66. package/augment-extensions/workflows/wordpress-plugin/examples/security-audit-workflow.md +752 -0
  67. package/augment-extensions/workflows/wordpress-plugin/examples/wordpress-org-submission-workflow.md +773 -0
  68. package/augment-extensions/workflows/wordpress-plugin/module.json +49 -0
  69. package/augment-extensions/workflows/wordpress-plugin/rules/best-practices.md +942 -0
  70. package/augment-extensions/workflows/wordpress-plugin/rules/development-workflow.md +702 -0
  71. package/augment-extensions/workflows/wordpress-plugin/rules/submission-workflow.md +728 -0
  72. package/augment-extensions/workflows/wordpress-plugin/rules/testing-workflow.md +775 -0
  73. package/cli/dist/cli.js +5 -1
  74. package/cli/dist/cli.js.map +1 -1
  75. package/cli/dist/commands/show.d.ts.map +1 -1
  76. package/cli/dist/commands/show.js +41 -0
  77. package/cli/dist/commands/show.js.map +1 -1
  78. package/modules.md +52 -0
  79. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "rest-api-plugin",
3
+ "version": "1.0.0",
4
+ "displayName": "REST API Plugin Examples",
5
+ "description": "Complete REST API plugin examples with custom endpoints (GET, POST, PUT, DELETE), authentication, validation, error handling, and JavaScript client examples",
6
+ "type": "examples",
7
+ "author": "Augment Extensions",
8
+ "license": "MIT",
9
+ "augment": {
10
+ "characterCount": 40367,
11
+ "priority": "medium",
12
+ "category": "examples",
13
+ "appliesTo": {
14
+ "filePatterns": [
15
+ "**/*.php",
16
+ "**/includes/api/**/*.php",
17
+ "**/assets/js/**/*.js"
18
+ ],
19
+ "projectTypes": [
20
+ "wordpress-plugin",
21
+ "rest-api"
22
+ ]
23
+ }
24
+ },
25
+ "installation": {
26
+ "required": false,
27
+ "dependencies": []
28
+ },
29
+ "tags": [
30
+ "wordpress",
31
+ "rest-api",
32
+ "api",
33
+ "endpoints",
34
+ "authentication",
35
+ "php",
36
+ "javascript",
37
+ "examples"
38
+ ]
39
+ }
40
+
@@ -0,0 +1,98 @@
1
+ # WooCommerce Extension Examples
2
+
3
+ ## Overview
4
+
5
+ Complete WooCommerce extension examples demonstrating custom product fields, checkout customization, payment gateway integration, order hooks, and WooCommerce best practices.
6
+
7
+ ## Key Benefits
8
+
9
+ - **Product Extensions**: Custom product fields and meta data
10
+ - **Checkout Customization**: Custom checkout fields and validation
11
+ - **Payment Gateway**: Complete payment gateway implementation
12
+ - **Order Management**: Order hooks and custom order statuses
13
+ - **HPOS Compatible**: High-Performance Order Storage support
14
+ - **Best Practices**: WooCommerce coding standards and security
15
+
16
+ ## Installation
17
+
18
+ These are reference examples. Copy the code into your WordPress plugin project.
19
+
20
+ **Requirements**: WooCommerce 6.0+
21
+
22
+ ## Directory Structure
23
+
24
+ ```
25
+ augment-extensions/examples/woocommerce-extension/
26
+ ├── module.json # Module metadata
27
+ ├── README.md # This file
28
+ └── examples/
29
+ ├── product-customizer.md # Custom product fields and options
30
+ ├── checkout-manager.md # Checkout field customization
31
+ └── payment-gateway.md # Custom payment gateway
32
+ ```
33
+
34
+ ## Examples Included
35
+
36
+ ### 1. Product Customizer
37
+ Product customization demonstrating:
38
+ - Custom product fields (text, select, checkbox)
39
+ - Product meta data storage
40
+ - Frontend display
41
+ - Cart item data
42
+ - Order item meta
43
+ - Admin product editing
44
+
45
+ ### 2. Checkout Manager
46
+ Checkout customization with:
47
+ - Custom checkout fields
48
+ - Field validation
49
+ - Order meta storage
50
+ - Email display
51
+ - Admin order display
52
+ - Conditional field logic
53
+
54
+ ### 3. Payment Gateway
55
+ Complete payment gateway including:
56
+ - Gateway registration
57
+ - Settings page
58
+ - Payment processing
59
+ - Webhook handling
60
+ - Refund support
61
+ - Transaction logging
62
+
63
+ ## Character Count
64
+
65
+ ~0 characters (will be updated after creation)
66
+
67
+ ## Contents
68
+
69
+ - Complete plugin files (PHP)
70
+ - WooCommerce hooks and filters
71
+ - HPOS compatibility
72
+ - Product meta management
73
+ - Checkout field handling
74
+ - Payment gateway implementation
75
+ - Order management
76
+ - Email customization
77
+ - Admin interfaces
78
+
79
+ ## Usage
80
+
81
+ ```bash
82
+ # Copy example to your project
83
+ cp -r examples/product-customizer/ /path/to/wp-content/plugins/
84
+
85
+ # Activate WooCommerce first
86
+ # Then activate the extension plugin
87
+ ```
88
+
89
+ ## Related Modules
90
+
91
+ - `domain-rules/wordpress-plugin` - WordPress plugin development guidelines
92
+ - `workflows/wordpress-plugin` - WordPress plugin development workflow
93
+ - `coding-standards/php` - PHP coding standards
94
+
95
+ ## Version History
96
+
97
+ - **1.0.0** (2026-01-26): Initial release with three complete examples
98
+