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

Change NPM package scope to jlab-contrib #7

Merged
merged 3 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author_name: Frederic Collonval
has_binder: true
has_settings: false
kind: frontend
labextension_name: '@jupyterlab/in-context-translation'
labextension_name: '@jlab-contrib/in-context-translation'
project_short_description: A Jupyter extension to translate the web interface directly
within the application.
python_name: jupyterlab_in_context_translation
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
python -m pip install .[test]

jupyter labextension list
jupyter labextension list 2>&1 | grep -ie "@jupyterlab/in-context-translation.*OK"
jupyter labextension list 2>&1 | grep -ie "@jlab-contrib/in-context-translation.*OK"
python -m jupyterlab.browser_check

- name: Package the extension
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:


jupyter labextension list
jupyter labextension list 2>&1 | grep -ie "@jupyterlab/in-context-translation.*OK"
jupyter labextension list 2>&1 | grep -ie "@jlab-contrib/in-context-translation.*OK"
python -m jupyterlab.browser_check --no-browser-test

integration-tests:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pip uninstall jupyterlab_in_context_translation

In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
folder is located. Then you can remove the symlink named `@jupyterlab/in-context-translation` within that folder.
folder is located. Then you can remove the symlink named `@jlab-contrib/in-context-translation` within that folder.

### Testing the extension

Expand Down
2 changes: 1 addition & 1 deletion jupyterlab_in_context_translation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
def _jupyter_labextension_paths():
return [{
"src": "labextension",
"dest": "@jupyterlab/in-context-translation"
"dest": "@jlab-contrib/in-context-translation"
}]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@jupyterlab/in-context-translation",
"name": "@jlab-contrib/in-context-translation",
"version": "0.1.0",
"description": "A Jupyter extension to translate the web interface directly within the application.",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ artifacts = ["jupyterlab_in_context_translation/labextension"]
exclude = [".github", "binder"]

[tool.hatch.build.targets.wheel.shared-data]
"jupyterlab_in_context_translation/labextension" = "share/jupyter/labextensions/@jupyterlab/in-context-translation"
"install.json" = "share/jupyter/labextensions/@jupyterlab/in-context-translation/install.json"
"jupyterlab_in_context_translation/labextension" = "share/jupyter/labextensions/@jlab-contrib/in-context-translation"
"install.json" = "share/jupyter/labextensions/@jlab-contrib/in-context-translation/install.json"

