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

createNewProject() #2590

Merged
merged 8 commits into from
Apr 17, 2024
Merged

createNewProject() #2590

merged 8 commits into from
Apr 17, 2024

Conversation

jldec
Copy link
Contributor

@jldec jldec commented Apr 15, 2024

Resolves MESDK-31 (#2349)

createNewProject(args: {
	projectPath: string
	repo: Repository
	projectSettings: ProjectSettings
}): Promise<void>
  • Creates a new project in the given directory.
  • The directory must be an absolute path, must not exist, and must end with {name}.inlang
  • Exports sdk.defaultProjectSettings with values the same as paraglide init for now.
    • The default pathpattern ./messages/... stores messages outside of the projject.
.
├── messages
│   ├── de.json
│   └── en.json
├── project.inlang
│   └── settings.json

future direction

.
└── project.inlang
    ├── [internal-messages-directory tbd]
    │   ├── [internal messages file structure... tbd]
    └── settings.json

Copy link

changeset-bot bot commented Apr 15, 2024

🦋 Changeset detected

Latest commit: c6e93fe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
Name Type
@inlang/sdk Minor
@inlang/badge Patch
@inlang/cli Patch
@inlang/github-lint-action Patch
vs-code-extension Patch
@inlang/rpc Patch
@inlang/settings-component Patch
@inlang/telemetry Patch
@inlang/cross-sell-ninja Patch
@inlang/plugin-i18next Patch
@inlang/plugin-json Patch
@inlang/plugin-m-function-matcher Patch
@inlang/plugin-next-intl Patch
@inlang/plugin-t-function-matcher Patch
@inlang/paraglide-js-adapter-unplugin Patch
@inlang/paraglide-js-e2e Patch
@inlang/sdk-load-test Patch
@inlang/server Patch
next-js-testapp Patch
@inlang/sdk-multi-project-test Patch
@lix-js/server Patch
@inlang/paraglide-js-adapter-rollup Patch
@inlang/paraglide-js-adapter-vite Patch
@inlang/paraglide-js-adapter-webpack Patch
@inlang/paraglide-js-adapter-astro Patch
@inlang/paraglide-js-adapter-sveltekit Patch
@inlang/paraglide-js-adapter-sveltekit-example Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jldec jldec marked this pull request as ready for review April 15, 2024 23:34
@jldec jldec requested a review from martin-lysk April 15, 2024 23:35
Copy link
Member

@samuelstroschein samuelstroschein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jldec jldec merged commit 5432b23 into main Apr 17, 2024
3 checks passed
@jldec jldec deleted the create-new-project branch April 17, 2024 08:59
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants