Skip to content

Commit

Permalink
Admin PWA: make readme private (#33216)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored and sarayourfriend committed Jul 15, 2021
1 parent 62eb7dd commit b9e0c7c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 33 deletions.
30 changes: 0 additions & 30 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1307,12 +1307,6 @@
"markdown_source": "../packages/a11y/README.md",
"parent": "packages"
},
{
"title": "@wordpress/admin-manifest",
"slug": "packages-admin-manifest",
"markdown_source": "../packages/admin-manifest/README.md",
"parent": "packages"
},
{
"title": "@wordpress/annotations",
"slug": "packages-annotations",
Expand Down Expand Up @@ -1505,12 +1499,6 @@
"markdown_source": "../packages/e2e-tests/README.md",
"parent": "packages"
},
{
"title": "@wordpress/edit-navigation",
"slug": "packages-edit-navigation",
"markdown_source": "../packages/edit-navigation/README.md",
"parent": "packages"
},
{
"title": "@wordpress/edit-post",
"slug": "packages-edit-post",
Expand Down Expand Up @@ -1721,24 +1709,6 @@
"markdown_source": "../packages/react-i18n/README.md",
"parent": "packages"
},
{
"title": "@wordpress/react-native-aztec",
"slug": "packages-react-native-aztec",
"markdown_source": "../packages/react-native-aztec/README.md",
"parent": "packages"
},
{
"title": "@wordpress/react-native-bridge",
"slug": "packages-react-native-bridge",
"markdown_source": "../packages/react-native-bridge/README.md",
"parent": "packages"
},
{
"title": "@wordpress/react-native-editor",
"slug": "packages-react-native-editor",
"markdown_source": "../packages/react-native-editor/README.md",
"parent": "packages"
},
{
"title": "@wordpress/readable-js-assets-webpack-plugin",
"slug": "packages-readable-js-assets-webpack-plugin",
Expand Down
11 changes: 8 additions & 3 deletions docs/tool/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
const { camelCase, nth, upperFirst } = require( 'lodash' );
const fs = require( 'fs' );
const glob = require( 'glob' ).sync;
const { join } = require( 'path' );

const baseRepoUrl = '..';
const componentPaths = glob( 'packages/components/src/*/**/README.md', {
Expand All @@ -14,9 +15,13 @@ const componentPaths = glob( 'packages/components/src/*/**/README.md', {
'packages/components/src/view/README.md',
],
} );
const packagePaths = glob( 'packages/*/package.json' ).map(
( fileName ) => fileName.split( '/' )[ 1 ]
);
const packagePaths = glob( 'packages/*/package.json' )
.filter(
// Ignore private packages.
( fileName ) =>
! require( join( __dirname, '..', '..', fileName ) ).private
)
.map( ( fileName ) => fileName.split( '/' )[ 1 ] );

/**
* Generates the package manifest.
Expand Down
1 change: 1 addition & 0 deletions packages/admin-manifest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@wordpress/admin-manifest",
"version": "1.0.0",
"description": "Dynamically creates a Web App manifest and registers the service worker for the admin.",
"private": true,
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
"keywords": [
Expand Down

0 comments on commit b9e0c7c

Please sign in to comment.