Skip to content

Commit e83171a

Browse files
committed
chore: build updates
- chore: add `.editorconfig` - chore: add `bunfig.toml` - chore: add `.npmrc` - chore: use pkgst - chore: husky adjustments (prettier) Signed-off-by: Sam Gammon <[email protected]>
1 parent dd85634 commit e83171a

File tree

8 files changed

+666
-11
lines changed

8 files changed

+666
-11
lines changed

.editorconfig

+589
Large diffs are not rendered by default.

.husky/commit-msg

-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/bin/bash
22

3-
## install with frozen lockfile to verify lockfile validity
4-
pnpm i --frozen-lockfile
5-
63
## check signed-off-by and inject if not present
74
NAME=$(git config user.name)
85
EMAIL=$(git config user.email)
@@ -20,6 +17,3 @@ fi
2017
git interpret-trailers --if-exists doNothing --trailer \
2118
"Signed-off-by: $NAME <$EMAIL>" \
2219
--in-place "$1"
23-
24-
## run commitlint
25-
pnpm exec -- commitlint --edit $1

.husky/pre-commit

+18-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1-
# Nothing at this time.
1+
#!/bin/bash
2+
3+
## install with frozen lockfile to verify lockfile validity
4+
pnpm install \
5+
--strict-peer-dependencies \
6+
--no-verify-store-integrity \
7+
--frozen-lockfile \
8+
--offline \
9+
--ignore-scripts
10+
11+
## make sure bun lockfile is up-to-date
12+
bun install \
13+
--frozen-lockfile \
14+
--ignore-scripts \
15+
--dry-run
16+
17+
## run commitlint
18+
pnpm exec -- commitlint --edit $1

.npmrc

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
registry=https://npm.pkg.st/
2+
store-dir=./.dev/store/pnpm
3+
fund=false
4+
maxsockets=500
5+
fetch-timeout=60000
6+
fetch-retries=5
7+
fetch-retry-maxtimeout = 120000
8+
fetch-retry-mintimeout = 500
9+
node-linker=isolated
10+
auto-install-peers=true
11+
recursive-install=true
12+
side-effects-cache=true
13+
engine-strict=false
14+
package-import-method=auto
15+
public-hoist-pattern[]=*types*
16+
public-hoist-pattern[]=*@prettier/plugin-*
17+
public-hoist-pattern[]=prettier-plugin-*
18+
public-hoist-pattern[]=*postcss*
19+
public-hoist-pattern[]=*rollup*
20+
public-hoist-pattern[]=*lit*
21+
public-hoist-pattern[]=*@esm-bundle*
22+
public-hoist-pattern[]=*@open-wc*
23+
public-hoist-pattern[]=*@web*
24+
public-hoist-pattern[]=*@storybook*
25+
public-hoist-pattern[]=*storybook*
26+
public-hoist-pattern[]=*addon*
27+
public-hoist-pattern[]=*axe*
28+
public-hoist-pattern[]=sb-*
29+
public-hoist-pattern[]=*buf*
30+
public-hoist-pattern[]=*@buf*
31+
public-hoist-pattern[]=*@lit*
32+
public-hoist-pattern[]=*@lit-labs*
33+
public-hoist-pattern[]=turbo*
34+
public-hoist-pattern[]=sucrase*
35+
public-hoist-pattern[]=esbuild-register
36+
public-hoist-pattern[]=@swc*
37+
@buf:registry=https://buf.build/gen/npm/v1/

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Java Modules
22

33
This repository provides the web code for the [`javamodules.dev`](https://javamodules.dev) website and app. More coming soon.
4+
5+
Testing.

bun.lockb

78.3 KB
Binary file not shown.

bunfig.toml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[install]
2+
exact = false
3+
registry = "https://npm.pkg.st"
4+
5+
[install.cache]
6+
dir = "./.dev/store/bun"
7+
disable = false
8+
9+
[install.lockfile]
10+
save = true
11+
12+
[install.scopes]
13+
buf = "https://buf.build/gen/npm/v1/"
14+
15+
[run]
16+
bun = true

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"test:all": "pnpm run /:test$/",
2626
"dev": "pnpm run build && pnpm run test && cd site && pnpm run dev",
2727
"start": "pnpm run site:start",
28-
"build": "mv bun.lockb bun.inert && turbo build --no-daemon ; mv bun.inert bun.lockb",
29-
"build:remote-cache": "cp -f .turbo/config.tpl.json .turbo/config.json && mv bun.lockb bun.inert && turbo build --token $BUILDLESS_APIKEY --no-daemon --cache-dir .turbo/cache --no-update-notifier ; mv bun.inert bun.lockb && rm -f ./.turbo/config.json",
30-
"test": "mv bun.lockb bun.inert && turbo test --no-daemon ; mv bun.inert bun.lockb",
31-
"test:remote-cache": "cp -f .turbo/config.tpl.json .turbo/config.json && mv bun.lockb bun.inert && turbo test --token $BUILDLESS_APIKEY --no-daemon --cache-dir .turbo/cache --no-update-notifier ; mv bun.inert bun.lockb && rm -f ./.turbo/config.json",
28+
"build": "mv bun.lockb bun.inert && turbo build --no-daemon --cache-dir .dev/cache/turbo --no-update-notifier ; mv bun.inert bun.lockb",
29+
"build:remote-cache": "cp -f .turbo/config.tpl.json .turbo/config.json && mv bun.lockb bun.inert && turbo build --token $BUILDLESS_APIKEY --no-daemon --cache-dir .dev/cache/turbo --no-update-notifier ; mv bun.inert bun.lockb && rm -f ./.turbo/config.json",
30+
"test": "mv bun.lockb bun.inert && turbo test --no-daemon --cache-dir .dev/cache/turbo --no-update-notifier ; mv bun.inert bun.lockb",
31+
"test:remote-cache": "cp -f .turbo/config.tpl.json .turbo/config.json && mv bun.lockb bun.inert && turbo test --token $BUILDLESS_APIKEY --no-daemon --cache-dir .dev/cache/turbo --no-update-notifier ; mv bun.inert bun.lockb && rm -f ./.turbo/config.json",
3232
"prepare": "husky"
3333
},
3434
"devDependencies": {

0 commit comments

Comments
 (0)