Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Toolchain
sgc
Commits
33cf23ec
Commit
33cf23ec
authored
Jan 08, 2015
by
Philipp Nowinski
Browse files
[FEATURE] add browsersync task
parent
034ed618
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/index.js
View file @
33cf23ec
...
...
@@ -114,6 +114,11 @@ module.exports = yeoman.generators.Base.extend((function() {
this
.
destinationPath
(
'
gulp/css.js
'
),
answers
);
this
.
fs
.
copyTpl
(
this
.
templatePath
(
'
gulp/browser-sync.js
'
),
this
.
destinationPath
(
'
gulp/browser-sync.js
'
),
answers
);
};
Generator
.
writeCompassConfig
=
function
()
{
...
...
app/templates/_gulpfile.js
View file @
33cf23ec
...
...
@@ -2,7 +2,6 @@
var
gulp
=
require
(
'
gulp
'
),
path
=
require
(
'
path
'
),
browserSync
=
require
(
'
browser-sync
'
),
imagemin
=
require
(
'
gulp-imagemin
'
),
jshint
=
require
(
'
gulp-jshint
'
),
argv
=
require
(
'
yargs
'
).
argv
<%
if
(
projectType
==
'
typo3Frontend
'
)
{
%>
...
...
@@ -28,7 +27,3 @@ gulp.task('images', function() {
}))
.
pipe
(
gulp
.
dest
(
imagePath
));
});
gulp
.
task
(
'
browser-sync
'
,
function
()
{
browserSync
.
init
();
});
app/templates/gulp/browser-sync.js
0 → 100644
View file @
33cf23ec
'
use strict
'
;
var
gulp
=
require
(
'
gulp
'
),
settings
=
require
(
'
./settings
'
),
browserSync
=
require
(
'
browser-sync
'
);
gulp
.
task
(
'
browser-sync
'
,
function
()
{
browserSync
({
server
:
{
baseDir
:
'
.
'
}
});
});
Write
Preview
Supports
Markdown
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