Skip to content

Commit 2bd0c5b

Browse files
committed
package setup
1 parent 7e97688 commit 2bd0c5b

File tree

8 files changed

+112
-0
lines changed

8 files changed

+112
-0
lines changed

packages/route-pattern/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# `route-pattern` CHANGELOG
2+
3+
This is the changelog for [`route-pattern`](https://github.com/mjackson/remix-the-web/tree/main/packages/route-pattern). It follows [semantic versioning](https://semver.org/).
4+
5+
## HEAD

packages/route-pattern/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 Michael Jackson
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.
File renamed without changes.

packages/route-pattern/package.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "@mjackson/route-pattern",
3+
"version": "0.1.0",
4+
"description": "todo",
5+
"author": "Michael Jackson <[email protected]>",
6+
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/mjackson/remix-the-web.git",
10+
"directory": "packages/route-pattern"
11+
},
12+
"homepage": "https://github.com/mjackson/remix-the-web/tree/main/packages/route-pattern#readme",
13+
"files": [
14+
"LICENSE",
15+
"README.md",
16+
"dist",
17+
"src"
18+
],
19+
"type": "module",
20+
"types": "./dist/route-pattern.d.ts",
21+
"module": "./dist/route-pattern.js",
22+
"main": "./dist/route-pattern.cjs",
23+
"exports": {
24+
".": {
25+
"types": "./dist/route-pattern.d.ts",
26+
"import": "./dist/route-pattern.js",
27+
"require": "./dist/route-pattern.cjs",
28+
"default": "./dist/route-pattern.js"
29+
},
30+
"./package.json": "./package.json"
31+
},
32+
"devDependencies": {
33+
"@types/node": "^20.14.10",
34+
"esbuild": "^0.20.0"
35+
},
36+
"scripts": {
37+
"build:types": "tsc --project tsconfig.build.json",
38+
"build:esm": "esbuild src/route-pattern.ts --bundle --outfile=dist/route-pattern.js --format=esm --platform=neutral --sourcemap",
39+
"build:cjs": "esbuild src/route-pattern.ts --bundle --outfile=dist/route-pattern.cjs --format=cjs --platform=node --sourcemap",
40+
"build": "pnpm run clean && pnpm run build:types && pnpm run build:esm && pnpm run build:cjs",
41+
"clean": "rm -rf dist",
42+
"test": "node --experimental-strip-types --disable-warning=ExperimentalWarning --test ./src/**/*.test.ts",
43+
"prepublishOnly": "pnpm run build"
44+
},
45+
"keywords": [
46+
"route",
47+
"pattern",
48+
"url",
49+
"match",
50+
"matcher",
51+
"href"
52+
]
53+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const hello = 'world';
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"declaration": true,
5+
"emitDeclarationOnly": true,
6+
"declarationMap": true,
7+
"outDir": "./dist"
8+
},
9+
"include": ["src"],
10+
"exclude": ["src/**/*.test.ts"]
11+
}

packages/route-pattern/tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"strict": true,
4+
"lib": ["DOM", "DOM.Iterable", "ES2020"],
5+
"module": "ES2022",
6+
"moduleResolution": "Bundler",
7+
"target": "ESNext",
8+
"allowImportingTsExtensions": true,
9+
"rewriteRelativeImportExtensions": true,
10+
"verbatimModuleSyntax": true
11+
}
12+
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)