Skip to content

Commit

Permalink
Merge pull request #1 from LaunchWare/tooling
Browse files Browse the repository at this point in the history
tooling
  • Loading branch information
dpickett authored Sep 11, 2023
2 parents 69b23c7 + 3e459b8 commit 6c6d350
Show file tree
Hide file tree
Showing 14 changed files with 13,715 additions and 12,516 deletions.
2 changes: 1 addition & 1 deletion .estlintrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
files: ["*.ts", "*.tsx"],
processor: "@graphql-eslint/graphql",
parser: "@typescript-eslint/parser",
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
extends: ["@launchware/eslint-config-react", "eslint:recommended", "plugin:@typescript-eslint/recommended"],
env: {
es6: true,
},
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint
"on":
pull_request:
push:
branches:
- main
- staging
- production
jobs:
lint_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install asdf & tools
uses: asdf-vm/actions/install@v2
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: lint
run: pnpm run lint
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 100,
"semi": true
}
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodejs 18.17.1
pnpm 8.7.5
54 changes: 9 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,13 @@
<p align="center">
<a href="https://www.gatsbyjs.com/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts">
<img alt="Gatsby" src="https://www.gatsbyjs.com/Gatsby-Monogram.svg" width="60" />
</a>
</p>
<h1 align="center">
Gatsby Minimal TypeScript Starter
</h1>
# LaunchWare Site

## 🚀 Quick start
## Installation

1. **Create a Gatsby site.**
```bash
pnpm install
```

Use the Gatsby CLI to create a new site, specifying the minimal TypeScript starter.
## Running

```shell
# create a new Gatsby site using the minimal TypeScript starter
npm init gatsby -- -ts
```

2. **Start developing.**

Navigate into your new site’s directory and start it up.

```shell
cd my-gatsby-site/
npm run develop
```

3. **Open the code and start customizing!**

Your site is now running at http://localhost:8000!

Edit `src/pages/index.tsx` to see your site update in real-time!

4. **Learn more**

- [Documentation](https://www.gatsbyjs.com/docs/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts)
- [Tutorials](https://www.gatsbyjs.com/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts)
- [Guides](https://www.gatsbyjs.com/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts)
- [API Reference](https://www.gatsbyjs.com/docs/api-reference/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts)
- [Plugin Library](https://www.gatsbyjs.com/plugins?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts)
- [Cheat Sheet](https://www.gatsbyjs.com/docs/cheat-sheet/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts)

## 🚀 Quick start (Netlify)

Deploy this starter with one click on [Netlify](https://app.netlify.com/signup):

[<img src="https://www.netlify.com/img/deploy/button.svg" alt="Deploy to Netlify" />](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-minimal-ts)
```bash
pnpm develop
```
25 changes: 19 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@
"react native"
],
"scripts": {
"build": "gatsby build",
"clean": "gatsby clean",
"develop": "gatsby develop",
"lint": "pnpm run lint:syntax && pnpm lint:style",
"lint:syntax": "eslint",
"lint:style": "prettier -u -c ./src/**/*.**",
"start": "gatsby develop",
"build": "gatsby build",
"serve": "gatsby serve",
"clean": "gatsby clean",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@mdx-js/react": "^2.3.0",
"eslint": "^8.37.0",
"eslint": "^8.47.0",
"gatsby": "^5.8.0",
"gatsby-plugin-feed": "^5.8.0",
"gatsby-plugin-google-gtag": "^5.8.0",
Expand All @@ -45,12 +48,22 @@
},
"devDependencies": {
"@graphql-eslint/eslint-plugin": "^3.18.0",
"@launchware/eslint-config-react": "0.0.3",
"@types/node": "^18.15.8",
"@types/react": "^18.0.29",
"@types/react-dom": "^18.0.11",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"babel-eslint": "^10.1.0",
"typescript": "^5.0.2"
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-react-refresh": "^0.4.3",
"install-peerdeps": "^3.0.3",
"prettier": "^3.0.3",
"typescript": "^4.2.0"
}
}
Loading

0 comments on commit 6c6d350

Please sign in to comment.