Skip to content

Instantly share code, notes, and snippets.

@trkaplan
Created Apr 1, 2020
Embed
What would you like to do?
nx workspace HMR case
{
"version": 1,
"projects": {
"frontend": {
"root": "apps/frontend",
"sourceRoot": "apps/frontend",
"projectType": "application",
"schematics": {},
"architect": {
"build": {
"builder": "@nrwl/next:build",
"options": {
"root": "apps/frontend",
"outputPath": "dist/apps/frontend/.next"
}
},
"serve": {
"builder": "@nrwl/next:dev-server",
"options": {
"buildTarget": "frontend:build",
"dev": true,
"proxyConfig": "apps/frontend/proxy.config.js"
},
"configurations": {
"production": {
"dev": false
}
}
},
"export": {
"builder": "@nrwl/next:export",
"options": {
"buildTarget": "frontend:build"
}
},
"lint": {
"builder": "@nrwl/linter:lint",
"options": {
"linter": "eslint",
"config": "apps/frontend/.eslintrc",
"tsConfig": [
"apps/frontend/tsconfig.json",
"apps/frontend/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**",
"!apps/frontend/**"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "apps/frontend/jest.config.js",
"tsConfig": "apps/frontend/tsconfig.spec.json",
"passWithNoTests": true
}
}
}
},
"ui-common": {
"root": "libs/ui-common",
"sourceRoot": "libs/ui-common/src",
"projectType": "library",
"schematics": {},
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"options": {
"linter": "eslint",
"config": "libs/ui-common/.eslintrc",
"tsConfig": [
"libs/ui-common/tsconfig.lib.json",
"libs/ui-common/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**",
"!libs/ui-common/**"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/ui-common/jest.config.js",
"tsConfig": "libs/ui-common/tsconfig.spec.json",
"passWithNoTests": true
}
},
"storybook": {
"builder": "@nrwl/storybook:storybook",
"options": {
"uiFramework": "@storybook/react",
"port": 5500,
"config": {
"configFolder": "libs/ui-common/.storybook"
}
},
"configurations": {
"ci": {
"quiet": true
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment