Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
ACP3 CMS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACP3
ACP3 CMS
Commits
ba911d6d
Commit
ba911d6d
authored
Mar 08, 2019
by
Tino Goratsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run the autoprefixer as part of the less gulp task
parent
3bc53b23
Pipeline
#50969761
passed with stages
in 2 minutes and 43 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
39 deletions
+12
-39
build/gulp/autoprefixer.js
build/gulp/autoprefixer.js
+0
-29
build/gulp/copy.js
build/gulp/copy.js
+2
-2
build/gulp/less.js
build/gulp/less.js
+6
-3
build/gulp/watch.js
build/gulp/watch.js
+3
-3
gulpfile.js
gulpfile.js
+1
-2
No files found.
build/gulp/autoprefixer.js
deleted
100644 → 0
View file @
3bc53b23
/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licensing details.
*/
module
.
exports
=
function
(
gulp
,
plugins
)
{
'
use strict
'
;
const
autoprefixer
=
require
(
'
autoprefixer
'
);
return
function
()
{
return
gulp
.
src
(
[
'
./ACP3/Modules/*/*/Resources/Assets/css/style.css
'
,
'
./ACP3/Modules/*/*/Resources/Assets/css/append.css
'
,
'
./designs/*/*/Assets/css/style.css
'
,
'
./designs/*/*/Assets/css/append.css
'
,
'
./designs/**/Assets/css/*.css
'
,
'
./installation/design/Assets/css/*.css
'
,
'
./installation/Installer/Modules/*/Resources/Assets/css/style.css
'
,
],
{
base
:
'
./
'
}
)
.
pipe
(
plugins
.
postcss
([
autoprefixer
()]))
.
pipe
(
plugins
.
plumber
())
.
pipe
(
gulp
.
dest
(
'
./
'
));
};
};
build/gulp/copy.js
View file @
ba911d6d
...
...
@@ -3,10 +3,10 @@
* See the LICENSE file at the top-level module directory for licencing details.
*/
module
.
exports
=
function
(
gulp
)
{
module
.
exports
=
(
gulp
)
=>
{
'
use strict
'
;
return
function
(
done
)
{
return
(
done
)
=>
{
const
nodeBasePath
=
'
./node_modules
'
,
systemBasePath
=
'
./ACP3/Modules/ACP3/System/Resources/Assets
'
,
ckeditorBasePath
=
'
./ACP3/Modules/ACP3/Wysiwygckeditor/Resources/Assets
'
,
...
...
build/gulp/less.js
View file @
ba911d6d
...
...
@@ -3,10 +3,12 @@
* See the LICENSE file at the top-level module directory for licencing details.
*/
module
.
exports
=
function
(
gulp
,
plugins
)
{
module
.
exports
=
(
gulp
,
plugins
)
=>
{
'
use strict
'
;
return
function
()
{
const
autoprefixer
=
require
(
'
autoprefixer
'
);
return
()
=>
{
return
gulp
.
src
(
[
...
...
@@ -22,7 +24,8 @@ module.exports = function (gulp, plugins) {
)
.
pipe
(
plugins
.
plumber
())
.
pipe
(
plugins
.
less
())
.
pipe
(
plugins
.
rename
(
function
(
path
)
{
.
pipe
(
plugins
.
postcss
([
autoprefixer
()]))
.
pipe
(
plugins
.
rename
((
path
)
=>
{
path
.
dirname
=
path
.
dirname
.
substring
(
0
,
path
.
dirname
.
length
-
4
)
+
'
css
'
;
}))
.
pipe
(
gulp
.
dest
(
'
./
'
));
...
...
build/gulp/watch.js
View file @
ba911d6d
...
...
@@ -3,10 +3,10 @@
* See the LICENSE file at the top-level module directory for licencing details.
*/
module
.
exports
=
function
(
gulp
)
{
module
.
exports
=
(
gulp
)
=>
{
'
use strict
'
;
return
function
()
{
return
()
=>
{
// Watch all the .less files, then run the less task
return
gulp
.
watch
(
[
...
...
@@ -17,7 +17,7 @@ module.exports = function (gulp) {
'
installation/Installer/Modules/*/Resources/Assets/less/style.less
'
],
{
cwd
:
'
./
'
},
gulp
.
series
(
'
less
'
,
'
autoprefixer
'
)
gulp
.
series
(
'
less
'
)
);
};
};
gulpfile.js
View file @
ba911d6d
...
...
@@ -16,8 +16,7 @@
gulp
.
task
(
'
copy
'
,
getTask
(
'
copy
'
));
gulp
.
task
(
'
bump-version
'
,
getTask
(
'
bump-version
'
));
gulp
.
task
(
'
less
'
,
getTask
(
'
less
'
));
gulp
.
task
(
'
autoprefixer
'
,
getTask
(
'
autoprefixer
'
));
gulp
.
task
(
'
watch
'
,
gulp
.
series
(
'
less
'
,
'
autoprefixer
'
,
getTask
(
'
watch
'
)));
gulp
.
task
(
'
watch
'
,
gulp
.
series
(
'
less
'
,
getTask
(
'
watch
'
)));
gulp
.
task
(
'
default
'
,
gulp
.
series
(
'
watch
'
));
})();
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