Skip to content

Commit 792b353

Browse files
FLS-1473: Setting project to have all submodules
1 parent 4219d1f commit 792b353

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
2. Make sure you have yarn 1.22+ installed. You do not need to install yarn 2.4+, yarn will detect the yarn 2 binary within [.yarn](./.yarn) and that will be used.
1111
3. If using the designer:
1212
- Note that the designer requires the runner to be running with the default `NODE_ENV=development` settings (see [runner/config/development.json](https://github.com/XGovFormBuilder/digital-form-builder/tree/main/runner/config/development.json)) to enable posting and previewing of forms during design.
13-
4. Run `sh .devcontainer/setup.sh` command to install all dependencies in all workspaces and create the working environment.
13+
4. Run `yarn setup` command to install all dependencies in all workspaces and create the working environment.
1414

1515

1616
As already mentioned, **always run scripts from the root directory.** because workspaces don't have scripts or packages you need to run from inside their folders and by running in the root directory yarn 2 can resolve the scripts/packages properly.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
"designer": "yarn workspace @communitiesuk/designer",
2020
"model": "yarn workspace @communitiesuk/model",
2121
"e2e": "yarn workspace e2e",
22-
"e2e-test": "yarn workspace e2e-test"
22+
"e2e-test": "yarn workspace e2e-test",
23+
"submodules:init": "git submodule sync --recursive && git submodule update --init --recursive",
24+
"setup": "yarn run submodules:init && yarn install"
2325
},
2426
"resolutions": {
2527
"@xgovformbuilder/model": "link:./digital-form-builder/model",

sonar-project.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore GitHub Actions workflows (yml/yaml) anywhere under .github/workflows
2+
sonar.exclusions=**/.github/workflows/**/*.yml,**/.github/workflows/**/*.yaml,**/Dockerfile,**/**/Dockerfile,**/Dockerfile.*,**/*.Dockerfile
3+
# (Optional) also exclude these from coverage/duplication
4+
sonar.coverage.exclusions=**/.github/workflows/**/*.yml,**/.github/workflows/**/*.yaml,**/Dockerfile,**/Dockerfile.*,**/*.Dockerfile
5+
sonar.cpd.exclusions=**/.github/workflows/**/*.yml,**/.github/workflows/**/*.yaml,**/Dockerfile,**/**/Dockerfile,**/Dockerfile.*,**/*.Dockerfile

0 commit comments

Comments
 (0)