Skip to content

Commit 7d8d0bd

Browse files
committed
Initial WIP
1 parent a16f6dd commit 7d8d0bd

15 files changed

Lines changed: 20174 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
### Getting Started
2+
3+
This repo uses [yarn workspaces][y-wrk]
4+
5+
```sh
6+
```
7+
18

29
# Contributing
310

@@ -29,3 +36,5 @@ Privacy information can be found at https://privacy.microsoft.com/en-us/
2936

3037
Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents,
3138
or trademarks, whether by implication, estoppel or otherwise.
39+
40+
[y-wrk]: https://yarnpkg.com/blog/2017/08/02/introducing-workspaces/

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"private": true,
3+
"workspaces": [
4+
"packages/*"
5+
],
6+
"scripts": {
7+
"start": "yarn workspace typescriptlang-org start"
8+
}
9+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (http://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# Typescript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# dotenv environment variables file
55+
.env
56+
57+
# gatsby files
58+
.cache/
59+
public
60+
61+
# Mac files
62+
.DS_Store
63+
64+
# Yarn
65+
yarn-error.log
66+
.pnp/
67+
.pnp.js
68+
# Yarn Integrity file
69+
.yarn-integrity
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"endOfLine": "lf",
3+
"semi": false,
4+
"singleQuote": false,
5+
"tabWidth": 2,
6+
"trailingComma": "es5"
7+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 gatsbyjs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<p align="center">
2+
<a href="https://www.gatsbyjs.org">
3+
<img alt="Gatsby" src="https://www.gatsbyjs.org/monogram.svg" width="60" />
4+
</a>
5+
</p>
6+
<h1 align="center">
7+
UI Fabric Gatsby.js
8+
</h1>
9+
10+
Kick off your project with this UI Fabric boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.
11+
12+
## 🚀 Quick start
13+
14+
1. **Create a Gatsby site.**
15+
16+
Use the Gatsby CLI to create a new site, specifying the UI Fabric starter.
17+
18+
```sh
19+
# create a new Gatsby site using the UI Fabric starter
20+
gatsby new my-uifabric-starter https://github.com/kenotron/gatsby-starter-uifabric
21+
```
22+
23+
1. **Start developing.**
24+
25+
Navigate into your new site’s directory and start it up.
26+
27+
```sh
28+
cd my-uifabric-starter/
29+
gatsby develop
30+
```
31+
32+
1. **Open the source code and start editing!**
33+
34+
Your site is now running at `http://localhost:8000`!
35+
36+
_Note: You'll also see a second link: _`http://localhost:8000/___graphql`_. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby tutorial](https://www.gatsbyjs.org/tutorial/part-five/#introducing-graphiql)._
37+
38+
Open the `my-uifabric-starter` directory in your code editor of choice and edit `src/pages/index.js`. Save your changes and the browser will update in real time!
39+
40+
## 🧐 What's inside?
41+
42+
A quick look at the top-level files and directories you'll see in a Gatsby project.
43+
44+
.
45+
├── node_modules
46+
├── src
47+
├── .gitignore
48+
├── .prettierrc
49+
├── gatsby-browser.js
50+
├── gatsby-config.js
51+
├── gatsby-node.js
52+
├── gatsby-ssr.js
53+
├── LICENSE
54+
├── package-lock.json
55+
├── package.json
56+
└── README.md
57+
58+
1. **`/node_modules`**: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.
59+
60+
2. **`/src`**: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. `src` is a convention for “source code”.
61+
62+
3. **`.gitignore`**: This file tells git which files it should not track / not maintain a version history for.
63+
64+
4. **`.prettierrc`**: This is a configuration file for [Prettier](https://prettier.io/). Prettier is a tool to help keep the formatting of your code consistent.
65+
66+
5. **`gatsby-browser.js`**: This file is where Gatsby expects to find any usage of the [Gatsby browser APIs](https://www.gatsbyjs.org/docs/browser-apis/) (if any). These allow customization/extension of default Gatsby settings affecting the browser.
67+
68+
6. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the [config docs](https://www.gatsbyjs.org/docs/gatsby-config/) for more detail).
69+
70+
7. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby Node APIs](https://www.gatsbyjs.org/docs/node-apis/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process.
71+
72+
8. **`gatsby-ssr.js`**: This file is where Gatsby expects to find any usage of the [Gatsby server-side rendering APIs](https://www.gatsbyjs.org/docs/ssr-apis/) (if any). These allow customization of default Gatsby settings affecting server-side rendering.
73+
74+
9. **`LICENSE`**: Gatsby is licensed under the MIT license.
75+
76+
10. **`package-lock.json`** (See `package.json` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).**
77+
78+
11. **`package.json`**: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project.
79+
80+
12. **`README.md`**: A text file containing useful reference information about your project.
81+
82+
## 🎓 Learning Gatsby
83+
84+
Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/). Here are some places to start:
85+
86+
- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.
87+
88+
- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar.
89+
90+
## 💫 Deploy
91+
92+
[![Deploy to Azure](http://azuredeploy.net/deploybutton.png)](https://azuredeploy.net/?repository=https://github.com/kenotron/gatsby-starter-uifabric)
93+
94+
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/kenotron/gatsby-starter-uifabric)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
plugins: [`gatsby-plugin-typescript`],
3+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { Stylesheet, InjectionMode } from "@uifabric/merge-styles"
2+
import { renderStatic } from "@uifabric/merge-styles/lib/server"
3+
import { renderToString } from "react-dom/server"
4+
import React from "react"
5+
6+
export const replaceRenderer = ({
7+
bodyComponent,
8+
replaceBodyHTMLString,
9+
setHeadComponents,
10+
}) => {
11+
const { html, css } = renderStatic(() => {
12+
return renderToString(bodyComponent)
13+
})
14+
15+
replaceBodyHTMLString(html)
16+
17+
setHeadComponents([<style dangerouslySetInnerHTML={{ __html: css }} />])
18+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "typescriptlang-org",
3+
"private": true,
4+
"description": "A simplified bare-bones starter for Gatsby",
5+
"version": "0.1.0",
6+
"license": "MIT",
7+
"scripts": {
8+
"build": "gatsby build",
9+
"develop": "gatsby develop",
10+
"format": "prettier --write src/**/*.{js,jsx}",
11+
"start": "npm run develop",
12+
"serve": "gatsby serve"
13+
},
14+
"dependencies": {
15+
"@uifabric/fluent-theme": "^0.16.7",
16+
"@uifabric/react-cards": "^0.107.6",
17+
"gatsby": "^2.4.0",
18+
"office-ui-fabric-react": "^6.176.0",
19+
"react": "^16.8.6",
20+
"react-dom": "^16.8.6"
21+
},
22+
"devDependencies": {
23+
"gatsby-plugin-typescript": "^2.0.13",
24+
"prettier": "^1.17.0"
25+
},
26+
"repository": {
27+
"type": "git",
28+
"url": "https://github.com/gatsbyjs/gatsby-starter-hello-world"
29+
},
30+
"bugs": {
31+
"url": "https://github.com/gatsbyjs/gatsby/issues"
32+
}
33+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.App {
2+
text-align: center;
3+
}
4+
5+
.App-logo {
6+
animation: App-logo-spin infinite 20s linear;
7+
height: 40vmin;
8+
pointer-events: none;
9+
}
10+
11+
.App-header {
12+
background-color: #282c34;
13+
min-height: 100vh;
14+
display: flex;
15+
flex-direction: column;
16+
align-items: center;
17+
justify-content: center;
18+
font-size: calc(10px + 2vmin);
19+
color: white;
20+
}
21+
22+
.App-link {
23+
color: #61dafb;
24+
}
25+
26+
body,
27+
html,
28+
#___gatsby {
29+
height: 100%;
30+
}

0 commit comments

Comments
 (0)