Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
WestCoastSwing
/
RelativePlacement
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
ad6e8964
...
ad6e896497bb331ebc3a57f3c79ff600fd0b1560
authored
2016-12-08 01:15:53 +0100
by
Vincent Peybernes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
#9
Prepare publish - publishing process
1 parent
cb379802
Pipeline
#29
for
ad6e8964
passed
in 2 minutes 5 seconds
Changes
5
Pipelines
1
Builds
4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
1 deletions
.gitlab-ci.yml
CHANGELOG.md
gulpfile.js
lib/relative-placement.js
package.json
.gitlab-ci.yml
View file @
ad6e896
...
...
@@ -7,6 +7,7 @@ cache:
stages
:
-
test
-
build
-
publish
node_test
:
stage
:
test
...
...
@@ -25,3 +26,17 @@ build:
script
:
-
npm install
-
npm run build
publish
:
stage
:
publish
when
:
manual
only
:
-
master
environment
:
name
:
npm
url
:
https://www.npmjs.com/package/relative-placement-js
script
:
-
npm install
-
npm version $PUBLISH_VERSION
-
npm run build
-
npm publish
\ No newline at end of file
...
...
CHANGELOG.md
0 → 100644
View file @
ad6e896
### v0.1.0-rc _`2016-12-08`_
*
Fix algorithm
*
Improve test
*
Add readme and licence
*
Add export management
\ No newline at end of file
gulpfile.js
View file @
ad6e896
...
...
@@ -7,15 +7,24 @@ 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
));
});
...
...
lib/relative-placement.js
View file @
ad6e896
...
...
@@ -3,6 +3,7 @@
* @module relativePlacement
*/
(
function
(
definition
)
{
// Node export
if
(
global
&&
module
&&
module
.
exports
)
return
module
.
exports
=
definition
();
//Browser export
...
...
@@ -30,6 +31,8 @@
});
}
RelativePlacement
.
version
=
'0.0.0'
;
/**
* @name addCandidate
* @param {String} candidateName
...
...
package.json
View file @
ad6e896
...
...
@@ -6,7 +6,7 @@
"name"
:
"Techniv"
,
"email"
:
"contact@techniv.fr"
},
"main"
:
"./
lib
/relative-placement.js"
,
"main"
:
"./
dist
/relative-placement.js"
,
"repository"
:{
"type"
:
"git"
,
...
...
@@ -19,6 +19,8 @@
"devDependencies"
:
{
"gulp"
:
"*"
,
"gulp-babel"
:
"*"
,
"gulp-replace"
:
"*"
,
"gulp-rename"
:
"*"
,
"del"
:
"*"
,
"babel-preset-es2015"
:
"*"
,
"mocha"
:
"*"
...
...
Please
register
or
sign in
to post a comment