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

add new interpret-vision library skeleton #1586

Merged
merged 1 commit into from
Jul 27, 2022
Merged
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
4 changes: 4 additions & 0 deletions libs/interpret-vision/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["@nrwl/react/babel"],
"plugins": []
}
26 changes: 26 additions & 0 deletions libs/interpret-vision/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"no-restricted-syntax": [
"error",
{
"message": "Please don't use bind. Prefer use arrow function.",
"selector": "MemberExpression > Identifier[name='bind']"
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
7 changes: 7 additions & 0 deletions libs/interpret-vision/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# interpret-vision

This library was generated with [Nx](https://nx.dev).

## Running unit tests

Run `nx test interpret-vision` to execute the unit tests via [Jest](https://jestjs.io).
15 changes: 15 additions & 0 deletions libs/interpret-vision/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

module.exports = {
coverageDirectory: "../../coverage/libs/interpret-vision",
displayName: "interpret-vision",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "html"],
preset: "../../jest.preset.js",
transform: {
"^.+\\.[tj]sx?$": [
"babel-jest",
{ configFile: "./babel-jest.config.json", cwd: __dirname }
]
}
};
5 changes: 5 additions & 0 deletions libs/interpret-vision/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@responsible-ai/interpret-vision",
"version": "0.0.0",
"license": "MIT"
}
4 changes: 4 additions & 0 deletions libs/interpret-vision/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

export * from "./lib/InterpretVision";
21 changes: 21 additions & 0 deletions libs/interpret-vision/src/lib/InterpretVision.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import React from "react";

export class IInterpretVisionProps {}

export class InterpretVision extends React.Component<IInterpretVisionProps> {
public constructor(props: IInterpretVisionProps) {
super(props);
this.state = {};
}

render() {
return (
<div>
<h1>Welcome</h1>
</div>
);
}
}
14 changes: 14 additions & 0 deletions libs/interpret-vision/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
13 changes: 13 additions & 0 deletions libs/interpret-vision/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": ["node"]
},
"files": [
"../../node_modules/@nrwl/react/typings/cssmodule.d.ts",
"../../node_modules/@nrwl/react/typings/image.d.ts"
],
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.test.ts", "**/*.test.tsx"],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
}
19 changes: 19 additions & 0 deletions libs/interpret-vision/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": [
"**/*.test.ts",
"**/*.test.tsx",
"**/*.test.js",
"**/*.test.jsx",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/*.spec.js",
"**/*.spec.jsx",
"**/*.d.ts"
]
}
3 changes: 3 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -55,6 +55,9 @@
"interpret-text": {
"tags": []
},
"interpret-vision": {
"tags": []
},
"localization": {
"tags": []
},
3 changes: 3 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -46,6 +46,9 @@
"@responsible-ai/fairness": ["libs/fairness/src/index.ts"],
"@responsible-ai/interpret": ["libs/interpret/src/index.ts"],
"@responsible-ai/interpret-text": ["libs/interpret-text/src/index.ts"],
"@responsible-ai/interpret-vision": [
"libs/interpret-vision/src/index.ts"
],
"@responsible-ai/localization": ["libs/localization/src/index.ts"],
"@responsible-ai/mlchartlib": ["libs/mlchartlib/src/index.ts"],
"@responsible-ai/model-assessment": ["libs/model-assessment/src/index.ts"]
40 changes: 40 additions & 0 deletions workspace.json
Original file line number Diff line number Diff line change
@@ -703,6 +703,46 @@
}
}
},
"interpret-vision": {
"root": "libs/interpret-vision",
"sourceRoot": "libs/interpret-vision/src",
"projectType": "library",
"architect": {
"build": {
"builder": "@nrwl/web:package",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/interpret-vision",
"tsConfig": "libs/interpret-vision/tsconfig.lib.json",
"project": "libs/interpret-vision/package.json",
"entryFile": "libs/interpret-vision/src/index.ts",
"external": ["react/jsx-runtime"],
"rollupConfig": "@nrwl/react/plugins/bundle-rollup",
"assets": [
{
"glob": "libs/interpret-vision/README.md",
"input": ".",
"output": "."
}
]
}
},
"lint": {
"builder": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": ["libs/interpret-vision/**/*.{ts,tsx,js,jsx}"]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"outputs": ["coverage/libs/interpret-vision"],
"options": {
"jestConfig": "libs/interpret-vision/jest.config.js",
"passWithNoTests": true
}
}
}
},
"localization": {
"root": "libs/localization",
"sourceRoot": "libs/localization/src",