Skip to content

Commit

Permalink
Change build environment to jupyterlab
Browse files Browse the repository at this point in the history
  • Loading branch information
tmetzl committed Oct 23, 2024
1 parent 95a7f50 commit b9c565d
Show file tree
Hide file tree
Showing 12 changed files with 13,857 additions and 24,745 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@jupyterlab/testutils/lib/babel.config");
5 changes: 5 additions & 0 deletions install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"packageManager": "python",
"packageName": "e2xgrader",
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package e2xgrader"
}
28 changes: 28 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const jestJupyterLab = require("@jupyterlab/testutils/lib/jest-config");

const esModules = [
"@codemirror",
"@jupyter/ydoc",
"@jupyterlab/",
"lib0",
"nanoid",
"vscode-ws-jsonrpc",
"y-protocols",
"y-websocket",
"yjs",
].join("|");

const baseConfig = jestJupyterLab(__dirname);

module.exports = {
...baseConfig,
automock: false,
collectCoverageFrom: [
"src/**/*.{ts,tsx}",
"!src/**/*.d.ts",
"!src/**/.ipynb_checkpoints/*",
],
coverageReporters: ["lcov", "text"],
testRegex: "src/.*/.*.spec.ts[x]?$",
transformIgnorePatterns: [`/node_modules/(?!${esModules}).+`],
};
6 changes: 2 additions & 4 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": true,
"useWorkspaces": true,
"version": "0.3.0"
"version": "independent",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
Loading

0 comments on commit b9c565d

Please sign in to comment.