From 9ec3d9ad50b965672bd038d3872dacca7d5d333c Mon Sep 17 00:00:00 2001 From: Joe Numainville Date: Tue, 30 Apr 2024 15:03:02 -0500 Subject: [PATCH] wip --- .pre-commit-config.yaml | 1 + templates/README.md | 22 + .../README.md | 60 - .../src/js/README.md | 74 - .../src/js/package-lock.json | 28848 ---------------- .../src/js/package.json | 89 - .../src/js/src/CustomPanel.scss | 15 - .../src/js/src/CustomPanel.tsx | 16 - .../src/js/src/DashboardPlugin.tsx | 70 - .../src/js/src/index.ts | 1 - .../{{ cookiecutter.__object_file_name }}.py | 7 - .../cookiecutter.json | 13 +- .../.gitignore | 0 .../{{ cookiecutter.project_name }}}/LICENSE | 0 .../{{ cookiecutter.project_name }}/README.md | 64 + .../pyproject.toml | 0 .../requirements.txt | 4 + .../setup.cfg | 2 +- .../{{ cookiecutter.project_name }}}/setup.py | 2 + .../src/js/.eslintrc.js | 0 .../src/js/.gitignore | 0 .../src/js/package-lock.json | 13048 +++++++ .../src/js/package.json | 44 + .../src/js/src/index.ts | 3 + .../src/js/src/package-lock.json | 13048 +++++++ .../src/js/src/vite-env.d.ts | 0 .../src/{{ cookiecutter.__js_plugin_obj }}.ts | 20 + ...{ cookiecutter.__js_plugin_view_obj }}.tsx | 53 + .../src/js/tsconfig.json | 0 .../src/js/vite.config.js | 0 .../.gitignore | 0 .../__init__.py | 0 .../_js_plugin.py | 5 +- .../_register.py | 11 +- .../{{ cookiecutter.__object_file_name }}.py | 34 + .../{{ cookiecutter.__type_file_name }}.py | 27 +- .../test/__init__.py | 0 .../BaseTest.py | 0 .../__init__.py | 0 .../test.py | 0 .../{{ cookiecutter.project_name }}}/tox.ini | 0 41 files changed, 26387 insertions(+), 29194 deletions(-) create mode 100644 templates/README.md delete mode 100644 templates/bidirectional-plugin/{{ cookiecutter.python_project_name }}/README.md delete mode 100644 templates/bidirectional-plugin/{{ cookiecutter.python_project_name }}/src/js/README.md delete mode 100644 templates/bidirectional-plugin/{{ cookiecutter.python_project_name }}/src/js/package-lock.json delete mode 100644 templates/bidirectional-plugin/{{ cookiecutter.python_project_name }}/src/js/package.json delete mode 100644 templates/bidirectional-plugin/{{ cookiecutter.python_project_name }}/src/js/src/CustomPanel.scss delete mode 100644 templates/bidirectional-plugin/{{ cookiecutter.python_project_name }}/src/js/src/CustomPanel.tsx delete mode 100644 templates/bidirectional-plugin/{{ cookiecutter.python_project_name }}/src/js/src/DashboardPlugin.tsx delete mode 100644 templates/bidirectional-plugin/{{ cookiecutter.python_project_name }}/src/js/src/index.ts delete mode 100644 templates/bidirectional-plugin/{{ cookiecutter.python_project_name }}/src/{{ cookiecutter.__src_folder_name }}/{{ cookiecutter.__object_file_name }}.py rename templates/{bidirectional-plugin => bidirectional-widget-plugin}/cookiecutter.json (60%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/.gitignore (100%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/LICENSE (100%) create mode 100644 templates/bidirectional-widget-plugin/{{ cookiecutter.project_name }}/README.md rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/pyproject.toml (100%) create mode 100644 templates/bidirectional-widget-plugin/{{ cookiecutter.project_name }}/requirements.txt rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/setup.cfg (95%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/setup.py (62%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/src/js/.eslintrc.js (100%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/src/js/.gitignore (100%) create mode 100644 templates/bidirectional-widget-plugin/{{ cookiecutter.project_name }}/src/js/package-lock.json create mode 100644 templates/bidirectional-widget-plugin/{{ cookiecutter.project_name }}/src/js/package.json create mode 100644 templates/bidirectional-widget-plugin/{{ cookiecutter.project_name }}/src/js/src/index.ts create mode 100644 templates/bidirectional-widget-plugin/{{ cookiecutter.project_name }}/src/js/src/package-lock.json rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/src/js/src/vite-env.d.ts (100%) create mode 100644 templates/bidirectional-widget-plugin/{{ cookiecutter.project_name }}/src/js/src/{{ cookiecutter.__js_plugin_obj }}.ts create mode 100644 templates/bidirectional-widget-plugin/{{ cookiecutter.project_name }}/src/js/src/{{ cookiecutter.__js_plugin_view_obj }}.tsx rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/src/js/tsconfig.json (100%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/src/js/vite.config.js (100%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/src/{{ cookiecutter.__src_folder_name }}/.gitignore (100%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/src/{{ cookiecutter.__src_folder_name }}/__init__.py (100%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/src/{{ cookiecutter.__src_folder_name }}/_js_plugin.py (74%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/src/{{ cookiecutter.__src_folder_name }}/_register.py (59%) create mode 100644 templates/bidirectional-widget-plugin/{{ cookiecutter.project_name }}/src/{{ cookiecutter.__src_folder_name }}/{{ cookiecutter.__object_file_name }}.py rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/src/{{ cookiecutter.__src_folder_name }}/{{ cookiecutter.__type_file_name }}.py (62%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/test/__init__.py (100%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/test/{{ cookiecutter.python_project_name }}/BaseTest.py (100%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/test/{{ cookiecutter.python_project_name }}/__init__.py (100%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/test/{{ cookiecutter.python_project_name }}/test.py (100%) rename templates/{bidirectional-plugin/{{ cookiecutter.python_project_name }} => bidirectional-widget-plugin/{{ cookiecutter.project_name }}}/tox.ini (100%) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 69809928c..d7b36536f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,4 @@ +exclude: templates repos: - repo: https://github.com/adamchainz/blacken-docs rev: 1.15.0 diff --git a/templates/README.md b/templates/README.md new file mode 100644 index 000000000..9a0d23908 --- /dev/null +++ b/templates/README.md @@ -0,0 +1,22 @@ +# Deephaven Plugin Templates + +This repository contains templates for creating Deephaven plugins. +In order to use these templates, you must have [cookiecutter](https://cookiecutter.readthedocs.io/en/latest/) installed. + +There are two main ways to use these templates. +If you have this repository locally, you can run the following command from where you want to create your plugin: +```sh +cookiecutter /templates/