Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new: Migrate to new starbase APIs. #1493

Merged
merged 33 commits into from
Jun 12, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update init.
milesj committed Jun 11, 2024

Verified

This commit was signed with the committer’s verified signature.
jkoenig134 Julian König
commit d603f1a6c7da6ae5b7dd7462fabd81bfdc4c41ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/bun.rs
source: crates/app/src/commands/init/bun.rs
expression: render_template(context).unwrap()
---
# Configures Bun within the toolchain.
@@ -15,4 +15,3 @@ bun:

# Sync a project's dependencies as `dependencies` within the project's `package.json`.
syncProjectWorkspaceDependencies: true

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: crates/cli/src/commands/init/bun.rs
source: crates/app/src/commands/init/bun.rs
expression: render_template(context).unwrap()
---
bun:
version: '1.0.0'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/node.rs
source: crates/app/src/commands/init/node.rs
expression: render_template(context).unwrap()
---
# Configures Node.js within the toolchain.
@@ -38,4 +38,3 @@ node:
# Sync `node.version` to a 3rd-party version manager's config file.
# Accepts "nodenv" (.node-version), "nvm" (.nvmrc), or none.
# syncVersionManagerConfig: 'nvm'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/node.rs
source: crates/app/src/commands/init/node.rs
expression: render_template(create_context()).unwrap()
---
# Configures Node.js within the toolchain.
@@ -38,4 +38,3 @@ node:
# Sync `node.version` to a 3rd-party version manager's config file.
# Accepts "nodenv" (.node-version), "nvm" (.nvmrc), or none.
# syncVersionManagerConfig: 'nvm'

Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---
source: crates/cli/src/commands/init/node.rs
assertion_line: 263
source: crates/app/src/commands/init/node.rs
expression: render_template(context).unwrap()
---
node:
version: '16.0.0'
packageManager: 'npm'
npm:
version: '8.0.0'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/node.rs
source: crates/app/src/commands/init/node.rs
expression: render_template(context).unwrap()
---
# Configures Node.js within the toolchain.
@@ -38,4 +38,3 @@ node:
# Sync `node.version` to a 3rd-party version manager's config file.
# Accepts "nodenv" (.node-version), "nvm" (.nvmrc), or none.
syncVersionManagerConfig: 'nodenv'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/node.rs
source: crates/app/src/commands/init/node.rs
expression: render_template(context).unwrap()
---
# Configures Node.js within the toolchain.
@@ -38,4 +38,3 @@ node:
# Sync `node.version` to a 3rd-party version manager's config file.
# Accepts "nodenv" (.node-version), "nvm" (.nvmrc), or none.
# syncVersionManagerConfig: 'nvm'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/node.rs
source: crates/app/src/commands/init/node.rs
expression: render_template(context).unwrap()
---
# Configures Node.js within the toolchain.
@@ -38,4 +38,3 @@ node:
# Sync `node.version` to a 3rd-party version manager's config file.
# Accepts "nodenv" (.node-version), "nvm" (.nvmrc), or none.
syncVersionManagerConfig: 'nvm'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/node.rs
source: crates/app/src/commands/init/node.rs
expression: render_template(context).unwrap()
---
# Configures Node.js within the toolchain.
@@ -38,4 +38,3 @@ node:
# Sync `node.version` to a 3rd-party version manager's config file.
# Accepts "nodenv" (.node-version), "nvm" (.nvmrc), or none.
# syncVersionManagerConfig: 'nvm'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/node.rs
source: crates/app/src/commands/init/node.rs
expression: render_template(context).unwrap()
---
# Configures Node.js within the toolchain.
@@ -38,4 +38,3 @@ node:
# Sync `node.version` to a 3rd-party version manager's config file.
# Accepts "nodenv" (.node-version), "nvm" (.nvmrc), or none.
# syncVersionManagerConfig: 'nvm'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/rust.rs
source: crates/app/src/commands/init/rust.rs
expression: render_template(context).unwrap()
---
# Configures Rust within the toolchain.
@@ -18,4 +18,3 @@ rust:

# List of rustup toolchain targets to install and make available.
targets: []

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: crates/cli/src/commands/init/rust.rs
source: crates/app/src/commands/init/rust.rs
expression: render_template(context).unwrap()
---
rust:
version: '1.70.0'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/mod.rs
source: crates/app/src/commands/init/mod.rs
expression: render_workspace_template(&context).unwrap()
---
# https://moonrepo.dev/docs/config/workspace
@@ -34,4 +34,3 @@ vcs:
# local branch against. For git, this is is typically "master" or "main",
# and must include the remote prefix (before /).
defaultBranch: 'main'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/mod.rs
source: crates/app/src/commands/init/mod.rs
expression: render_workspace_template(&context).unwrap()
---
# https://moonrepo.dev/docs/config/workspace
@@ -18,6 +18,3 @@ $schema: 'https://moonrepo.dev/schemas/workspace.json'
projects:
- 'apps/*'
- 'packages/*'



Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/mod.rs
source: crates/app/src/commands/init/mod.rs
expression: render_workspace_template(&context).unwrap()
---
# https://moonrepo.dev/docs/config/workspace
@@ -31,4 +31,3 @@ vcs:
# local branch against. For git, this is is typically "master" or "main",
# and must include the remote prefix (before /).
defaultBranch: 'main'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/mod.rs
source: crates/app/src/commands/init/mod.rs
expression: render_workspace_template(&context).unwrap()
---
# https://moonrepo.dev/docs/config/workspace
@@ -34,4 +34,3 @@ vcs:
# local branch against. For git, this is is typically "master" or "main",
# and must include the remote prefix (before /).
defaultBranch: 'main'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/mod.rs
source: crates/app/src/commands/init/mod.rs
expression: render_workspace_template(&context).unwrap()
---
# https://moonrepo.dev/docs/config/workspace
@@ -18,6 +18,3 @@ $schema: 'https://moonrepo.dev/schemas/workspace.json'
projects:
- 'apps/*'
- 'packages/*'



Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/mod.rs
source: crates/app/src/commands/init/mod.rs
expression: render_workspace_template(&context).unwrap()
---
# https://moonrepo.dev/docs/config/workspace
@@ -19,6 +19,3 @@ projects:
- 'apps/*'
- 'packages/*'
example: 'apps/example'



Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/mod.rs
source: crates/app/src/commands/init/mod.rs
expression: render_workspace_template(&context).unwrap()
---
# https://moonrepo.dev/docs/config/workspace
@@ -31,4 +31,3 @@ vcs:
# local branch against. For git, this is is typically "master" or "main",
# and must include the remote prefix (before /).
defaultBranch: 'trunk'

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/typescript.rs
source: crates/app/src/commands/init/typescript.rs
expression: render_template(context).unwrap()
---
# Configures how moon integrates with TypeScript.
@@ -40,4 +40,3 @@ typescript:
# Sync a project's project references as import aliases to the `paths`
# compiler option in each applicable project.
syncProjectReferencesToPaths: false

Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
source: crates/cli/src/commands/init/typescript.rs
assertion_line: 84
source: crates/app/src/commands/init/typescript.rs
expression: render_template(context).unwrap()
---
typescript:
syncProjectReferences: false

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/cli/src/commands/init/typescript.rs
source: crates/app/src/commands/init/typescript.rs
expression: render_template(context).unwrap()
---
# Configures how moon integrates with TypeScript.
@@ -40,4 +40,3 @@ typescript:
# Sync a project's project references as import aliases to the `paths`
# compiler option in each applicable project.
syncProjectReferencesToPaths: false

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.