Skip to content

Commit 35fcb43

Browse files
authored
feat: updates for farmosUtil refactor and enables field UI (#65)
The farmosUtil library was restructured as a barrel file in the FarmData2 repo. This PR updates the `buildFD2Libs.bash` script to work with that new structure. It also enables the Drupal field UI in the sample DB.
1 parent f634539 commit 35fcb43

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

bin/buildFD2Libs.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ rm -rf farmosUtil
2626
error_check " Unable to remove existing farmosUtil directory."
2727
mkdir farmosUtil
2828
error_check " Unable to create new farmosUtil directory."
29-
cp "$FD2_DIR/library/farmosUtil/farmosUtil.js" farmosUtil/
29+
cp "$FD2_DIR"/library/farmosUtil/*.js farmosUtil/
30+
#cp "$FD2_DIR/library/farmosUtil/*.js" farmosUtil/
3031
error_check " Unable to copy farmosUtil.js FarmData2 repo."
32+
rm farmosUtil/farmosUtil.*.unit.cy.js
3133
echo " Copied."
3234

3335
# Get the traySeeding library

dist/db.sample.tar.gz

814 KB
Binary file not shown.

src/sampleDB/enableFarmData2Modules.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ docker exec -it fd2_farmos drush en views_ui -y
3333
error_check
3434
echo " Enabled."
3535

36+
echo " Enabling the Drupal Field UI Module..."
37+
docker exec -it fd2_farmos drush en field_ui -y
38+
error_check
39+
echo " Enabled."
40+
3641
echo " Enabling farm_fd2..."
3742
docker exec -it fd2_farmos drush en farm_fd2 -y
3843
error_check

0 commit comments

Comments
 (0)