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

Remove Stories codebase #4315

Merged
merged 26 commits into from
Mar 9, 2020
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
fb6ff38
Remove Stories related media, JS and CSS code
pierlon Feb 19, 2020
8d64147
Fix failing test
pierlon Feb 19, 2020
aa094d8
Remove unused npm dependencies
pierlon Feb 19, 2020
fb1304b
Update readme
pierlon Feb 19, 2020
3c2c06b
Remove utils
pierlon Feb 19, 2020
ab2fa8a
Remove fonts.json
pierlon Feb 19, 2020
cd77370
Re-add trailing whitespaces to readme.md
pierlon Feb 19, 2020
97ca07a
Remove unused JS methods & npm dependencies
pierlon Feb 19, 2020
045d4ad
Update package-lock.json
pierlon Feb 21, 2020
94fe951
Remove Stories related PHP code
pierlon Feb 21, 2020
258b445
Re-add Stories deprecation notice for AMP options page
pierlon Feb 21, 2020
c73b108
Merge remote-tracking branch 'origin/develop' into enhancement/4203-s…
pierlon Feb 21, 2020
eabc005
Remove failing tests
pierlon Feb 22, 2020
d95e40e
Revert "Re-add Stories deprecation notice for AMP options page"
pierlon Feb 22, 2020
35b894e
Remove Story templates from database
pierlon Feb 23, 2020
ceab012
Remove Story related options
pierlon Feb 23, 2020
d24b79c
Remove 'experiences' option
pierlon Feb 24, 2020
ca5a15e
Make phpunit happy
pierlon Feb 24, 2020
d67421e
Remove Story templates upon plugin update
pierlon Feb 24, 2020
8b3c8b6
Merge remote-tracking branch 'origin/develop' into enhancement/4203-s…
pierlon Mar 7, 2020
50a84a4
Update package-lock.json
pierlon Mar 7, 2020
18a64e0
Merge remote-tracking branch 'origin/develop' into enhancement/4203-s…
pierlon Mar 8, 2020
050b5a0
Re-add image assets for tests
pierlon Mar 8, 2020
318d78d
Remove now unneeded dotenv dependency
swissspidy Mar 9, 2020
e2b87cb
Merge remote-tracking branch 'origin/develop' into enhancement/4203-s…
pierlon Mar 9, 2020
678a799
Update package-lock.json
pierlon Mar 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 0 additions & 32 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = function( grunt ) {
// These patterns paths will be excluded from among the above directory.
const productionExcludedPathPatterns = [
/.*\/src\/.*/,
/.*images\/stories-editor\/.*\.svg/,
];

// These will be removed from the vendor directory after installing but prior to creating a ZIP.
Expand Down Expand Up @@ -85,22 +84,13 @@ module.exports = function( grunt ) {
},
},
},
http: {
google_fonts: {
options: {
url: 'https://www.googleapis.com/webfonts/v1/webfonts?fields=items&prettyPrint=false&key=' + process.env.GOOGLE_FONTS_API_KEY,
},
dest: 'includes/data/fonts.json',
},
},
} );

// Load tasks.
grunt.loadNpmTasks( 'grunt-contrib-clean' );
grunt.loadNpmTasks( 'grunt-contrib-copy' );
grunt.loadNpmTasks( 'grunt-shell' );
grunt.loadNpmTasks( 'grunt-wp-deploy' );
grunt.loadNpmTasks( 'grunt-http' );

// Register tasks.
grunt.registerTask( 'default', [
Expand Down Expand Up @@ -210,28 +200,6 @@ module.exports = function( grunt ) {
doNext();
} );

grunt.registerTask( 'process-fonts', function() {
const fileName = 'includes/data/fonts.json';
let map = grunt.file.readJSON( fileName );
map = JSON.stringify( map );
map = JSON.parse( map );
if ( map ) {
const stripped = map.items.map( ( font ) => {
return {
family: font.family,
variants: font.variants,
category: font.category,
};
} );
grunt.file.write( fileName, JSON.stringify( stripped ) );
}
} );

grunt.registerTask( 'download-fonts', [
'http',
'process-fonts',
] );

grunt.registerTask( 'create-build-zip', [
'shell:create_build_zip',
] );
Expand Down
16 changes: 0 additions & 16 deletions assets/css/src/amp-block-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,6 @@
display: none;
}

/* Latest Stories block */
.amp-block-latest-stories > .latest-stories-carousel {
display: flex;
flex-wrap: nowrap;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;
overflow-y: hidden;
margin: 0;
padding: 0;
}

.latest-stories-carousel .latest-stories__slide {
flex: 0 0 auto;
margin-right: 1rem;
}

/* AMP preview button wrapper */
.wp-core-ui #amp-wrapper-post-preview {
margin-left: -6px;
Expand Down
165 changes: 0 additions & 165 deletions assets/css/src/amp-stories-frontend.css

This file was deleted.

91 changes: 0 additions & 91 deletions assets/css/src/amp-stories.css

This file was deleted.

Loading