Skip to content

Commit

Permalink
Fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Apr 12, 2023
1 parent 6da6580 commit 2266572
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 137 deletions.
2 changes: 1 addition & 1 deletion template/.github/workflows/build.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
set -eux
jlpm
jlpm run lint:check
{% if test.lower().startswith('y') %}
{% if test %}
- name: Test the extension
run: |
set -eux
Expand Down
2 changes: 0 additions & 2 deletions template/.github/workflows/prep-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
steps:
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

{% raw %}
- name: Prep Release
id: prep-release
uses: jupyter-server/jupyter_releaser/.github/actions/prep-release@v2
Expand All @@ -41,4 +40,3 @@ jobs:
- name: "** Next Step **"
run: |
echo "Optional): Review Draft Release: ${{ steps.prep-release.outputs.release_url }}"
{% endraw %}
2 changes: 0 additions & 2 deletions template/.github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
steps:
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

{% raw %}
- name: Populate Release
id: populate-release
uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
Expand Down Expand Up @@ -53,4 +52,3 @@ jobs:
run: |
echo "Failed to Publish the Draft Release Url:"
echo ${{ steps.populate-release.outputs.release_url }}
{% endraw %}
4 changes: 2 additions & 2 deletions template/.gitignore.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ node_modules/
*.tsbuildinfo
{{python_name}}/labextension
# Version file is handled by hatchling
{{cookiecutter.python_name}}/_version.py
{% if cookiecutter.test.lower().startswith('y') %}
{{python_name}}/_version.py
{% if test %}
# Integration tests
ui-tests/test-results/
ui-tests/playwright-report/
Expand Down
10 changes: 5 additions & 5 deletions template/package.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"repository": {
"type": "git",
"url": "{{ repository }}.git"
},{% if test.lower().startswith('y') %}
},{% if test %}
"workspaces": [
"ui-tests"
],{% endif %}
Expand Down Expand Up @@ -60,13 +60,13 @@
},
"dependencies": {
"@jupyterlab/application": "^4.0.0-beta.0"{% if kind.lower() == 'theme' %},
"@jupyterlab/apputils": "^4.0.0-beta.0"{% endif %}{% if has_settings.lower().startswith('y') %},
"@jupyterlab/apputils": "^4.0.0-beta.0"{% endif %}{% if has_settings %},
"@jupyterlab/settingregistry": "^4.0.0-beta.0"{% endif %}{% if kind.lower() == 'server' %},
"@jupyterlab/coreutils": "^6.0.0-beta.0",
"@jupyterlab/services": "^7.0.0-beta.0"{% endif %}
},
"devDependencies": {
"@jupyterlab/builder": "^4.0.0-beta.0",{% if test.lower().startswith('y') %}
"@jupyterlab/builder": "^4.0.0-beta.0",{% if test %}
"@jupyterlab/testutils": "^4.0.0-beta.0",
"@types/jest": "^29.2.0",{% endif %}
"@types/json-schema": "^7.0.11",
Expand All @@ -76,7 +76,7 @@
"css-loader": "^6.7.1",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"eslint-plugin-prettier": "^4.2.1",{% if test.lower().startswith('y') %}
"eslint-plugin-prettier": "^4.2.1",{% if test %}
"jest": "^29.2.0",{% endif %}{% if kind.lower() == 'server' %}
"mkdirp": "^1.0.3",{% endif %}
"npm-run-all": "^4.1.5",
Expand Down Expand Up @@ -121,7 +121,7 @@
"node_modules",
"dist",
"coverage",
"**/*.d.ts"{% if test.lower().startswith('y') %},
"**/*.d.ts"{% if test %},
"tests",
"**/__tests__",
"ui-tests"{% endif %}
Expand Down
125 changes: 0 additions & 125 deletions template/{{python_name}}/.gitignore.jinja2

This file was deleted.

0 comments on commit 2266572

Please sign in to comment.