Page MenuHomePhabricator

[xec-web-components][Pt2] Update component generation scripts
AbandonedPublic

Authored by kieran709 on Dec 2 2022, 22:48.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Summary

Depends on D12692. Changed the component generation scripts to suit the purpose of this library.
Removed unused colors import from create-component.js
Removed unused css import from template/component.js as we will be using styled-components
Removed auto generated component.css stylesheet from template/ dir
Changed default export to named export in component.js
Changed template/component.stories.js to use named import

Test Plan

cd xec-web-components
npm run storybook
observe the test component
npm run generate SomeComponent
observe that the new component is present in storybook
observe that the structure of the src/SomeComponent dir matches the util/template dir

npm run build
observe that the build succeeds
build will succeed however the newly generated component will not be included in the build dir. This will be addressed in a later diff which updates rollup.config.js

Diff Detail

Repository
rABC Bitcoin ABC
Branch
xec-web-components
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21334
Build 42318: Build Diff
Build 42317: arc lint + arc unit