Skip to content

Commit 4bcf41a

Browse files
committed
add navbar
1 parent 657cc2e commit 4bcf41a

22 files changed

+4161
-1
lines changed

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
node_modules
2+
3+
# Output
4+
.output
5+
.vercel
6+
.netlify
7+
.wrangler
8+
/.svelte-kit
9+
/build
10+
/dist
11+
12+
# OS
13+
.DS_Store
14+
Thumbs.db
15+
16+
# Env
17+
.env
18+
.env.*
19+
!.env.example
20+
!.env.test
21+
22+
# Vite
23+
vite.config.js.timestamp-*
24+
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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
7+
"overrides": [
8+
{
9+
"files": "*.svelte",
10+
"options": {
11+
"parser": "svelte"
12+
}
13+
}
14+
]
15+
}

README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SMX
22

3-
## SMRT MRKT X - OFFICIAL WEBSITE ©
3+
### SMRT MRKT X - OFFICIAL WEBSITE ©
44

55
### We create amazing open-source projects that empower developers and foster collaboration.
66

@@ -14,8 +14,38 @@ npm run dev
1414
# follow the localhost link
1515
```
1616

17+
Everything inside `src/lib` is part of your library, everything inside `src/routes` can be used as a showcase or preview app.
18+
1719
#### Contribution
1820

1921
```bash
2022
Fork repo - Create your own branch - Make the app better - Commit it - Pull request.
2123
```
24+
25+
#### Building
26+
27+
To build your library:
28+
29+
```bash
30+
npm run package
31+
```
32+
33+
To create a production version of your showcase app:
34+
35+
```bash
36+
npm run build
37+
```
38+
39+
You can preview the production build with `npm run preview`.
40+
41+
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
42+
43+
#### Publishing
44+
45+
Go into the `package.json` and give your package the desired name through the `"name"` option. Also consider adding a `"license"` field and point it to a `LICENSE` file which you can create from a template (one popular option is the [MIT license](https://opensource.org/license/mit/)).
46+
47+
To publish your library to [npm](https://www.npmjs.com):
48+
49+
```bash
50+
npm publish
51+
```

eslint.config.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import prettier from 'eslint-config-prettier';
2+
import js from '@eslint/js';
3+
import { includeIgnoreFile } from '@eslint/compat';
4+
import svelte from 'eslint-plugin-svelte';
5+
import globals from 'globals';
6+
import { fileURLToPath } from 'node:url';
7+
import ts from 'typescript-eslint';
8+
import svelteConfig from './svelte.config.js';
9+
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
10+
11+
export default ts.config(
12+
includeIgnoreFile(gitignorePath),
13+
js.configs.recommended,
14+
...ts.configs.recommended,
15+
...svelte.configs.recommended,
16+
prettier,
17+
...svelte.configs['flat/prettier'],
18+
{
19+
languageOptions: {
20+
globals: {
21+
...globals.browser,
22+
...globals.node
23+
}
24+
}
25+
},
26+
{
27+
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
28+
ignores: ['eslint.config.js', 'svelte.config.js'],
29+
30+
languageOptions: {
31+
parserOptions: {
32+
projectService: true,
33+
extraFileExtensions: ['.svelte'],
34+
parser: ts.parser,
35+
svelteConfig
36+
}
37+
}
38+
}
39+
);

0 commit comments

Comments
 (0)