Skip to content

Commit

Permalink
Merge pull request #14535 from FrozenPandaz/tech/nx-tooling-2
Browse files Browse the repository at this point in the history
Build: Add NX bootstrap optimization
  • Loading branch information
shilman authored Apr 27, 2021
2 parents 4818dae + b7c9fa7 commit eedf6c7
Show file tree
Hide file tree
Showing 8 changed files with 891 additions and 52 deletions.
2 changes: 1 addition & 1 deletion app/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@angular/forms": "^11.2.0",
"@angular/platform-browser": "^11.2.0",
"@angular/platform-browser-dynamic": "^11.2.0",
"@nrwl/workspace": "^11.1.5",
"@nrwl/workspace": "^11.6.3",
"@types/autoprefixer": "^9.7.2",
"@types/jest": "^26.0.16",
"@webcomponents/custom-elements": "^1.4.3",
Expand Down
1 change: 1 addition & 0 deletions app/angular/src/server/angular-read-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const readAngularWorkspaceConfig = async (

const nxWorkspace = require('@nrwl/workspace').readWorkspaceConfig({
format: 'angularCli',
path: dirToSearch,
});

// Use the workspace version of nx when angular looks for the angular.json file
Expand Down
4 changes: 4 additions & 0 deletions lib/core-server/src/core-presets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ import { executor as managerExecutor } from './manager/builder';
import { buildDevStandalone } from './build-dev';
import { buildStaticStandalone } from './build-static';

// nx-ignore-next-line
import reactOptions from '../../../app/react/src/server/options';
// nx-ignore-next-line
import vue3Options from '../../../app/vue3/src/server/options';
// nx-ignore-next-line
import htmlOptions from '../../../app/html/src/server/options';
// nx-ignore-next-line
import webComponentsOptions from '../../../app/web-components/src/server/options';
import { outputStats } from './utils/output-stats';

Expand Down
303 changes: 303 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,303 @@
{
"npmScope": "storybook",
"implicitDependencies": {
"package.json": {
"dependencies": "*",
"devDependencies": "*"
}
},
"tasksRunnerOptions": {
"default": {
"runner": "@nrwl/nx-cloud",
"options": {
"cacheableOperations": [
"build",
"test",
"lint",
"package",
"prepare"
],
"strictlyOrderedTargets": [
"build",
"package",
"prepare"
],
"accessToken": "NzM2ODA4OTYtZGYyMi00MmVlLTgxNmEtODU1NGMwNjk0M2EzfHJlYWQtd3JpdGU=",
"canTrackAnalytics": false,
"showUsageWarnings": true
}
}
},
"projects": {
"@storybook/addon-a11y": {
"implicitDependencies": []
},
"@storybook/addon-actions": {
"implicitDependencies": []
},
"@storybook/addon-backgrounds": {
"implicitDependencies": []
},
"@storybook/addon-controls": {
"implicitDependencies": []
},
"@storybook/addon-cssresources": {
"implicitDependencies": []
},
"@storybook/addon-design-assets": {
"implicitDependencies": []
},
"@storybook/addon-docs": {
"implicitDependencies": []
},
"@storybook/addon-essentials": {
"implicitDependencies": []
},
"@storybook/addon-events": {
"implicitDependencies": []
},
"@storybook/addon-google-analytics": {
"implicitDependencies": []
},
"@storybook/addon-graphql": {
"implicitDependencies": []
},
"@storybook/addon-jest": {
"implicitDependencies": []
},
"@storybook/addon-knobs": {
"implicitDependencies": []
},
"@storybook/addon-links": {
"implicitDependencies": []
},
"@storybook/addon-queryparams": {
"implicitDependencies": []
},
"@storybook/addon-storyshots": {
"implicitDependencies": []
},
"@storybook/addon-storyshots-puppeteer": {
"implicitDependencies": []
},
"@storybook/addon-storysource": {
"implicitDependencies": []
},
"@storybook/addon-toolbars": {
"implicitDependencies": []
},
"@storybook/addon-viewport": {
"implicitDependencies": []
},
"@storybook/angular": {
"implicitDependencies": []
},
"@storybook/aurelia": {
"implicitDependencies": []
},
"@storybook/ember": {
"implicitDependencies": []
},
"@storybook/html": {
"implicitDependencies": []
},
"@storybook/marionette": {
"implicitDependencies": []
},
"@storybook/marko": {
"implicitDependencies": []
},
"@storybook/mithril": {
"implicitDependencies": []
},
"@storybook/preact": {
"implicitDependencies": []
},
"@storybook/rax": {
"implicitDependencies": []
},
"@storybook/react": {
"implicitDependencies": []
},
"@storybook/riot": {
"implicitDependencies": []
},
"@storybook/server": {
"implicitDependencies": []
},
"@storybook/svelte": {
"implicitDependencies": []
},
"@storybook/vue": {
"implicitDependencies": []
},
"@storybook/vue3": {
"implicitDependencies": []
},
"@storybook/web-components": {
"implicitDependencies": []
},
"@storybook/addon-decorator": {
"implicitDependencies": []
},
"@storybook/addon-parameter": {
"implicitDependencies": []
},
"@storybook/addon-preview-wrapper": {
"implicitDependencies": []
},
"@storybook/addon-roundtrip": {
"implicitDependencies": []
},
"angular-cli": {
"implicitDependencies": []
},
"aurelia-kitchen-sink": {
"implicitDependencies": []
},
"cra-kitchen-sink": {
"implicitDependencies": []
},
"cra-react15": {
"implicitDependencies": []
},
"cra-ts-essentials": {
"implicitDependencies": []
},
"cra-ts-kitchen-sink": {
"implicitDependencies": []
},
"@storybook/example-devkits": {
"implicitDependencies": []
},
"ember-example": {
"implicitDependencies": []
},
"html-kitchen-sink": {
"implicitDependencies": []
},
"marko-cli": {
"implicitDependencies": []
},
"mithril-example": {
"implicitDependencies": []
},
"official-storybook": {
"implicitDependencies": []
},
"preact-example": {
"implicitDependencies": []
},
"rax-kitchen-sink": {
"implicitDependencies": []
},
"@storybook/example-react-ts": {
"implicitDependencies": []
},
"@storybook/example-react-ts-webpack4": {
"implicitDependencies": []
},
"riot-example": {
"implicitDependencies": []
},
"server-kitchen-sink": {
"implicitDependencies": []
},
"standalone-preview": {
"implicitDependencies": []
},
"svelte-example": {
"implicitDependencies": []
},
"vue-3-cli-example": {
"implicitDependencies": []
},
"vue-cli-example": {
"implicitDependencies": []
},
"vue-example": {
"implicitDependencies": []
},
"web-components-kitchen-sink": {
"implicitDependencies": []
},
"@storybook/addons": {
"implicitDependencies": []
},
"@storybook/api": {
"implicitDependencies": []
},
"@storybook/builder-webpack4": {
"implicitDependencies": []
},
"@storybook/builder-webpack5": {
"implicitDependencies": []
},
"@storybook/channel-postmessage": {
"implicitDependencies": []
},
"@storybook/channel-websocket": {
"implicitDependencies": []
},
"@storybook/channels": {
"implicitDependencies": []
},
"@storybook/cli": {
"implicitDependencies": []
},
"sb": {
"implicitDependencies": []
},
"storybook": {
"implicitDependencies": []
},
"@storybook/client-api": {
"implicitDependencies": []
},
"@storybook/client-logger": {
"implicitDependencies": []
},
"@storybook/codemod": {
"implicitDependencies": []
},
"@storybook/components": {
"implicitDependencies": []
},
"@storybook/core": {
"implicitDependencies": []
},
"@storybook/core-client": {
"implicitDependencies": []
},
"@storybook/core-common": {
"implicitDependencies": []
},
"@storybook/core-events": {
"implicitDependencies": []
},
"@storybook/core-server": {
"implicitDependencies": []
},
"@storybook/node-logger": {
"implicitDependencies": []
},
"@storybook/postinstall": {
"implicitDependencies": []
},
"@storybook/router": {
"implicitDependencies": []
},
"@storybook/source-loader": {
"implicitDependencies": []
},
"@storybook/theming": {
"implicitDependencies": []
},
"@storybook/ui": {
"implicitDependencies": []
}
},
"affected": {
"defaultBase": "next"
}
}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@
"@compodoc/compodoc": "^1.1.11",
"@emotion/snapshot-serializer": "^0.8.2",
"@nicolo-ribaudo/chokidar-2": "^2.1.8",
"@nrwl/cli": "12.0.7",
"@nrwl/nx-cloud": "11.2.0",
"@nrwl/tao": "12.0.7",
"@nrwl/workspace": "12.0.7",
"@storybook/addon-a11y": "workspace:*",
"@storybook/addon-actions": "workspace:*",
"@storybook/addon-backgrounds": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions scripts/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ function run() {
command: () => {
log.info(prefix, 'prepare');
spawn(
`lerna run prepare ${
process.env.CI ? `--concurrency ${maxConcurrentTasks} --stream` : ''
`nx run-many --target=prepare --all --parallel ${
process.env.CI ? `--max-parallel=${maxConcurrentTasks}` : ''
}`
);
},
Expand Down
Loading

0 comments on commit eedf6c7

Please sign in to comment.