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

feat: combine showcases #724

Merged
merged 6 commits into from
Mar 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: combine showcases
  • Loading branch information
nmerget committed Mar 24, 2023
commit c0bb4108e645cec9f1bb292dedf75c8f53417d42
7 changes: 0 additions & 7 deletions .github/workflows/03-deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ jobs:
- name: 🦵🦿 I like to move it move it
shell: bash
run: |
mv build-showcases/angular-current-showcase build-showcases/patternhub/angular-current-showcase
mv build-showcases/html-showcase build-showcases/patternhub/html-showcase
mv build-showcases/angular-lts-showcase build-showcases/patternhub/angular-lts-showcase
mv build-showcases/reactwind-showcase build-showcases/patternhub/reactwind-showcase
mv build-showcases/react-showcase build-showcases/patternhub/react-showcase
mv build-showcases/vanilla-showcase build-showcases/patternhub/vanilla-showcase
mv build-showcases/vue-showcase build-showcases/patternhub/vue-showcase
mv build-showcases/patternhub out

- name: ↔ Extract branch name
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ that we're gaining out of the community. So please support us in any way possibl

## How to start develop / contribute

```Bash
```shell
npm install
npm run build
npm run start
Expand Down
112 changes: 90 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ to: ../../showcases/angular-showcase/src/app/components/<%= name %>/<%= name %>.
---
import { Component } from '@angular/core';

import defaultComponentVariants from '../../../../../shared/<%= name %>';
import defaultComponentVariants from '../../../../../shared/<%= name %>.json';

@Component({
selector: 'app-<%= name %>',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ skip_if: '/components/<%= name %>'
label: 'TODO: Add to specific category; DB<%= h.changeCase.pascal(name) %>',
link: '/components/<%= name %>',
children: [
{
label: 'Properties',
link: '/components/<%= name %>/properties'
},
{
label: 'Examples',
link: '/components/<%= name %>/examples'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ to: ../../showcases/react-showcase/src/components/<%= name %>/index.tsx
---
import { DB<%= h.changeCase.pascal(name) %> } from '../../../../../output/react/src';
import DefaultComponent from '../index';
import defaultComponentVariants from '../../../../shared/<%= name %>';
import defaultComponentVariants from '../../../../shared/<%= name %>.json';
import { DefaultComponentExample } from '../../../../shared/default-component-data';
import { DB<%= h.changeCase.pascal(name) %>Props } from '../../../../../output/react/src/components/<%= name %>/model';
import { getVariants } from '../../utils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
---
to: ../../showcases/shared/<%= name %>.ts
to: ../../showcases/shared/<%= name %>.json
---
import { DefaultComponentVariants } from './default-component-data';

const defaultComponentVariants: DefaultComponentVariants[] = [
[
{
name: 'TODO: Edit me in ./showcases/shared/<%= name %>.ts',
nmerget marked this conversation as resolved.
Show resolved Hide resolved
examples: [
{
name: '(Default) <%= name %>'
name: '(Default) <%= name %>',
code: {
"default":""
}
}
]
}
]

export default defaultComponentVariants;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ to: ../../showcases/vue-showcase/src/components/<%= name %>/<%= h.changeCase.pas
---
<script setup lang="ts">
import DefaultComponent from "../DefaultComponent.vue";
import defaultComponentVariants from "../../../../shared/<%= name %>";
import defaultComponentVariants from "../../../../shared/<%= name %>.json";
import { DB<%= h.changeCase.pascal(name) %> } from "../../../../../output/vue/vue3/src";
</script>

Expand Down
Loading