Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shower-presentation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Шардт Максим Александрович
shower-presentation
Commits
67a5dae4
Commit
67a5dae4
authored
Jul 19, 2017
by
Stanislav Ivanov
Committed by
Vadim Makeev
Jul 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dev server and watcher for development
parent
67149189
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
gulpfile.js
gulpfile.js
+16
-1
package.json
package.json
+1
-0
No files found.
gulpfile.js
View file @
67a5dae4
...
@@ -8,6 +8,7 @@ const rsync = require('gulp-rsync');
...
@@ -8,6 +8,7 @@ const rsync = require('gulp-rsync');
const
sequence
=
require
(
'run-sequence'
);
const
sequence
=
require
(
'run-sequence'
);
const
zip
=
require
(
'gulp-zip'
);
const
zip
=
require
(
'gulp-zip'
);
const
pages
=
require
(
'gulp-gh-pages'
);
const
pages
=
require
(
'gulp-gh-pages'
);
const
browserSync
=
require
(
'browser-sync'
).
create
();
gulp
.
task
(
'prepare'
,
()
=>
{
gulp
.
task
(
'prepare'
,
()
=>
{
...
@@ -100,4 +101,18 @@ gulp.task('clean', () => {
...
@@ -100,4 +101,18 @@ gulp.task('clean', () => {
return
del
(
'prepared/**'
);
return
del
(
'prepared/**'
);
});
});
gulp
.
task
(
'default'
,
[
'prepare'
]);
gulp
.
task
(
'serve'
,
()
=>
{
browserSync
.
init
({
ui
:
false
,
notify
:
false
,
port
:
3000
,
server
:
{
baseDir
:
'.'
}
});
gulp
.
watch
(
'index.html'
).
on
(
'change'
,
()
=>
{
browserSync
.
reload
();
});
});
gulp
.
task
(
'default'
,
[
'serve'
]);
package.json
View file @
67a5dae4
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
"
shower-ribbon
"
:
"
^2.0.10
"
"
shower-ribbon
"
:
"
^2.0.10
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"
browser-sync
"
:
"
^2.18.12
"
,
"
del
"
:
"
^2.2.1
"
,
"
del
"
:
"
^2.2.1
"
,
"
fs
"
:
"
0.0.2
"
,
"
fs
"
:
"
0.0.2
"
,
"
gulp
"
:
"
^3.9.1
"
,
"
gulp
"
:
"
^3.9.1
"
,
...
...
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