Skip to content

Commit 1898c73

Browse files
bootstrap, post 1 and post 2
0 parents  commit 1898c73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+8764
-0
lines changed

.github/workflows/main.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'confgiure-static-build'
8+
9+
jobs:
10+
build_site:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Install Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: npm
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: build
26+
env:
27+
BASE_PATH: '/${{ github.event.repository.name }}'
28+
run: |
29+
npm run build
30+
31+
- name: Upload Artifacts
32+
uses: actions/upload-pages-artifact@v3
33+
with:
34+
# this should match the `pages` option in your adapter-static options
35+
path: 'build/'
36+
37+
deploy:
38+
needs: build_site
39+
runs-on: ubuntu-latest
40+
41+
permissions:
42+
pages: write
43+
id-token: write
44+
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
49+
steps:
50+
- name: Deploy
51+
id: deployment
52+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
node_modules
2+
3+
# Output
4+
.output
5+
.vercel
6+
/.svelte-kit
7+
/build
8+
9+
# OS
10+
.DS_Store
11+
Thumbs.db
12+
13+
# Env
14+
.env
15+
.env.*
16+
!.env.example
17+
!.env.test
18+
19+
# Vite
20+
vite.config.js.timestamp-*
21+
vite.config.ts.timestamp-*

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Package Managers
2+
package-lock.json
3+
pnpm-lock.yaml
4+
yarn.lock

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
7+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
8+
}

.vscode/settings.json

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
"prettier.documentSelectors": ["**/*.svelte"],
3+
"tailwindCSS.classAttributes": [
4+
"class",
5+
"accent",
6+
"active",
7+
"animIndeterminate",
8+
"aspectRatio",
9+
"background",
10+
"badge",
11+
"bgBackdrop",
12+
"bgDark",
13+
"bgDrawer",
14+
"bgLight",
15+
"blur",
16+
"border",
17+
"button",
18+
"buttonAction",
19+
"buttonBack",
20+
"buttonClasses",
21+
"buttonComplete",
22+
"buttonDismiss",
23+
"buttonNeutral",
24+
"buttonNext",
25+
"buttonPositive",
26+
"buttonTextCancel",
27+
"buttonTextConfirm",
28+
"buttonTextFirst",
29+
"buttonTextLast",
30+
"buttonTextNext",
31+
"buttonTextPrevious",
32+
"buttonTextSubmit",
33+
"caretClosed",
34+
"caretOpen",
35+
"chips",
36+
"color",
37+
"controlSeparator",
38+
"controlVariant",
39+
"cursor",
40+
"display",
41+
"element",
42+
"fill",
43+
"fillDark",
44+
"fillLight",
45+
"flex",
46+
"flexDirection",
47+
"gap",
48+
"gridColumns",
49+
"height",
50+
"hover",
51+
"inactive",
52+
"indent",
53+
"justify",
54+
"meter",
55+
"padding",
56+
"position",
57+
"regionAnchor",
58+
"regionBackdrop",
59+
"regionBody",
60+
"regionCaption",
61+
"regionCaret",
62+
"regionCell",
63+
"regionChildren",
64+
"regionChipList",
65+
"regionChipWrapper",
66+
"regionCone",
67+
"regionContent",
68+
"regionControl",
69+
"regionDefault",
70+
"regionDrawer",
71+
"regionFoot",
72+
"regionFootCell",
73+
"regionFooter",
74+
"regionHead",
75+
"regionHeadCell",
76+
"regionHeader",
77+
"regionIcon",
78+
"regionInput",
79+
"regionInterface",
80+
"regionInterfaceText",
81+
"regionLabel",
82+
"regionLead",
83+
"regionLegend",
84+
"regionList",
85+
"regionListItem",
86+
"regionNavigation",
87+
"regionPage",
88+
"regionPanel",
89+
"regionRowHeadline",
90+
"regionRowMain",
91+
"regionSummary",
92+
"regionSymbol",
93+
"regionTab",
94+
"regionTrail",
95+
"ring",
96+
"rounded",
97+
"select",
98+
"shadow",
99+
"slotDefault",
100+
"slotFooter",
101+
"slotHeader",
102+
"slotLead",
103+
"slotMessage",
104+
"slotMeta",
105+
"slotPageContent",
106+
"slotPageFooter",
107+
"slotPageHeader",
108+
"slotSidebarLeft",
109+
"slotSidebarRight",
110+
"slotTrail",
111+
"spacing",
112+
"text",
113+
"track",
114+
"transition",
115+
"width",
116+
"zIndex"
117+
]
118+
}

LICENSE

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) 2024 Stephen O'Dwyer
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.

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# gradientsearch.dev
2+
3+
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
4+
5+
## Creating a project
6+
7+
If you're seeing this, you've probably already done this step. Congrats!
8+
9+
```bash
10+
# create a new project in the current directory
11+
npm create svelte@latest
12+
13+
# create a new project in my-app
14+
npm create svelte@latest my-app
15+
```
16+
17+
## Developing
18+
19+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
20+
21+
```bash
22+
npm run dev
23+
24+
# or start the server and open the app in a new browser tab
25+
npm run dev -- --open
26+
```
27+
28+
## Building
29+
30+
To create a production version of your app:
31+
32+
```bash
33+
npm run build
34+
```
35+
36+
You can preview the production build with `npm run preview`.
37+
38+
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.

eslint.config.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import eslint from '@eslint/js';
2+
import prettier from 'eslint-config-prettier';
3+
import svelte from 'eslint-plugin-svelte';
4+
import globals from 'globals';
5+
import tseslint from 'typescript-eslint';
6+
7+
export default tseslint.config(
8+
eslint.configs.recommended,
9+
...tseslint.configs.recommended,
10+
...svelte.configs['flat/recommended'],
11+
prettier,
12+
...svelte.configs['flat/prettier'],
13+
{
14+
languageOptions: {
15+
globals: {
16+
...globals.browser,
17+
...globals.node
18+
}
19+
}
20+
},
21+
{
22+
files: ['**/*.svelte'],
23+
languageOptions: {
24+
parserOptions: {
25+
parser: tseslint.parser
26+
}
27+
}
28+
},
29+
{
30+
ignores: ['build/', '.svelte-kit/', 'dist/']
31+
}
32+
);

0 commit comments

Comments
 (0)