generated from finos/software-project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datacube: separate REPL and DataCube components (#3549)
- Loading branch information
1 parent
7f34d50
commit 4548e1b
Showing
31 changed files
with
565 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
'@finos/legend-application-data-cube': patch | ||
'@finos/legend-application-repl': patch | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/build | ||
/style | ||
**/__mocks__/** | ||
**/__tests__/** | ||
/*.* | ||
!tsconfig.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# @finos/legend-application-data-cube |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# @finos/legend-application-data-cube | ||
|
||
Legend Data Cube |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Copyright (c) 2020-present, Goldman Sachs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
export default { | ||
publish: { | ||
typescript: { | ||
main: './tsconfig.publish.json', | ||
others: ['./tsconfig.package.json'], | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Copyright (c) 2020-present, Goldman Sachs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import { getBaseJestDOMProjectConfig } from '../../scripts/test/jest.config.base.js'; | ||
import { loadJSON } from '@finos/legend-dev-utils/DevUtils'; | ||
import { resolve, dirname } from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
|
||
const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
|
||
const packageJson = loadJSON(resolve(__dirname, './package.json')); | ||
|
||
export default getBaseJestDOMProjectConfig( | ||
packageJson.name, | ||
'packages/legend-application-data-cube', | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"name": "@finos/legend-application-data-cube", | ||
"version": "0.0.0", | ||
"description": "Legend Data Cube", | ||
"keywords": [ | ||
"legend", | ||
"legend-application", | ||
"legend-data-cube", | ||
"data-cube" | ||
], | ||
"homepage": "https://github.com/finos/legend-studio/tree/master/packages/legend-application-data-cube", | ||
"bugs": { | ||
"url": "https://github.com/finos/legend-studio/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/finos/legend-studio.git", | ||
"directory": "packages/legend-application-data-cube" | ||
}, | ||
"license": "Apache-2.0", | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": "./lib/index.js", | ||
"./lib/index.css": "./lib/index.css" | ||
}, | ||
"module": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"scripts": { | ||
"build": "yarn clean && yarn build:sass && yarn build:ts", | ||
"build:sass": "cross-env INIT_CWD=$INIT_CWD node ../../scripts/workflow/buildSass.js", | ||
"build:ts": "tsc --project ./tsconfig.build.json", | ||
"clean": "npm-run-all clean:cache clean:lib", | ||
"clean:cache": "rimraf \"build\"", | ||
"clean:lib": "rimraf \"lib\"", | ||
"dev": "npm-run-all --parallel dev:sass dev:ts", | ||
"dev:sass": "sass style:lib --watch --load-path=../../node_modules/@finos/legend-art/scss", | ||
"dev:ts": "tsc --watch --preserveWatchOutput", | ||
"lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"", | ||
"publish:prepare": "node ../../scripts/release/preparePublishContent.js", | ||
"publish:snapshot": "node ../../scripts/release/publishDevSnapshot.js", | ||
"test": "jest", | ||
"test:watch": "jest --watch" | ||
}, | ||
"dependencies": { | ||
"@finos/legend-application": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@finos/legend-dev-utils": "workspace:*", | ||
"@jest/globals": "29.7.0", | ||
"cross-env": "7.0.3", | ||
"eslint": "8.57.1", | ||
"jest": "29.7.0", | ||
"npm-run-all": "4.1.5", | ||
"rimraf": "6.0.1", | ||
"sass": "1.79.1", | ||
"typescript": "5.6.2" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18.0.0" | ||
}, | ||
"publishConfig": { | ||
"directory": "build/publishContent" | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
packages/legend-application-data-cube/src/stores/dataCube/DataCubeStore.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Copyright (c) 2020-present, Goldman Sachs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import type { GenericLegendApplicationStore } from '@finos/legend-application'; | ||
|
||
export class DataCubeStore { | ||
readonly applicationStore: GenericLegendApplicationStore; | ||
|
||
constructor(applicationStore: GenericLegendApplicationStore) { | ||
this.applicationStore = applicationStore; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
packages/legend-application-data-cube/style/data-cube.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* Copyright (c) 2020-present, Goldman Sachs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Copyright (c) 2020-present, Goldman Sachs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
@forward 'data-cube'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"tsBuildInfoFile": "build/prod.tsbuildinfo", | ||
"jsx": "react-jsx" | ||
}, | ||
"exclude": ["src/**/__tests__/**/*.*", "src/**/__mocks__/**/*.*"], | ||
"references": [{ "path": "../legend-application/tsconfig.build.json" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"extends": "@finos/legend-dev-utils/tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"tsBuildInfoFile": "build/dev.tsbuildinfo", | ||
"rootDir": "src", | ||
"jsx": "react-jsxdev" | ||
}, | ||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.json"], | ||
"references": [{ "path": "../legend-application" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "@finos/legend-dev-utils/tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"tsBuildInfoFile": "build/package.tsbuildinfo", | ||
"rootDir": "." | ||
}, | ||
"include": ["package.json"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "./tsconfig.build.json", | ||
"references": [{ "path": "./tsconfig.package.json" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.