[tool.hatch.build.hooks.version]
path = "jupyterlab_in_context_translation/_version.py"
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/jupyterlab_in_context_translation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Example of [Jest](https://jestjs.io/docs/getting-started) unit tests
*/

describe('@jupyterlab/in-context-translation', () => {
describe('@jlab-contrib/in-context-translation', () => {
it('should be tested', () => {
expect(1 + 1).toEqual(2);
});
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import {
} from '@jupyterlab/application';
import { ITranslator } from '@jupyterlab/translation';
/**
* Initialization data for the @jupyterlab/in-context-translation extension.
* Initialization data for the @jlab-contrib/in-context-translation extension.
*/
const plugin: JupyterFrontEndPlugin<void> = {
id: '@jupyterlab/in-context-translation:plugin',
id: '@jlab-contrib/in-context-translation:plugin',
description:
'A Jupyter extension to translate the web interface directly within the application.',
autoStart: true,
requires: [ITranslator],
activate: async (app: JupyterFrontEnd, translator: ITranslator) => {
console.log(
'JupyterLab extension @jupyterlab/in-context-translation is activated!'
'JupyterLab extension @jlab-contrib/in-context-translation is activated!'
);

if (translator.languageCode === 'ach_UG') {
Expand Down
4 changes: 2 additions & 2 deletions ui-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jupyterlab/in-context-translation-ui-tests",
"name": "@jlab-contrib/in-context-translation-ui-tests",
"version": "1.0.0",
"description": "JupyterLab @jupyterlab/in-context-translation Integration Tests",
"description": "JupyterLab @jlab-contrib/in-context-translation Integration Tests",
"private": true,
"scripts": {
"start": "jupyter lab --config jupyter_server_test_config.py",
Expand Down
2 changes: 1 addition & 1 deletion ui-tests/tests/jupyterlab_in_context_translation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test('should emit an activation console message', async ({ page }) => {
logs.filter(
s =>
s ===
'JupyterLab extension @jupyterlab/in-context-translation is activated!'
'JupyterLab extension @jlab-contrib/in-context-translation is activated!'
)
).toHaveLength(1);
});
68 changes: 34 additions & 34 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,40 @@ __metadata:
languageName: node
linkType: hard

"@jlab-contrib/in-context-translation@workspace:.":
version: 0.0.0-use.local
resolution: "@jlab-contrib/in-context-translation@workspace:."
dependencies:
"@jupyterlab/application": ^4.0.0
"@jupyterlab/builder": ^4.0.0
"@jupyterlab/testutils": ^4.0.0
"@jupyterlab/translation": ^4.0.0
"@types/jest": ^29.2.0
"@types/json-schema": ^7.0.11
"@types/react": ^18.0.26
"@types/react-addons-linked-state-mixin": ^0.14.22
"@typescript-eslint/eslint-plugin": ^6.1.0
"@typescript-eslint/parser": ^6.1.0
css-loader: ^6.7.1
eslint: ^8.36.0
eslint-config-prettier: ^8.8.0
eslint-plugin-prettier: ^5.0.0
jest: ^29.2.0
npm-run-all: ^4.1.5
prettier: ^3.0.0
rimraf: ^5.0.1
source-map-loader: ^1.0.2
style-loader: ^3.3.1
stylelint: ^15.10.1
stylelint-config-recommended: ^13.0.0
stylelint-config-standard: ^34.0.0
stylelint-csstree-validator: ^3.0.0
stylelint-prettier: ^4.0.0
typescript: ~5.0.2
yjs: ^13.5.0
languageName: unknown
linkType: soft

"@jridgewell/gen-mapping@npm:^0.3.5":
version: 0.3.5
resolution: "@jridgewell/gen-mapping@npm:0.3.5"
Expand Down Expand Up @@ -2432,40 +2466,6 @@ __metadata:
languageName: node
linkType: hard

"@jupyterlab/in-context-translation@workspace:.":
version: 0.0.0-use.local
resolution: "@jupyterlab/in-context-translation@workspace:."
dependencies:
"@jupyterlab/application": ^4.0.0
"@jupyterlab/builder": ^4.0.0
"@jupyterlab/testutils": ^4.0.0
"@jupyterlab/translation": ^4.0.0
"@types/jest": ^29.2.0
"@types/json-schema": ^7.0.11
"@types/react": ^18.0.26
"@types/react-addons-linked-state-mixin": ^0.14.22
"@typescript-eslint/eslint-plugin": ^6.1.0
"@typescript-eslint/parser": ^6.1.0
css-loader: ^6.7.1
eslint: ^8.36.0
eslint-config-prettier: ^8.8.0
eslint-plugin-prettier: ^5.0.0
jest: ^29.2.0
npm-run-all: ^4.1.5
prettier: ^3.0.0
rimraf: ^5.0.1
source-map-loader: ^1.0.2
style-loader: ^3.3.1
stylelint: ^15.10.1
stylelint-config-recommended: ^13.0.0
stylelint-config-standard: ^34.0.0
stylelint-csstree-validator: ^3.0.0
stylelint-prettier: ^4.0.0
typescript: ~5.0.2
yjs: ^13.5.0
languageName: unknown
linkType: soft

"@jupyterlab/lsp@npm:^4.2.3":
version: 4.2.3
resolution: "@jupyterlab/lsp@npm:4.2.3"
Expand Down
Loading