Skip to content

Commit

Permalink
Update dkan-frontend-install (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
janette committed Apr 14, 2023
1 parent 8faa710 commit 21f8f1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![tests](https://github.com/getdkan/dkan-ddev-addon/actions/workflows/tests.yml/badge.svg)](https://github.com/drud/ddev-dkan-ddev-addon/actions/workflows/tests.yml) ![project is maintained](https://img.shields.io/maintenance/yes/2022.svg)
[![tests](https://github.com/getdkan/dkan-ddev-addon/actions/workflows/tests.yml/badge.svg)](https://github.com/drud/ddev-dkan-ddev-addon/actions/workflows/tests.yml) ![project is maintained](https://img.shields.io/maintenance/yes/2023.svg)

## What is dkan-ddev-addon?

Expand Down
11 changes: 1 addition & 10 deletions commands/web/dkan-frontend-install
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@

## Description: Add the decoupled frontend for DKAN.
## Usage: dkan-frontend-install
## Flags: [{"Name":"theme", "Usage":"Whether or not to install default front-end Drupal theme. 0 or 1.", "DefValue": "1"}]
## Example: "ddev dkan-frontend-install" (will install default frontend theme by default), "ddev dkan-frontend-install --theme 0"

# TODO: Make a CI flag.

FRONTEND_TMP='src/tmp'
FRONTEND_DOCROOT_DIR='docroot/frontend'
FRONTEND_VCS_URL='https://github.com/GetDKAN/data-catalog-app/'
# TODO: no-node-sass is the known-good branch, so we should move that forward to be a release.
#FRONTEND_VCS_REF='cypress-update-8.7.0'
#FRONTEND_VCS_REF='1.0.4'
FRONTEND_VCS_REF='no-node-sass'
FRONTEND_VCS_REF='1.3.0'

if [[ -L $FRONTEND_DOCROOT_DIR ]]; then
echo "ERROR: Symlink $FRONTEND_DOCROOT_DIR already exists."
Expand All @@ -34,10 +29,6 @@ if [ ! -z "$DKAN_MODULE_PATH" ]; then
fi
fi

drush pm-enable dkan_js_frontend -y
drush config-set system.site page.front '/home' -y
drush cr

echo " ** Gathering frontend application: $FRONTEND_VCS_REF from $FRONTEND_VCS_URL"

mkdir -p $FRONTEND_TMP
Expand Down

0 comments on commit 21f8f1b

Please sign in to comment.