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() v1 #2349

Closed
2 tasks
samuelstroschein opened this issue Mar 8, 2024 · 3 comments
Closed
2 tasks

createNewProject() v1 #2349

samuelstroschein opened this issue Mar 8, 2024 · 3 comments
Assignees
Labels
scope: inlang/sdk Related to source-code/sdk. type: feature New feature or request

Comments

@samuelstroschein
Copy link
Member

samuelstroschein commented Mar 8, 2024

Problem

Apps can't create a project.

Proposal

Expose a v1 of createNewProject(path, { options }) in the inlang SDK.

Until #1585 is implemented, we can create a new project with the inlang message format plugins as default, creating a folder in the inlang project to persist the messages. That unblocks @opral/inlang-fink and @opral/inlang-sherlock to start implementing onboarding flows.

.
└── project.inlang
    ├── plugin.inlang.messageFormat/
    │   ├── de.json
    │   ├── en.json
    │   └── ... .json
    └── settings.json

const project = await createNewProject("blue_skydiver.inlang")

Tasks

  • validate that project ends with *.inlang
  • pre-install common lint rules

Additional information

I propose to ship the most used lint rules by default. They can be uninstalled later

@maige-app maige-app bot added type: feature New feature or request scope: inlang/sdk Related to source-code/sdk. labels Mar 8, 2024
@samuelstroschein
Copy link
Member Author

@samuelstroschein samuelstroschein closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2024
@felixhaeberle
Copy link
Contributor

@samuelstroschein why are we closing github issues which are connected to not done linear issues?

@samuelstroschein
Copy link
Member Author

@felixhaeberle this is an imported issue that does not sync with linear.

We are closing github issues that don't sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: inlang/sdk Related to source-code/sdk. type: feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants