Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Vincent Peybernes
/
CondorcetJS
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
82e933cd
...
82e933cd3df05f7bb5b8af0a6dd7870d069a24a7
authored
2017-07-04 17:38:35 +0200
by
Vincent Peybernes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add gulpfile.js
1 parent
5d31b59a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
gulpfile.js
gulpfile.js
0 → 100644
View file @
82e933c
const
srcPath
=
'./lib/relative-placement.js'
;
const
distPath
=
'./dist/'
;
var
gulp
=
require
(
'gulp'
);
var
babel
=
require
(
'gulp-babel'
);
var
replace
=
require
(
'gulp-replace'
);
var
rename
=
require
(
'gulp-rename'
);
var
del
=
require
(
'del'
);
var
package
=
require
(
'./package.json'
);
gulp
.
task
(
'default'
,
[
'build'
]);
gulp
.
task
(
'build'
,[
'clean'
],
()
=>
{
return
gulp
.
src
(
srcPath
)
.
pipe
(
replace
(
/RelativePlacement.version = '.+
?
';/
,
'RelativePlacement.version = \''
+
package
.
version
+
'\';'
))
.
pipe
(
gulp
.
dest
(
distPath
))
.
pipe
(
babel
({
presets
:
[
'es2015'
]
}))
.
pipe
(
rename
(
path
=>
{
path
.
basename
+=
'-es2015'
}))
.
pipe
(
gulp
.
dest
(
distPath
));
});
gulp
.
task
(
'clean'
,()
=>
{
return
del
(
distPath
);
});
\ No newline at end of file
Please
register
or
sign in
to post a comment