Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion etc/scripts/actions/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "zx/globals";
import { cleanBuild } from "@n8v/scripts/utils/clean-build";
import { getBuildNumber } from "@n8v/scripts/utils/get-build-number";
import { getRev } from "@n8v/scripts/utils/get-rev";
import { workDirs } from "@n8v/scripts/utils/work-dir";
import { workDirs } from "@n8v/scripts/utils/work-dirs";
import fs from "fs-extra";

$.verbose = true;
Expand Down
2 changes: 1 addition & 1 deletion etc/scripts/actions/lint.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env -S yarn dlx tsx
import "zx/globals";
import { pipeOutput } from "@n8v/scripts/utils/pipe-output";
import { workDirs } from "@n8v/scripts/utils/work-dir";
import { workDirs } from "@n8v/scripts/utils/work-dirs";
$.verbose = true;
cd(workDirs.path);

Expand Down
2 changes: 1 addition & 1 deletion etc/scripts/actions/publish.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env -S yarn dlx tsx
import "zx/globals";
import { getPublishRemote } from "@n8v/scripts/utils/get-publish-remote";
import { workDirs } from "@n8v/scripts/utils/work-dir";
import { workDirs } from "@n8v/scripts/utils/work-dirs";

const Constants = {
user: {
Expand Down
2 changes: 1 addition & 1 deletion etc/scripts/actions/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env -S yarn dlx tsx
import "zx/globals";
import { pipeOutput } from "@n8v/scripts/utils/pipe-output";
import { workDirs } from "@n8v/scripts/utils/work-dir";
import { workDirs } from "@n8v/scripts/utils/work-dirs";
$.verbose = true;
cd(workDirs.apps.app.path);

Expand Down
1 change: 0 additions & 1 deletion etc/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"packageManager": "yarn@4.2.2",
"type": "module",
"devDependencies": {
"@types/luxon": "^3.4.2",
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"zx": "^8.3.0"
Expand Down
2 changes: 1 addition & 1 deletion etc/scripts/utils/clean-build.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "zx/globals";
import { workDirs } from "@n8v/scripts/utils/work-dir";
import { workDirs } from "@n8v/scripts/utils/work-dirs";
import fs from "fs-extra";

$.verbose = true;
Expand Down
2 changes: 1 addition & 1 deletion etc/scripts/utils/clean-cache.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "zx/globals";
import { workDirs } from "@n8v/scripts/utils/work-dir";
import { workDirs } from "@n8v/scripts/utils/work-dirs";

$.verbose = true;

Expand Down
2 changes: 1 addition & 1 deletion etc/scripts/utils/clean-up.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "zx/globals";
import { cleanBuild } from "@n8v/scripts/utils/clean-build";
import { workDirs } from "@n8v/scripts/utils/work-dir";
import { workDirs } from "@n8v/scripts/utils/work-dirs";

$.verbose = true;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion etc/scripts/workflows/release.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env -S yarn dlx tsx
import "zx/globals";
import { cleanBuild } from "@n8v/scripts/utils/clean-build";
import { workDirs } from "@n8v/scripts/utils/work-dir";
import { workDirs } from "@n8v/scripts/utils/work-dirs";

$.verbose = true;

Expand Down
2 changes: 1 addition & 1 deletion etc/scripts/workflows/validate-pr.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env -S yarn dlx tsx
import "zx/globals";
import { cleanBuild } from "@n8v/scripts/utils/clean-build";
import { workDirs } from "@n8v/scripts/utils/work-dir";
import { workDirs } from "@n8v/scripts/utils/work-dirs";

$.verbose = true;

Expand Down
8 changes: 8 additions & 0 deletions etc/templates/skeleton/etc/scripts/moon.yml.tera
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# yaml-language-server: $schema: 'https://moonrepo.dev/schemas/project.json'
language: typescript
platform: node
type: tool

project:
name: "@{{ workspace }}/scripts"
description: scripts
13 changes: 13 additions & 0 deletions etc/templates/skeleton/etc/scripts/package.json.tera
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@{{ workspace }}/scripts",
"packageManager": "yarn@4.2.2",
"type": "module",
"devDependencies": {
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"zx": "^8.3.0"
},
"dependencies": {
"luxon": "^3.5.0"
}
}
11 changes: 11 additions & 0 deletions etc/templates/skeleton/etc/scripts/tsconfig.json.tera
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.options.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": "../../.moon/cache/types/etc/scripts",
"paths": {
"@{{ workspace }}/scripts/*": ["*"]
}
},
"include": ["**/*.ts"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (m *WorkflowRuntime) BuildBaseEnv(ctx context.Context) *WorkflowRuntime {
From("ubuntu:plucky").
// apt-get update && apt-get install -y curl git unzip gzip xz-utils
WithExec([]string{"apt-get", "update"}).
WithExec([]string{"apt-get", "install", "-y", "build-essential", "curl", "git", "unzip", "bash", "gzip", "xz-utils", "pkg-config"}).
WithExec([]string{"apt-get", "install", "-y", "build-essential", "curl", "git", "unzip", "bash", "gzip", "xz-utils", "pkg-config", "libssl-dev"}).
// curl -fsSL https://moonrepo.dev/install/proto.sh | bash -s 0.35.3 --yes
WithExec([]string{"bash", "-l", "-c", "curl -fsSL https://moonrepo.dev/install/proto.sh | bash -s 0.44.1 --yes"}).
WithEnvVariable("PROTO_HOME", "/root/.proto", dagger.ContainerWithEnvVariableOpts{Expand: true}).
Expand Down
5 changes: 5 additions & 0 deletions etc/templates/skeleton/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ title: Monorepo Skeleton Template
description: |
This is a skeleton template for Moon monorepos.
It can be used as a starting point for new projects.
variables:
workspace:
type: string
prompt: What is the name of the workspace?
required: true
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2991,7 +2991,6 @@ __metadata:
version: 0.0.0-use.local
resolution: "@n8v/scripts@workspace:etc/scripts"
dependencies:
"@types/luxon": "npm:^3.4.2"
luxon: "npm:^3.5.0"
tsx: "npm:^4.19.2"
typescript: "npm:^5.7.3"
Expand Down