Skip to content

Commit

Permalink
chore: remove all samples except react-contoso (#2627)
Browse files Browse the repository at this point in the history
Removing all samples except react-contoso
Updating samples references

---------

Co-authored-by: Gavin Barron <[email protected]>
  • Loading branch information
sebastienlevert and gavinbarron committed Aug 21, 2023
1 parent e7d2dc8 commit d56d543
Show file tree
Hide file tree
Showing 286 changed files with 6 additions and 35,643 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,3 @@ package-lock.json
storybook-static/
custom-elements.json
workbench.html

!/samples/teamsfx-app/.vscode
11 changes: 2 additions & 9 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@
"packages": [
"packages/*",
"packages/providers/*",
"samples/react-contoso",
"samples/react-app",
"samples/react-chat",
"samples/angular-app",
"samples/vue-app",
"samples/electron-app",
"samples/sp-webpart",
"samples/sp-mgt"
"samples/*"
],
"npmClient": "yarn",
"version": "independent"
}
}
14 changes: 1 addition & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@
"packages": [
"packages/*",
"packages/providers/*",
"samples/react-contoso",
"samples/react-app",
"samples/react-chat",
"samples/angular-app",
"samples/vue-app",
"samples/electron-app",
"samples/sp-webpart",
"samples/sp-mgt",
"samples/teamsfx-app"
"samples/*"
],
"nohoist": [
"**/@microsoft/sp-office-ui-fabric-core**",
Expand All @@ -32,12 +24,8 @@
"build:mgt-components": "cd ./packages/mgt-components && npm run build",
"build:mgt-react": "lerna run build --scope @microsoft/mgt-react",
"build:mgt-spfx": "lerna run build --scope @microsoft/mgt-spfx",
"build:sp-webpart": "lerna run build --scope mgt-demo",
"build:sp-mgt": "lerna run build --scope sp-mgt-no-framework",
"build:mgt-chat": "lerna run build --scope @microsoft/mgt-chat",
"build:react-contoso": "lerna run build --scope react-contoso",
"package:sp-webpart": "lerna run package --scope mgt-demo",
"package:sp-mgt": "lerna run package --scope sp-mgt-no-framework",
"bundle": "cd ./packages/mgt && npm run bundle",
"clean": "lerna run --parallel --stream --scope @microsoft/* clean",
"lint:eslint": "eslint -c .eslintrc.js --quiet 'packages/*/src/**/*.ts'",
Expand Down
21 changes: 3 additions & 18 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</p>

<p align="center">
<a href="#packages">Packages</a> • <a href="#components">Components</a> • <a href="#providers">Providers</a> • <a href="#getting-started">Getting Started</a> • <a href="#running-the-samples">Running the Samples</a> • <a href="#contribute">Contribute</a> • <a href="#feedback-and-requests">Feedback & Requests</a> <br>• <a href="#license">License</a> • <a href="#code-of-conduct">Code of Conduct</a>
<a href="#packages">Packages</a> • <a href="#components">Components</a> • <a href="#providers">Providers</a> • <a href="#getting-started">Getting Started</a> • <a href="#using-our-samples">Using our samples</a> • <a href="#contribute">Contribute</a> • <a href="#feedback-and-requests">Feedback & Requests</a> <br>• <a href="#license">License</a> • <a href="#code-of-conduct">Code of Conduct</a>
</p>

## Packages
Expand Down Expand Up @@ -143,29 +143,14 @@ Now you can reference all components and providers at the page you are using:
<mgt-agenda></mgt-agenda>
```

## Running the samples
## Using our samples

Some of our samples are coupled to use the locally built mgt packages instead of the published version from npm. Because of this, it's helpful to build the monorepo before attempting to run any of the samples.

```bash
# Starting at the root
yarn
yarn build
# Now you can run the React sample using the local packages
cd ./samples/react-app/
yarn start
```

This also means that running the samples in isolation may fail if there are breaking changes between the published version of mgt and the local copy.
To workaround this, use samples that are known to be compatible with a specific release by checking out the appropriate branch or tag first.
We, in collaboration with the community, are providing different samples to help you with different scenarios to leverage the Microsoft Graph Toolkit. Our samples are hosted in another repo and is also fully open-source! Head over to the [Microsoft Graph Toolkit Samples Repository](https://aka.ms/mgt/samples) and you will find all sorts of samples to get you started quickly!

## Contribute

We enthusiastically welcome contributions and feedback. Please read our [wiki](https://github.com/microsoftgraph/microsoft-graph-toolkit/wiki) and the [contributing guide](CONTRIBUTING.md) before you begin.

### Code Contribution Challenge
There are many exciting new features or interesting bugs that have been left behind because our team is small with limited capacity. We would love your help! We have tagged these issues with 'help wanted' and/or 'good first issue'. If you see anything you would like to contribute to, you can reach out to [email protected] or reply to the issue for help or further discussion.

## Feedback and Requests

For general questions and support, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/microsoft-graph-toolkit) where questions should be tagged with `microsoft-graph-toolkit`
Expand Down
16 changes: 0 additions & 16 deletions samples/angular-app/.editorconfig

This file was deleted.

48 changes: 0 additions & 48 deletions samples/angular-app/.gitignore

This file was deleted.

24 changes: 0 additions & 24 deletions samples/angular-app/README.md

This file was deleted.

115 changes: 0 additions & 115 deletions samples/angular-app/angular.json

This file was deleted.

12 changes: 0 additions & 12 deletions samples/angular-app/browserslist

This file was deleted.

32 changes: 0 additions & 32 deletions samples/angular-app/e2e/protractor.conf.js

This file was deleted.

23 changes: 0 additions & 23 deletions samples/angular-app/e2e/src/app.e2e-spec.ts

This file was deleted.

11 changes: 0 additions & 11 deletions samples/angular-app/e2e/src/app.po.ts

This file was deleted.

Loading

0 comments on commit d56d543

Please sign in to comment.