monorepo

How to manage SCSS stylesheets across a monorepo with different libraries sharing variables?

我是研究僧i 提交于 2019-12-22 03:46:52
问题 I have an angular monorepo set up via Nrwl and am using Angular Material's theming, which uses SASS. I want the SCSS source files to import at the project level where I'll override default color variables for theming. The problem I'm running into is that I want to import SCSS source files into other apps/libraries within my monorepo, and to projects outside of this monorepo. I can write my imports like: @import "../other-lib/style.scss"; ...which will work for anything inside of the monorepo.

Are there any advantages to using Lerna with Yarn workspaces?

不羁的心 提交于 2019-12-21 04:09:33
问题 We're in the process of migrating our monorepo to use Lerna. Lerna supports both NPM and Yarn and furthermore allows configuration of use with Yarn workspaces. It's unclear to me whether Lerna with Yarn workspaces has any distinct advantages to Lerna with NPM. Many posts claim that Lerna does more or less the same thing as Yarn workspaces out of the box. Are there any advantages to using Lerna with Yarn workspaces opposed to Lerna with NPM? 回答1: As far as I know, NPM doesn't have any

What is a sensible structure for multiple-language project in source control?

不想你离开。 提交于 2019-12-13 13:40:53
问题 At work we're developing a large-scale application with quite a few front-end, back-end and support components. Typically the front-end is developed in C# and the back-end is developed in Java, although parts of the back-end are also developed in C# and possibly later C++. The choice of language and platform is not arbitrary; we try to weigh the relative merits of each in development time, tool-chain cost, familiarity with the language by the specific development team etc. What all these

GitLab CI, monorepo and feature branch

末鹿安然 提交于 2019-12-12 08:55:59
问题 I have a monorepo in GitLab with a Feature Branch approach. What I'm trying to achieve is to launch the part of the pipeline associated to the directory containing the altered files. So my .gitlab-ci.yml looks like : job1: stage: build script: - ... only: changes: - myparentdir/dir1/* job2: stage: build script: - ... only: changes: - myparentdir/dir2/* Create a new branch from develop Commit myparentdir/dir2/test.txt on this branch The pipeline launch every build jobs ! It seems like GitLab

How to use Typescript's references and build mode to compile a mono repo to a serverless bundle?

旧时模样 提交于 2019-12-06 06:45:00
Typescript recently introduced a new feature to work with monorepos: references. By specifying references you can build all interdependent packages using tsc -b (see also this blog post ) This seems ideal for use with a large mono repo where some packages are serverless services. These services typically depend on one or more packages of the monorepo. I've created an example here: https://github.com/tommedema/serverless-mono-example While building works well with tsc -b , the problem is that the serverless framework needs to upload a single artifact .zip (to AWS in my case). When building a

How to migrate multiple repositories into a mono-repo while maintaining commit history?

萝らか妹 提交于 2019-12-06 06:30:55
问题 I'm trying to migrate a few Git repositories into one monorepo. I have two project repositories, let's call them project1 and project2 . In my monorepo, I want to have a projects directory with two subdirectories, project1 and project2 . Each subdirectory should contain the files from the corresponding project, with the Git history maintained. Is this even possible with standard Git commands? Note: I have looked at Lerna - lerna import does exactly what I need, but unfortunately it only works

How to manage SCSS stylesheets across a monorepo with different libraries sharing variables?

穿精又带淫゛_ 提交于 2019-12-05 01:39:33
I have an angular monorepo set up via Nrwl and am using Angular Material's theming , which uses SASS. I want the SCSS source files to import at the project level where I'll override default color variables for theming. The problem I'm running into is that I want to import SCSS source files into other apps/libraries within my monorepo, and to projects outside of this monorepo. I can write my imports like: @import "../other-lib/style.scss"; ...which will work for anything inside of the monorepo. Or I can write it like this: @import "~@my-organization/other-lib/style.scss"; ...which won't work

How to migrate multiple repositories into a mono-repo while maintaining commit history?

こ雲淡風輕ζ 提交于 2019-12-04 14:33:36
I'm trying to migrate a few Git repositories into one monorepo. I have two project repositories, let's call them project1 and project2 . In my monorepo, I want to have a projects directory with two subdirectories, project1 and project2 . Each subdirectory should contain the files from the corresponding project, with the Git history maintained. Is this even possible with standard Git commands? Note: I have looked at Lerna - lerna import does exactly what I need, but unfortunately it only works with JS projects, and one of my projects is a Ruby project. Yes, you can use git commands to achieve.

GitHub Cloud Build Integration with multiple cloudbuild.yamls in monorepo

蹲街弑〆低调 提交于 2019-12-04 10:29:58
问题 GitHub's Google Cloud Build integration does not detect a cloudbuild.yaml or Dockerfile if it is not in the root of the repository. When using a monorepo that contains multiple cloudbuild.yamls , how can GitHub's Google Cloud Build integration be configured to detect the correct cloudbuild.yaml ? File paths: services/api/cloudbuild.yaml services/nginx/cloudbuild.yaml services/websocket/cloudbuild.yaml Cloud Build integration output: 回答1: You can do this by adding a cloudbuild.yaml in the root