Skip to content

Commit 856ec26

Browse files
committed
chore: generate workspace
1 parent bd99a38 commit 856ec26

File tree

10 files changed

+360
-0
lines changed

10 files changed

+360
-0
lines changed

package-lock.json

Lines changed: 225 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ignores:
2+
- '@mongodb-js/prettier-config-compass'
3+
- '@mongodb-js/tsconfig-compass'
4+
- '@types/chai'
5+
- '@types/sinon-chai'
6+
- 'sinon'
7+
- '@types/chai-dom'
8+
- '@types/react'
9+
- '@types/react-dom'
10+
ignore-patterns:
11+
- 'dist'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.nyc-output
2+
dist
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['@mongodb-js/eslint-config-compass/plugin'],
4+
parserOptions: {
5+
tsconfigRootDir: __dirname,
6+
project: ['./tsconfig-lint.json'],
7+
},
8+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@mongodb-js/mocha-config-compass/compass-plugin');
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"name": "@mongodb-js/compass-assistant",
3+
"description": "Compass plugin for the AI Assistant",
4+
"author": {
5+
"name": "MongoDB Inc",
6+
"email": "[email protected]"
7+
},
8+
"private": true,
9+
"bugs": {
10+
"url": "https://jira.mongodb.org/projects/COMPASS/issues",
11+
"email": "[email protected]"
12+
},
13+
"homepage": "https://github.com/mongodb-js/compass",
14+
"version": "1.0.0",
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/mongodb-js/compass.git"
18+
},
19+
"files": [
20+
"dist"
21+
],
22+
"license": "SSPL",
23+
"main": "dist/index.js",
24+
"compass:main": "src/index.ts",
25+
"exports": {
26+
"import": "./dist/.esm-wrapper.mjs",
27+
"require": "./dist/index.js"
28+
},
29+
"compass:exports": {
30+
".": "./src/index.ts"
31+
},
32+
"types": "./dist/index.d.ts",
33+
"scripts": {
34+
"bootstrap": "npm run compile",
35+
"compile": "tsc -p tsconfig.json",
36+
"typecheck": "tsc -p tsconfig-lint.json --noEmit",
37+
"eslint": "eslint-compass",
38+
"prettier": "prettier-compass",
39+
"lint": "npm run eslint . && npm run prettier -- --check .",
40+
"depcheck": "compass-scripts check-peer-deps && depcheck",
41+
"check": "npm run typecheck && npm run lint && npm run depcheck",
42+
"check-ci": "npm run check",
43+
"test": "mocha",
44+
"test-electron": "xvfb-maybe electron-mocha --no-sandbox",
45+
"test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
46+
"test-watch": "npm run test -- --watch",
47+
"test-ci": "npm run test-cov",
48+
"test-ci-electron": "npm run test-electron",
49+
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
50+
},
51+
"dependencies": {
52+
"react": "^17.0.2",
53+
"react-dom": "^17.0.2"
54+
},
55+
"devDependencies": {
56+
"@mongodb-js/compass-app-registry": "^9.4.18",
57+
"@mongodb-js/eslint-config-compass": "^1.4.5",
58+
"@mongodb-js/mocha-config-compass": "^1.7.0",
59+
"@mongodb-js/prettier-config-compass": "^1.2.8",
60+
"@mongodb-js/testing-library-compass": "^1.3.8",
61+
"@mongodb-js/tsconfig-compass": "^1.2.9",
62+
"@types/chai": "^4.2.21",
63+
"@types/chai-dom": "^0.0.10",
64+
"@types/mocha": "^9.0.0",
65+
"@types/react": "^17.0.5",
66+
"@types/react-dom": "^17.0.10",
67+
"@types/sinon-chai": "^3.2.5",
68+
"chai": "^4.3.6",
69+
"depcheck": "^1.4.1",
70+
"mocha": "^10.2.0",
71+
"nyc": "^15.1.0",
72+
"sinon": "^17.0.1",
73+
"typescript": "^5.8.3",
74+
"xvfb-maybe": "^0.2.1"
75+
},
76+
"is_compass_plugin": true
77+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react';
2+
import { expect } from 'chai';
3+
import { cleanup, render } from '@mongodb-js/testing-library-compass';
4+
import CompassPlugin from './index';
5+
6+
describe('Compass Plugin', function () {
7+
const Plugin = CompassPlugin.withMockServices({});
8+
9+
it('renders a Plugin', function () {
10+
render(<Plugin></Plugin>);
11+
});
12+
});
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { registerCompassPlugin } from '@mongodb-js/compass-app-registry';
2+
3+
const Plugin = registerCompassPlugin({
4+
name: 'Plugin',
5+
component: () => null,
6+
activate(initialProps, services, activateHelpers) {
7+
return {};
8+
},
9+
});
10+
11+
export default Plugin;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["**/*"],
4+
"exclude": ["node_modules", "dist"]
5+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "@mongodb-js/tsconfig-compass/tsconfig.react.json",
3+
"compilerOptions": {
4+
"outDir": "dist"
5+
},
6+
"include": ["src/**/*"],
7+
"exclude": ["./src/**/*.spec.*"]
8+
}

0 commit comments

Comments
 (0)