mirror of
https://github.com/modelscope/modelscope.git
synced 2026-07-10 04:22:33 +02:00
在modelscope 基础镜像中添加 jupyter lab 插件,用于收集用户在notebook 中的鼠标、键盘事件,来支持静默关闭功能。
主要改变如下:
1. 新增jupyterlab_active_log 插件的源码和编译后的文件
2. 修改Dockerfile.ubuntu 文件,将上述源码文件拷贝的jupyter的插件目录中。
3. 修改pip和conda 的镜像地址为阿里云的
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/10690152
100 lines
3.2 KiB
JSON
100 lines
3.2 KiB
JSON
{
|
|
"name": "jupyterlab_active_log",
|
|
"version": "0.1.0",
|
|
"description": "A JupyterLab extension.",
|
|
"keywords": [
|
|
"jupyter",
|
|
"jupyterlab",
|
|
"jupyterlab-extension"
|
|
],
|
|
"homepage": "https://github.com/github_username/jupyterlab_active_log",
|
|
"bugs": {
|
|
"url": "https://github.com/github_username/jupyterlab_active_log/issues"
|
|
},
|
|
"license": "BSD-3-Clause",
|
|
"files": [
|
|
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
|
|
"style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
|
|
],
|
|
"main": "lib/index.js",
|
|
"types": "lib/index.d.ts",
|
|
"style": "style/index.css",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/github_username/jupyterlab_active_log.git"
|
|
},
|
|
"scripts": {
|
|
"build": "jlpm build:lib && jlpm build:labextension:dev",
|
|
"build:prod": "jlpm clean && jlpm build:lib && jlpm build:labextension",
|
|
"build:labextension": "jupyter labextension build .",
|
|
"build:labextension:dev": "jupyter labextension build --development True .",
|
|
"build:lib": "tsc",
|
|
"clean": "jlpm clean:lib",
|
|
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
|
|
"clean:lintcache": "rimraf .eslintcache .stylelintcache",
|
|
"clean:labextension": "rimraf jupyterlab_active_log/labextension",
|
|
"clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
|
|
"eslint": "jlpm eslint:check --fix",
|
|
"eslint:check": "eslint . --cache --ext .ts,.tsx",
|
|
"install:extension": "jlpm build",
|
|
"lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
|
|
"lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
|
|
"prettier": "jlpm prettier:base --write --list-different",
|
|
"prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
|
|
"prettier:check": "jlpm prettier:base --check",
|
|
"stylelint": "jlpm stylelint:check --fix",
|
|
"stylelint:check": "stylelint --cache \"style/**/*.css\"",
|
|
"watch": "run-p watch:src watch:labextension",
|
|
"watch:src": "tsc -w",
|
|
"watch:labextension": "jupyter labextension watch ."
|
|
},
|
|
"dependencies": {
|
|
"@jupyterlab/application": "^3.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@jupyterlab/builder": "^3.1.0",
|
|
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
"@typescript-eslint/parser": "^4.8.1",
|
|
"eslint": "^7.14.0",
|
|
"eslint-config-prettier": "^6.15.0",
|
|
"eslint-plugin-prettier": "^3.1.4",
|
|
"npm-run-all": "^4.1.5",
|
|
"prettier": "^2.1.1",
|
|
"rimraf": "^3.0.2",
|
|
"stylelint": "^14.3.0",
|
|
"stylelint-config-prettier": "^9.0.3",
|
|
"stylelint-config-recommended": "^6.0.0",
|
|
"stylelint-config-standard": "~24.0.0",
|
|
"stylelint-prettier": "^2.0.0",
|
|
"typescript": "~4.1.3"
|
|
},
|
|
"sideEffects": [
|
|
"style/*.css",
|
|
"style/index.js"
|
|
],
|
|
"styleModule": "style/index.js",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"jupyterlab": {
|
|
"extension": true,
|
|
"outputDir": "jupyterlab_active_log/labextension",
|
|
"_build": {
|
|
"load": "static/remoteEntry.eb3177c3791d7658cc12.js",
|
|
"extension": "./extension",
|
|
"style": "./style"
|
|
}
|
|
},
|
|
"jupyter-releaser": {
|
|
"hooks": {
|
|
"before-build-npm": [
|
|
"python -m pip install jupyterlab~=3.1",
|
|
"jlpm"
|
|
],
|
|
"before-build-python": [
|
|
"jlpm clean:all"
|
|
]
|
|
}
|
|
}
|
|
}
|