Skip to content

Commit 431d17c

Browse files
authored
Merge pull request #1 from WJSoftware:JP/Init
feat: Initial commit
2 parents 74e34f5 + 61cce13 commit 431d17c

44 files changed

Lines changed: 5034 additions & 0 deletions

Some content is hidden

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

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
node_modules/

.vscode/tasks.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "build",
7+
"group": {
8+
"isDefault": true,
9+
"kind": "build"
10+
},
11+
"problemMatcher": [],
12+
"label": "npm: build",
13+
"detail": "pwsh -Command \"npx tsc && copy src/workers.d.ts dist/\""
14+
}
15+
]
16+
}

README.md

Lines changed: 379 additions & 0 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 231 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "@wjfe/workers",
3+
"version": "0.1.0",
4+
"description": "Provides thread-safe and atomic synchronization objects, and wrappers to easily use web workers with async/await syntax.",
5+
"types": "dist/index.d.ts",
6+
"main": "dist/index.js",
7+
"scripts": {
8+
"build": "pwsh -Command \"npx tsc && copy src/workers.d.ts dist/\"",
9+
"postbuild": "publint",
10+
"deploy-pages": "cd ./pages && npm run deploy-pages",
11+
"test": "echo \"Error: no test specified\" && exit 1"
12+
},
13+
"files": [
14+
"dist/**/*.js",
15+
"dist/**/*.d.ts"
16+
],
17+
"exports": {
18+
".": {
19+
"types": "./dist/index.d.ts",
20+
"import": "./dist/index.js"
21+
}
22+
},
23+
"author": "José Pablo Ramírez <webJose@gmail.com>",
24+
"license": "MIT",
25+
"devDependencies": {
26+
"publint": "^0.2.10",
27+
"typescript": "^5.5.4"
28+
},
29+
"type": "module"
30+
}

pages/.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-*

pages/.npmrc

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

pages/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# create-svelte
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.

pages/eslint.config.js

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

0 commit comments

Comments
 (0)