Skip to content
Snippets Groups Projects
Commit bff6cacb authored by Behrisch, M. (Michael)'s avatar Behrisch, M. (Michael)
Browse files

refactor: :art: renames graphpolaris to web-graphpolaris

To follow the convention outlined in https://medium.com/showpad-engineering/how-to-organize-and-name-applications-and-libraries-in-an-nx-monorepo-for-immediate-team-wide-9876510dbe28 we need to update the app names and prefix with the intended deployment environment (web, windows, react-native)
parent f4b2ae77
No related branches found
No related tags found
1 merge request!7refactor(rawjsonvis): moves rawjsonvis into own component
Showing
with 43 additions and 45 deletions
......@@ -7,11 +7,11 @@
"executor": "@nrwl/cypress:cypress",
"options": {
"cypressConfig": "apps/graphpolaris-e2e/cypress.json",
"devServerTarget": "graphpolaris:serve"
"devServerTarget": "web-graphpolaris:serve"
},
"configurations": {
"production": {
"devServerTarget": "graphpolaris:serve:production"
"devServerTarget": "web-graphpolaris:serve:production"
}
}
},
......@@ -24,5 +24,5 @@
}
},
"tags": [],
"implicitDependencies": ["graphpolaris"]
"implicitDependencies": ["web-graphpolaris"]
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Graphpolaris</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<div id="root"></div>
</body>
</html>
\ No newline at end of file
File moved
{
"extends": ["plugin:@nrwl/nx/react", "../../.eslintrc.json"],
"extends": ["plugin:@nrwl/nx/react", "..\\..\\.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
......
......@@ -3,7 +3,7 @@ const rootMain = require('../../../.storybook/main');
module.exports = {
...rootMain,
core: {...rootMain.core, builder: 'webpack5' },
core: { ...rootMain.core, builder: 'webpack5' },
stories: [
...rootMain.stories,
......@@ -12,7 +12,7 @@ module.exports = {
'../src/web/components/**/*.stories.@(js|jsx|ts|tsx)',
],
addons: [...rootMain.addons, '@nrwl/react/plugins/storybook'],
webpackFinal: async(config, { configType }) => {
webpackFinal: async (config, { configType }) => {
// apply any global webpack configs that might have been specified in .storybook/main.js
if (rootMain.webpackFinal) {
config = await rootMain.webpackFinal(config, { configType });
......@@ -22,4 +22,4 @@ module.exports = {
return config;
},
};
\ No newline at end of file
};
module.exports = {
displayName: 'graphpolaris',
displayName: 'web-graphpolaris',
preset: '../../jest.preset.js',
transform: {
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nrwl/react/plugins/jest',
'^.+\\.[tj]sx?$': 'babel-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/apps/graphpolaris',
coverageDirectory: '../../coverage/apps/web-graphpolaris',
};
{
"root": "apps/graphpolaris",
"sourceRoot": "apps/graphpolaris/src",
"root": "apps/web-graphpolaris",
"sourceRoot": "apps/web-graphpolaris/src",
"projectType": "application",
"targets": {
"build": {
......@@ -9,17 +9,17 @@
"defaultConfiguration": "production",
"options": {
"compiler": "babel",
"outputPath": "dist/apps/graphpolaris",
"index": "apps/graphpolaris/src/index.html",
"outputPath": "dist/apps/web-graphpolaris",
"index": "apps/web-graphpolaris/src/index.html",
"baseHref": "/",
"main": "apps/graphpolaris/src/main.tsx",
"polyfills": "apps/graphpolaris/src/polyfills.ts",
"tsConfig": "apps/graphpolaris/tsconfig.app.json",
"main": "apps/web-graphpolaris/src/main.tsx",
"polyfills": "apps/web-graphpolaris/src/polyfills.ts",
"tsConfig": "apps/web-graphpolaris/tsconfig.app.json",
"assets": [
"apps/graphpolaris/src/favicon.ico",
"apps/graphpolaris/src/assets"
"apps/web-graphpolaris/src/favicon.ico",
"apps/web-graphpolaris/src/assets"
],
"styles": ["apps/graphpolaris/src/styles.scss"],
"styles": ["apps/web-graphpolaris/src/styles.scss"],
"scripts": [],
"webpackConfig": "@nrwl/react/plugins/webpack"
},
......@@ -27,8 +27,8 @@
"production": {
"fileReplacements": [
{
"replace": "apps/graphpolaris/src/environments/environment.ts",
"with": "apps/graphpolaris/src/environments/environment.prod.ts"
"replace": "apps/web-graphpolaris/src/environments/environment.ts",
"with": "apps/web-graphpolaris/src/environments/environment.prod.ts"
}
],
"optimization": true,
......@@ -43,12 +43,12 @@
"serve": {
"executor": "@nrwl/web:dev-server",
"options": {
"buildTarget": "graphpolaris:build",
"buildTarget": "web-graphpolaris:build",
"hmr": true
},
"configurations": {
"production": {
"buildTarget": "graphpolaris:build:production",
"buildTarget": "web-graphpolaris:build:production",
"hmr": false
}
}
......@@ -57,14 +57,14 @@
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/graphpolaris/**/*.{ts,tsx,js,jsx}"]
"lintFilePatterns": ["apps/web-graphpolaris/**/*.{ts,tsx,js,jsx}"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/apps/graphpolaris"],
"outputs": ["coverage/apps/web-graphpolaris"],
"options": {
"jestConfig": "apps/graphpolaris/jest.config.js",
"jestConfig": "apps/web-graphpolaris/jest.config.js",
"passWithNoTests": true
}
},
......@@ -80,7 +80,7 @@
"uiFramework": "@storybook/react",
"port": 4400,
"config": {
"configFolder": "apps/graphpolaris/.storybook"
"configFolder": "apps/web-graphpolaris/.storybook"
}
},
"configurations": {
......@@ -96,7 +96,7 @@
"uiFramework": "@storybook/react",
"outputPath": "dist/storybook/graphpolaris",
"config": {
"configFolder": "apps/graphpolaris/.storybook"
"configFolder": "apps/web-graphpolaris/.storybook"
}
},
"configurations": {
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Graphpolaris</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<div id="root"></div>
</body>
</html>
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment