-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
133 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { validateYarn } from './validators.js' | ||
import promiseExec from './utils/promiseExec.js' | ||
import { BASE_PATH } from './constants/constants.js' | ||
import { BASE_THEME_PATH } from './constants/constants.js' | ||
|
||
const COMPONENTS_INSTALL_ERROR_MSG = 'There was an error installing Snowdog_Components:' | ||
|
||
export async function installComponents(themeName) { | ||
export async function installComponents(themeName, vendor) { | ||
const packageManager = await validateYarn() ? 'yarn' : 'npm' | ||
|
||
return promiseExec(`cd ${BASE_PATH}${themeName}/Snowdog_Components && ${packageManager} install`, (msg) => { | ||
return promiseExec(`cd ${BASE_THEME_PATH}${vendor}/${themeName}/Snowdog_Components && ${packageManager} install`, (msg) => { | ||
return `${COMPONENTS_INSTALL_ERROR_MSG} ${msg}` | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.