Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bs_base
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
bs_base
Commits
0d629164
Commit
0d629164
authored
5 months ago
by
Ivica Puljic
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3447329
by pivica: Add css dev build script to package.json
parent
8beed159
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!5
Issue #3447329 by pivica: Add css dev build script to package.json
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
themes/bs_bootstrap/bs_bootstrap.bs_base.install
+12
-0
12 additions, 0 deletions
themes/bs_bootstrap/bs_bootstrap.bs_base.install
themes/bs_bootstrap/package.json
+1
-0
1 addition, 0 deletions
themes/bs_bootstrap/package.json
with
13 additions
and
0 deletions
themes/bs_bootstrap/bs_bootstrap.bs_base.install
+
12
−
0
View file @
0d629164
...
...
@@ -225,3 +225,15 @@ function bs_bootstrap_bs_update_8008($target_theme_name) {
]);
}
}
/**
* Add build-css-dev command to package.json.
*/
function
bs_bootstrap_bs_update_8009
(
$target_theme_name
)
{
$themes_info
=
_bs_base_drupal_theme_list_info
();
if
(
isset
(
$themes_info
[
$target_theme_name
]))
{
_bs_base_regexp_file
(
$themes_info
[
$target_theme_name
]
->
subpath
.
'/package.json'
,
[
'^.*"build-css": ".*",\n'
=>
' "build-css": "npx gulp clean:css && npx gulp sass",'
.
"
\n
"
.
' "build-css-dev": "npx gulp clean:css && npx gulp sass:dev",'
.
"
\n
"
,
]);
}
}
This diff is collapsed.
Click to expand it.
themes/bs_bootstrap/package.json
+
1
−
0
View file @
0d629164
...
...
@@ -33,6 +33,7 @@
"build-install"
:
"((type pnpm && pnpm install) || npm install)"
,
"build-browsers"
:
"npx browserslist@latest --update-db"
,
"build-css"
:
"npx gulp clean:css && npx gulp sass"
,
"build-css-dev"
:
"npx gulp clean:css && npx gulp sass:dev"
,
"build-icons"
:
"fantasticon"
,
"build"
:
"npm run build-install & npm run build-icons &npm run build-browsers & npm run build-css"
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment