Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP PHP Plugin scaffolding #32

Merged
merged 48 commits into from
Nov 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
2e283b4
Create exception interface and InvalidService exception
JPry Oct 28, 2020
046ba6d
Create activateable, deactivateable, and registerable interfaces
JPry Oct 28, 2020
b7b996d
Create extended container based on the WC container class
JPry Oct 28, 2020
7de5710
Create Conditional and Service interfaces
JPry Oct 28, 2020
2f3ebb4
Create a PluginHelper trait
JPry Oct 29, 2020
4bf7896
Create a helper trait for asset source files
JPry Oct 29, 2020
a83b407
Create an Asset interface
JPry Oct 29, 2020
c35b82f
Create InvalidURI exception
JPry Oct 29, 2020
fe43cac
Create base asset class
JPry Oct 29, 2020
eb569b3
Create a base asset class for admin-only assets
JPry Oct 30, 2020
725185f
Add file extension as property instead of parameter
JPry Oct 30, 2020
90b5efc
Create Script Helper trait
JPry Oct 30, 2020
fbabfe9
Create asset classes for scripts and admin scripts
JPry Oct 30, 2020
e4ffc04
Create exception for Invalid assets
JPry Oct 30, 2020
3fa75fc
Add plugin version to the plugin helper trait
JPry Oct 30, 2020
eb1a6d6
Create AssetsHandler class
JPry Nov 2, 2020
4266a4e
Create an interface for asset handling
JPry Nov 2, 2020
e91c85b
Add exception case for invalid asset handle
JPry Nov 2, 2020
f94da31
Create our service provider class
JPry Nov 2, 2020
46efe7e
Create out own abstract service provider
JPry Nov 2, 2020
ed1a1da
Create google menu as a service class
JPry Nov 2, 2020
4d1eae4
Create service provider for our core services
JPry Nov 2, 2020
3ee37bd
Create plugin interface
JPry Nov 2, 2020
6e40aeb
Create main plugin and container
JPry Nov 2, 2020
788cfc8
Create factory for generating the main plugin instance
JPry Nov 2, 2020
6bd2b94
Wire up factory and container getter function in the main file
JPry Nov 2, 2020
cb8ddaf
Update package-lock.json
JPry Nov 2, 2020
4a4ec27
Add exception method for a handle that already exists.
JPry Nov 2, 2020
2db720d
Validate a handle doesn't exists before adding it
JPry Nov 2, 2020
b8680cd
Create AssetsAwareness trait
JPry Nov 2, 2020
9486f72
Update script helper to make compatible with other traits
JPry Nov 2, 2020
a4e5bdb
Create a admin conditional trait
JPry Nov 2, 2020
88fc469
Wire up assets handler
JPry Nov 2, 2020
400767d
Create Connect account page placeholder
JPry Nov 2, 2020
a428587
Change the plugin name in all the places
JPry Nov 9, 2020
6c08a58
Rename a few more instances of GoogleForWC
jconroy Nov 10, 2020
fafc325
Update requires
jconroy Nov 10, 2020
5d1cec1
Enqueue styles and scripts only on wc admin registered pages
jconroy Nov 10, 2020
82fcc91
Rename initial “page” to get started and fix some more google-for-woo…
jconroy Nov 10, 2020
0713f16
Merge branch 'trunk' into feature/scaffolding
ecgan Nov 10, 2020
17ba8f3
Update package-lock.json.
ecgan Nov 10, 2020
a818b4b
Include the file extension first
JPry Nov 10, 2020
bf63fa0
Consolidate Exception classes into single class
JPry Nov 10, 2020
e708742
Add URI to base asset class
JPry Nov 10, 2020
7667064
Create some unit test data and bootstrap files
JPry Nov 10, 2020
7d97ac4
Tweak editor config file for JSON, md, and yml files
JPry Nov 10, 2020
446763e
Update composer.json format to match editor config
JPry Nov 10, 2020
3275235
Initial unit test for AdminScriptAsset
JPry Nov 10, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,5 @@ trim_trailing_whitespace = true
trim_trailing_whitespace = false

[*.{md,json,yml}]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2

[*.json]
indent_style = tab
47 changes: 26 additions & 21 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
{
"name": "woocommerce/google-for-woocommerce",
"type": "wordpress-plugin",
"require": {
"php": ">=7.1",
"automattic/jetpack-autoloader": "^2.4"
},
"require-dev": {
"phpunit/phpunit": "^6.5 || ^7",
"wp-coding-standards/wpcs": "^2.3",
"dealerdirect/phpcodesniffer-composer-installer": "^v0.7"
},
"license": "GPL-3.0",
"autoload": {
"psr-4": {
"Automattic\\WooCommerce\\GoogleForWC\\": "src/"
}
},
"config": {
"platform": {
"php": "7.4"
}
"name": "woocommerce/google-listings-and-ads",
"type": "wordpress-plugin",
"require": {
"php": ">=7.1",
"automattic/jetpack-autoloader": "^2.4"
},
"require-dev": {
"phpunit/phpunit": "^6.5 || ^7",
"wp-coding-standards/wpcs": "^2.3",
"dealerdirect/phpcodesniffer-composer-installer": "^v0.7"
},
"license": "GPL-3.0",
"autoload": {
"psr-4": {
"Automattic\\WooCommerce\\GoogleListingsAndAds\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Automattic\\WooCommerce\\GoogleListingsAndAds\\Tests\\": "tests/"
}
},
"config": {
"platform": {
"php": "7.4"
}
}
}
Loading