Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
402
Merge Requests
64
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
652635d2
Commit
652635d2
authored
10 hours ago
by
Emiliano Balbuena
Browse files
Options
Download
(chore): Windows support
parent
fe2f400d
goal/local-infra
1 merge request
!766
WIP: Local infrastructure provisioner (front)
Pipeline
#116248166
failed with stages
in 30 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
17 deletions
+28
-17
gulpfile.ts
View file @
652635d2
...
...
@@ -7,7 +7,6 @@ import * as template from 'gulp-template';
import
{
join
}
from
'
path
'
;
import
{
argv
}
from
'
yargs
'
;
const
AUTOPREFIXER_BROWSERS
=
[
'
ie >= 11
'
,
'
ie_mob >= 11
'
,
...
...
@@ -17,32 +16,44 @@ const AUTOPREFIXER_BROWSERS = [
'
opera >= 23
'
,
'
ios >= 7
'
,
'
android >= 4.4
'
,
'
bb >= 10
'
'
bb >= 10
'
,
];
// --------------
// Build SASS
gulp
.
task
(
'
build.sass
'
,
done
=>
{
const
app_cdn
=
argv
.
deployUrl
?
argv
.
deployUrl
:
''
;
gulp
.
src
(
join
(
'
./src
'
,
'
**
'
,
'
*.scss
'
))
.
pipe
(
cssGlobbing
({
extensions
:
[
'
.scss
'
]
}))
.
pipe
(
sass
({
includePaths
:
[
join
(
'
./src
'
,
'
stylesheets
'
)],
style
:
'
compressed
'
}).
on
(
'
error
'
,
sass
.
logError
))
const
app_cdn
=
argv
.
deployUrl
?
argv
.
deployUrl
:
''
;
gulp
.
src
(
join
(
__dirname
,
'
src
'
,
'
**
'
,
'
*.scss
'
))
.
pipe
(
cssGlobbing
({
extensions
:
[
'
.scss
'
]
}))
.
pipe
(
sass
({
includePaths
:
[
join
(
__dirname
,
'
src
'
,
'
stylesheets
'
)],
style
:
'
compressed
'
,
}).
on
(
'
error
'
,
sass
.
logError
)
)
.
pipe
(
autoprefixer
(
AUTOPREFIXER_BROWSERS
))
.
pipe
(
template
({
'
APP_CDN
'
:
app_cdn
,
}))
.
pipe
(
gulp
.
dest
(
'
./.styles
'
))
.
pipe
(
template
({
APP_CDN
:
app_cdn
,
})
)
.
pipe
(
gulp
.
dest
(
join
(
__dirname
,
'
.styles
'
)))
.
on
(
'
end
'
,
()
=>
{
gulp
.
src
(
'
./.styles/stylesheets/main.css
'
)
.
pipe
(
gulp
.
dest
(
'
./src
'
))
gulp
.
src
(
join
(
__dirname
,
'
.styles
'
,
'
stylesheets
'
,
'
main.css
'
))
.
pipe
(
gulp
.
dest
(
join
(
__dirname
,
'
src
'
)))
.
on
(
'
end
'
,
done
);
});
});
// --------------
// i18n
gulp
.
task
(
'
extract.i18n
'
,
require
(
join
(
__dirname
,
'
tasks
'
,
'
extract.i18n.xlf
'
))(
gulp
));
gulp
.
task
(
'
import.i18n
'
,
require
(
join
(
__dirname
,
'
tasks
'
,
'
import.i18n.xlf
'
))(
gulp
));
gulp
.
task
(
'
extract.i18n
'
,
require
(
join
(
__dirname
,
'
tasks
'
,
'
extract.i18n.xlf
'
))(
gulp
)
);
gulp
.
task
(
'
import.i18n
'
,
require
(
join
(
__dirname
,
'
tasks
'
,
'
import.i18n.xlf
'
))(
gulp
)
);
This diff is collapsed.
Please
register
or
sign in
to comment