Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

Commit

Permalink
Build front end projects in parallel using lerna (#1101)
Browse files Browse the repository at this point in the history
* Added lerna config

* Sets up lerna to use yarn workspaces
  • Loading branch information
valadas authored and david-poindexter committed Aug 15, 2019
1 parent 06f0873 commit f2bdb97
Show file tree
Hide file tree
Showing 5 changed files with 2,101 additions and 36 deletions.
2 changes: 1 addition & 1 deletion Build-Yarn-Workspace.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

yarn install
yarn workspaces run build
yarn lerna run build --parallel
2 changes: 1 addition & 1 deletion Build/BuildScripts/Module.build
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
<Message Importance="high" Text="Running Yarn for $(WorkingDirectory)" />

<Yarn Command="install" WorkingDirectory="$(WorkingDirectory)" IgnoreExitCode="false" Condition="$(WorkingDirectory.Length) > 0 AND !Exists('$(WorkingDirectory)/node_modules')" />
<Yarn Command="workspaces run build" WorkingDirectory="$(WorkingDirectory)" IgnoreExitCode="false" Condition="$(WorkingDirectory.Length) > 0" />
<Yarn Command="lerna run build --parallel" WorkingDirectory="$(WorkingDirectory)" IgnoreExitCode="false" Condition="$(WorkingDirectory.Length) > 0" />
</Target>
</Project>
8 changes: 8 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"packages": [
"src/*"
],
"version": "independent",
"npmClient": "yarn",
"useWorkspaces": true
}
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@
"Extensions/Content/Dnn.PersonaBar.Extensions/WebApps/Users.Web",
"Extensions/Content/Dnn.PersonaBar.Extensions/WebApps/Users.Web/src/_exportables",
"Extensions/Content/Dnn.PersonaBar.Extensions/WebApps/Vocabularies.Web"
]
}
],
"devDependencies": {
"lerna": "^3.16.4"
},
"name": "admin-experience"
}
Loading

0 comments on commit f2bdb97

Please sign in to comment.