Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
FRMWRK-general
deployer
Commits
f5f4f911
Commit
f5f4f911
authored
6 years ago
by
Ivo Andriessen
Browse files
Options
Download
Plain Diff
Merge branch 'drupalci'
* drupalci: Changed grunt command
parents
4d5d4e41
d450868a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
recipe/frmwrk.common.php
recipe/frmwrk.common.php
+12
-3
No files found.
recipe/frmwrk.common.php
View file @
f5f4f911
...
...
@@ -130,14 +130,23 @@ task('deploy:build_checkout', function () {
})
->
desc
(
'Create local build folder'
);
task
(
'deploy:run_grunt'
,
function
()
{
// NPM Install
// Check for Yarn
$yarnVersion
=
runLocally
(
'which ng'
)
->
toString
();
if
(
$yarnVersion
!=
''
){
$name
=
'yarn'
;
}
else
{
$name
=
'npm'
;
}
// Yarn/NPM Install
// New Drupal 8 standard
if
(
runLocally
(
"if [ -f web/themes/custom/"
.
env
(
'theme_name'
)
.
"/package.json ]; then echo 'true'; fi"
)
->
toBool
())
{
runLocally
(
get
(
'goto_build_dir'
)
.
"cd web/themes/custom/"
.
env
(
'theme_name'
)
.
" &&
npm
install"
,
240
);
runLocally
(
get
(
'goto_build_dir'
)
.
"cd web/themes/custom/"
.
env
(
'theme_name'
)
.
" &&
"
.
$name
.
"
install"
,
240
);
}
// Drupal 7 and old Drupal 8 standard
if
(
runLocally
(
"if [ -f package.json ]; then echo 'true'; fi"
)
->
toBool
())
{
runLocally
(
get
(
'goto_build_dir'
)
.
"npm
install"
,
240
);
runLocally
(
get
(
'goto_build_dir'
)
.
$name
.
"
install"
,
240
);
}
// Bundle install
// New Drupal 8 standard
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment