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

Fix cookiecutter template #637

Merged
merged 9 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
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
remove frontend boilerplate, update provider template
  • Loading branch information
dlqqq committed Feb 12, 2024
commit 8e1b6cd96782c21186133da6df90e548c265108c
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,6 @@ dev.sh
.yarn

.conda/

# reserved for testing cookiecutter
packages/jupyter-ai-test
120 changes: 0 additions & 120 deletions packages/jupyter-ai-module-cookiecutter/.gitignore

This file was deleted.

29 changes: 0 additions & 29 deletions packages/jupyter-ai-module-cookiecutter/LICENSE

This file was deleted.

18 changes: 1 addition & 17 deletions packages/jupyter-ai-module-cookiecutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,4 @@ cd packages/
cookiecutter jupyter-ai-module-cookiecutter
```

Follow the prompts to create a new AI module under `packages/`. Your
labextension name should use hyphens, whereas your Python name should use
underscores.

# Usage (monorepo integration)

To integrate the new AI module into this monorepo, execute this command
manually from the AI module root:

```
rm -r .github/ binder/ CHANGELOG.md RELEASE.md
```

Rename the JS package to be scoped under `@jupyter-ai/`.

Finally, add the Python package to the `options.python_packages` field in
`.jupyter-releaser.toml`.
Follow the prompts to create a new AI module under `packages/`.
9 changes: 3 additions & 6 deletions packages/jupyter-ai-module-cookiecutter/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
"author_name": "Project Jupyter",
"author_email": "jupyter@googlegroups.com",
"version": "0.1.0",
"labextension_name": "myextension",
"python_name": "{{ cookiecutter.labextension_name | replace('-', '_') }}",
"project_short_description": "A JupyterLab extension.",
"has_settings": "n",
"has_binder": "n",
"test": "y",
"python_name": "jupyter_ai_test",
"root_dir_name": "{{ cookiecutter.python_name | replace('_', '-') }}",
"project_short_description": "Jupyter AI",
"repository": "https://github.com/jupyterlab/jupyter-ai"
}
40 changes: 0 additions & 40 deletions packages/jupyter-ai-module-cookiecutter/hooks/post_gen_project.py

This file was deleted.

This file was deleted.

This file was deleted.

Loading