You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7992096
Browse filesBrowse the repository at this point in the historyBrowse files
Remove unused CfA USWDS design system scaffolding (FFB-2) (#1439)
The cfa-uswds design system option was started in late 2023 (#400, #443)
but never filled in: the template folder held only an empty headLinks
fragment, so enabling it added no styling. Remove it entirely:
- ThymeleafConfiguration and its cfa-uswds-templates resolver bean
(gated on form-flow.design-system.name=cfa-uswds)
- src/main/resources/cfa-uswds-templates/
- ThymeleafConfigurationLoadedTest / ThymeleafConfigurationUnloadedTest
- README "Design System" section and the "Gradle tasks" section, which
documented the starter app's USWDS npm/Sass/JS build tasks
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
| `form-flow.design-system.name` | none | Can use `cfa-uswds` to enable the CfA USWDS design system assets and templates. Otherwise our default assets and templates are used. |
3200
-
|
3201
-
3202
3165
### File Upload Properties
3203
3166
3204
3167
| Property | Default | Description |
@@ -3705,118 +3668,6 @@ or [Fake Filler for FireFox](https://addons.mozilla.org/en-US/firefox/addon/fake
3705
3668
on [Keyboard Shortcuts (chrome)](chrome-extension://bnjjngeaknajbdcgpfkgnonkmififhfo/options.html#/keyboard-shortcuts)
3706
3669
to choose the shortcut you want to use to fill out the page.
3707
3670
3708
-
# Gradle tasks
3709
-
3710
-
This documentation is for custom tasks written in
3711
-
the [Starter Application's `build.gradle`](https://github.com/codeforamerica/form-flow-starter-app/blob/main/build.gradle).
3712
-
3713
-
## checkForNpm
3714
-
3715
-
- **Description**: Check if `npm` is accessible and install it if not.
3716
-
- **Usage**:
3717
-
```
3718
-
./gradlew checkForNpm
3719
-
```
3720
-
This task will automatically run in the `build` process if the `cfa-uswds` design system
3721
-
application
3722
-
property is set.
3723
-
3724
-
## npmInstall
3725
-
3726
-
- **Description**: Install frontend dependencies using `npm`.
3727
-
- **Usage**:
3728
-
```
3729
-
./gradlew npmInstall
3730
-
```
3731
-
This task will automatically run in the `build` process if the `cfa-uswds` design system
3732
-
application
3733
-
property is set.
3734
-
3735
-
## moveNodeModulesToGenerated
3736
-
3737
-
- **Description**: Move Node Modules into Generated so that Spring Boot can use the assets.
3738
-
- **Usage**:
3739
-
```
3740
-
./gradlew moveNodeModulesToGenerated
3741
-
```
3742
-
This task will automatically run in the `build` process if `cfa-uswds` design system application
3743
-
property is set.
3744
-
3745
-
## moveUSWDSImagesToGenerated
3746
-
3747
-
- **Description**: Move USWDS images into generated folder for Spring Boot to use it.
3748
-
- **Usage**:
3749
-
```
3750
-
./gradlew moveUSWDSImagesToGenerated
3751
-
```
3752
-
This task will automatically run in the `build` process if the `cfa-uswds` design system
3753
-
application
3754
-
property is set.
3755
-
3756
-
## compileSass
3757
-
3758
-
- **Description**: Compile Sass files into CSS.
3759
-
- **Usage**:
3760
-
```
3761
-
./gradlew compileSass
3762
-
```
3763
-
This task will automatically run in the `build` process if the `cfa-uswds` design system
3764
-
application
3765
-
property is set.
3766
-
3767
-
## compileJs
3768
-
3769
-
- **Description**: Compile CommonJS into JavaScript.
3770
-
- **Usage**:
3771
-
```
3772
-
./gradlew compileJs
3773
-
```
3774
-
This task will automatically run in the `build` process if the `cfa-uswds` design system
3775
-
application
3776
-
property is set.
3777
-
3778
-
## watchCompileSass
3779
-
3780
-
- **Description**: Infinite task to watch and recompile changes with SCSS.
3781
-
- **Usage**:
3782
-
```
3783
-
./gradlew watchCompileSass
3784
-
```
3785
-
You will want to have this task run in a separate terminal as it will continue to run until you
3786
-
terminate it.
3787
-
3788
-
## watchCompileJs
3789
-
3790
-
- **Description**: Infinite task to watch and recompile changes with JavaScript.
3791
-
- **Usage**:
3792
-
```
3793
-
./gradlew watchCompileJs
3794
-
```
3795
-
You will want to have this task run in a separate terminal as it will continue to run until you
3796
-
terminate it.
3797
-
3798
-
## cleanGenerated
3799
-
3800
-
- **Description**: Deletes the 'generated' directory.
3801
-
- **Usage**:
3802
-
```
3803
-
./gradlew cleanGenerated
3804
-
```
3805
-
3806
-
## clean
3807
-
3808
-
- **Description**: When `cfa-uswds` is set, the standard `clean` task will also delete `generated/`
3809
-
and `node_modules/`
3810
-
- **Usage**:
3811
-
```
3812
-
./gradlew clean
3813
-
```
3814
-
3815
-
## processResources
3816
-
3817
-
- **Description**: When `cfa-uswds` is set, when building the application, this task will
0 commit comments