Skip to content

Commit

Permalink
Add scripts for recursive operations across the workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Nov 5, 2023
1 parent 929f4c9 commit f12a15f
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
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/dev.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="dev" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="dev" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/preview.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="preview" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="preview" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"author": "ThrRip <[email protected]>",
"private": true,
"scripts": {
"dev": "pnpm -r exec nuxt dev",
"build": "pnpm -r exec nuxt build",
"preview": "pnpm -r exec nuxt preview",
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore .",
"postinstall": "nuxt prepare && pnpm -r exec nuxt prepare",
"dev:home": "pnpm -F home exec nuxt dev",
Expand Down

0 comments on commit f12a15f

Please sign in to comment.