Skip to content

Commit

Permalink
Remove the rest of the helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed May 25, 2021
1 parent 51c21cc commit da68e43
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 50 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"npm": ">=6.9.0 <7"
},
"config": {
"GUTENBERG_PHASE": 2,
"COMPONENT_SYSTEM_PHASE": 1
"GUTENBERG_PHASE": 2
},
"dependencies": {
"@wordpress/a11y": "file:packages/a11y",
Expand Down
36 changes: 0 additions & 36 deletions packages/components/src/ui/context/component-system-provider.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/components/src/ui/context/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { ComponentSystemProvider } from './component-system-provider';
export {
ContextSystemProvider,
useComponentsContext,
Expand Down
4 changes: 1 addition & 3 deletions storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ const stories = [
'../packages/icons/src/**/stories/*.js',
].filter( Boolean );

const customEnvVariables = {
COMPONENT_SYSTEM_PHASE: 1,
};
const customEnvVariables = {};

module.exports = {
stories,
Expand Down
1 change: 0 additions & 1 deletion typings/gutenberg-env/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
interface Environment {
NODE_ENV: unknown;
COMPONENT_SYSTEM_PHASE: number | undefined;
FORCE_REDUCED_MOTION: boolean | undefined;
}
interface Process {
Expand Down
7 changes: 0 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,6 @@ module.exports = {
10
) || 1
),
// Inject the `COMPONENT_SYSTEM_PHASE` global, used for controlling Component System roll-out.
'process.env.COMPONENT_SYSTEM_PHASE': JSON.stringify(
parseInt(
process.env.npm_package_config_COMPONENT_SYSTEM_PHASE,
10
) || 0
),
'process.env.FORCE_REDUCED_MOTION': JSON.stringify(
process.env.FORCE_REDUCED_MOTION
),
Expand Down

0 comments on commit da68e43

Please sign in to comment.