Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Mar 31, 2021
1 parent 3c5bdaa commit 185c468
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
- name: Install the dependencies
run: npm i

- name: Clone the toolkit
run: |
git clone https://github.com/microsoftgraph/microsoft-graph-toolkit
npm run snippets
# - name: Clone the toolkit
# run: |
# git clone https://github.com/microsoftgraph/microsoft-graph-toolkit
# npm run snippets

- name: Install vsce
run: npm i -g vsce
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,29 @@ Snippets to insert the MGT web component in HTML:

| Snippet |
|---------|
| mgt-agenda |
| mgt-people |
| mgt-login |
| mgt-people-picker |
| mgt-person |
| mgt-person-card |
| mgt-tasks |
| mgt-teams-channel-picker |
| `mgt-agenda` |
| `mgt-login` |
| `mgt-people` |
| `mgt-people-picker` |
| `mgt-person` |
| `mgt-person-card` |
| `mgt-tasks` |
| `mgt-teams-channel-picker` |

### CSS

Snippets to quickly modify the component styles:

| Snippet |
|---------|
| mgt-agenda |
| mgt-people |
| mgt-login |
| mgt-people-picker |
| mgt-person |
| mgt-person-card |
| mgt-tasks |
| mgt-teams-channel-picker |
| `mgt-agenda` |
| `mgt-login` |
| `mgt-people` |
| `mgt-people-picker` |
| `mgt-person` |
| `mgt-person-card` |
| `mgt-tasks` |
| `mgt-teams-channel-picker` |

## Changelog

Expand Down
4 changes: 2 additions & 2 deletions scripts/generate-css-snippets.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ const readmePath = '../README.md';
let mdContent = fs.readFileSync(tmplPath, { encoding: "utf-8" });

if (mdContent) {
mdContent = mdContent.replace(`{HTML_SNIPPETS}`, uniqComponents.map(c => `| ${c} |`).join(`\n`));
mdContent = mdContent.replace(`{CSS_SNIPPETS}`, uniqComponents.map(c => `| ${c} |`).join(`\n`));
mdContent = mdContent.replace(`{HTML_SNIPPETS}`, uniqComponents.map(c => `| \`${c}\` |`).join(`\n`));
mdContent = mdContent.replace(`{CSS_SNIPPETS}`, uniqComponents.map(c => `| \`${c}\` |`).join(`\n`));
fs.writeFileSync(mdPath, mdContent, { encoding: "utf-8"})
}
}
Expand Down
2 changes: 1 addition & 1 deletion snippets/css.components.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"mgt-agenda":{"prefix":"mgt-agenda","body":["mgt-agenda${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-agenda\" component."},"mgt-people":{"prefix":"mgt-people","body":["mgt-people${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-people\" component."},"mgt-login":{"prefix":"mgt-login","body":["mgt-login${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-login\" component."},"mgt-people-picker":{"prefix":"mgt-people-picker","body":["mgt-people-picker${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-people-picker\" component."},"mgt-person":{"prefix":"mgt-person","body":["mgt-person${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-person\" component."},"mgt-person-card":{"prefix":"mgt-person-card","body":["mgt-person-card${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-person-card\" component."},"mgt-tasks":{"prefix":"mgt-tasks","body":["mgt-tasks${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-tasks\" component."},"mgt-teams-channel-picker":{"prefix":"mgt-teams-channel-picker","body":["mgt-teams-channel-picker${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-teams-channel-picker\" component."}}
{"mgt-agenda":{"prefix":"mgt-agenda","body":["mgt-agenda${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-agenda\" component."},"mgt-login":{"prefix":"mgt-login","body":["mgt-login${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-login\" component."},"mgt-people":{"prefix":"mgt-people","body":["mgt-people${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-people\" component."},"mgt-people-picker":{"prefix":"mgt-people-picker","body":["mgt-people-picker${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-people-picker\" component."},"mgt-person":{"prefix":"mgt-person","body":["mgt-person${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-person\" component."},"mgt-person-card":{"prefix":"mgt-person-card","body":["mgt-person-card${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-person-card\" component."},"mgt-tasks":{"prefix":"mgt-tasks","body":["mgt-tasks${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-tasks\" component."},"mgt-teams-channel-picker":{"prefix":"mgt-teams-channel-picker","body":["mgt-teams-channel-picker${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-teams-channel-picker\" component."}}
2 changes: 1 addition & 1 deletion snippets/html.components.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"mgt-agenda":{"prefix":"mgt-agenda","body":["<mgt-agenda ${1:}></mgt-agenda>"],"description":"Adds the \"mgt-agenda\" component."},"mgt-people":{"prefix":"mgt-people","body":["<mgt-people ${1:}></mgt-people>"],"description":"Adds the \"mgt-people\" component."},"mgt-login":{"prefix":"mgt-login","body":["<mgt-login ${1:}></mgt-login>"],"description":"Adds the \"mgt-login\" component."},"mgt-people-picker":{"prefix":"mgt-people-picker","body":["<mgt-people-picker ${1:}></mgt-people-picker>"],"description":"Adds the \"mgt-people-picker\" component."},"mgt-person":{"prefix":"mgt-person","body":["<mgt-person ${1:}></mgt-person>"],"description":"Adds the \"mgt-person\" component."},"mgt-person-card":{"prefix":"mgt-person-card","body":["<mgt-person-card ${1:}></mgt-person-card>"],"description":"Adds the \"mgt-person-card\" component."},"mgt-tasks":{"prefix":"mgt-tasks","body":["<mgt-tasks ${1:}></mgt-tasks>"],"description":"Adds the \"mgt-tasks\" component."},"mgt-teams-channel-picker":{"prefix":"mgt-teams-channel-picker","body":["<mgt-teams-channel-picker ${1:}></mgt-teams-channel-picker>"],"description":"Adds the \"mgt-teams-channel-picker\" component."}}
{"mgt-agenda":{"prefix":"mgt-agenda","body":["<mgt-agenda ${1:}></mgt-agenda>"],"description":"Adds the \"mgt-agenda\" component."},"mgt-login":{"prefix":"mgt-login","body":["<mgt-login ${1:}></mgt-login>"],"description":"Adds the \"mgt-login\" component."},"mgt-people":{"prefix":"mgt-people","body":["<mgt-people ${1:}></mgt-people>"],"description":"Adds the \"mgt-people\" component."},"mgt-people-picker":{"prefix":"mgt-people-picker","body":["<mgt-people-picker ${1:}></mgt-people-picker>"],"description":"Adds the \"mgt-people-picker\" component."},"mgt-person":{"prefix":"mgt-person","body":["<mgt-person ${1:}></mgt-person>"],"description":"Adds the \"mgt-person\" component."},"mgt-person-card":{"prefix":"mgt-person-card","body":["<mgt-person-card ${1:}></mgt-person-card>"],"description":"Adds the \"mgt-person-card\" component."},"mgt-tasks":{"prefix":"mgt-tasks","body":["<mgt-tasks ${1:}></mgt-tasks>"],"description":"Adds the \"mgt-tasks\" component."},"mgt-teams-channel-picker":{"prefix":"mgt-teams-channel-picker","body":["<mgt-teams-channel-picker ${1:}></mgt-teams-channel-picker>"],"description":"Adds the \"mgt-teams-channel-picker\" component."}}
Loading

0 comments on commit 185c468

Please sign in to comment.