-
Notifications
You must be signed in to change notification settings - Fork 0
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
Abstracting AMP validators and sanitizers into AMP Library #4
base: develop
Are you sure you want to change the base?
Conversation
@@ -34,7 +34,7 @@ module.exports = function( grunt ) { | |||
stderr: true | |||
}, | |||
readme: { | |||
command: './dev-lib/generate-markdown-readme' // Generate the readme.md. | |||
command: './vendor/xwp/wp-dev-lib/generate-markdown-readme' // Generate the readme.md. | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The submodule is now pulled via composer and goes to the vendor folder
amp.php
Outdated
@@ -96,6 +96,7 @@ function _amp_incorrect_plugin_slug_admin_notice() { | |||
add_action( 'admin_notices', '_amp_incorrect_plugin_slug_admin_notice' ); | |||
} | |||
|
|||
require_once AMP__DIR__ . '/vendor/autoload.php'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include autoloader
@@ -104,7 +104,8 @@ install_db() { | |||
fi | |||
|
|||
# create database | |||
mysqladmin create $DB_NAME --user="$DB_USER" --password="$DB_PASS"$EXTRA | |||
mysql --user="$DB_USER" --password="$DB_PASS"$EXTRA -e"DROP DATABASE IF EXISTS $DB_NAME" | |||
mysql --user="$DB_USER" --password="$DB_PASS"$EXTRA -e"create DATABASE $DB_NAME" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deletes the database if it already exists then re-creates it
}, | ||
{ | ||
"type": "vcs", | ||
"url": "[email protected]:dennisinteractive/amp-library.git" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using our fork of amp-library, see pr dennisinteractive/amp-library#6
composer.json
Outdated
"sabberworm/php-css-parser": "dev-master" | ||
"sabberworm/php-css-parser": "dev-master as 8.0.0", | ||
"xwp/wp-dev-lib": "dev-master", | ||
"lullabot/amp": "dev-amphtml-generator" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Xp-dev-lib is now being cloned with composer
Use fork of lullabot library
@@ -71,7 +71,7 @@ class AMP_Autoloader { | |||
'AMP_Analytics_Options_Submenu_Page' => 'includes/options/views/class-amp-analytics-options-submenu-page', | |||
'AMP_Options_Menu_Page' => 'includes/options/views/class-amp-options-menu-page', | |||
'AMP_Rule_Spec' => 'includes/sanitizers/class-amp-rule-spec', | |||
'AMP_Allowed_Tags_Generated' => 'includes/sanitizers/class-amp-allowed-tags-generated', | |||
// 'AMP_Allowed_Tags_Generated' => 'includes/sanitizers/class-amp-allowed-tags-generated', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is being moved to the amp-library https://github.com/dennisinteractive/amp-library/tree/amphtml-generator/src/Spec
On this pull request I did the following: