Skip to content

Commit

Permalink
chore: update package.json scripts and add WebStorm run/debug confi…
Browse files Browse the repository at this point in the history
…gurations
  • Loading branch information
mikerourke committed Jan 16, 2025
1 parent 8b3228c commit 601953e
Show file tree
Hide file tree
Showing 12 changed files with 112 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: bun run ci

- name: Check Types
run: bun run typecheck
run: bun run check:types

- name: Run Unit Tests
run: bun test
12 changes: 12 additions & 0 deletions .run/Biome Check.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Biome Check" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="check:biome" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/Build.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Build" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="build" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/Check Types.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Check Types" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="check:types" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
5 changes: 5 additions & 0 deletions .run/Debug Docs.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Debug Docs" type="JavascriptDebugType" uri="http://localhost:5173">
<method v="2" />
</configuration>
</component>
8 changes: 8 additions & 0 deletions .run/Docs.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Docs" type="CompoundRunConfigurationType">
<toRun name="Debug Docs" type="JavascriptDebugType" />
<toRun name="Generate Docs (Watch)" type="js.build_tools.npm" />
<toRun name="Serve Docs" type="js.build_tools.npm" />
<method v="2" />
</configuration>
</component>
13 changes: 13 additions & 0 deletions .run/Generate Docs (Watch).run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Generate Docs (Watch)" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="docs:generate" />
</scripts>
<arguments value="-- --watch" />
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/Generate Docs.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Generate Docs" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="docs:generate" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/Serve Docs.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Serve Docs" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="docs:serve" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/Tests.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Tests" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="test" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
8 changes: 8 additions & 0 deletions .run/Validate.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Validate" type="CompoundRunConfigurationType">
<toRun name="Biome Check" type="js.build_tools.npm" />
<toRun name="Check Types" type="js.build_tools.npm" />
<toRun name="Tests" type="js.build_tools.npm" />
<method v="2" />
</configuration>
</component>
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
"scripts": {
"build": "tsup",
"prepublishOnly": "bun run build",
"preversion": "bun run lint && bun run typecheck",
"version": "bun run format && git add -A src",
"preversion": "bun run check:biome && bun run check:types",
"version": "git add -A src",
"postversion": "git push && git push --tags",
"check:biome": "biome check --write src",
"check:types": "tsc --noEmit",
"ci": "biome ci src",
"docs:generate": "typedoc --options typedoc.json",
"docs:serve": "mkdir -p ./site && cd ./site && bunx vite",
"check": "biome check --write src",
"test": "bun test",
"typecheck": "tsc --noEmit"
"test": "bun test"
},
"dependencies": {
"@laserware/arcade": "^3.13.3"
Expand Down

0 comments on commit 601953e

Please sign in to comment.