build: finish script for CDN releases

closes #87, [skip ci]
This commit is contained in:
Roman Hotsiy 2017-04-23 19:23:38 +03:00
parent 71752aea02
commit 87de7d7180
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -16,10 +16,10 @@ mkdir('-p', 'dist');
cp('-R', '../dist/*', './dist/');
cd('..');
var version = 'v' + require(path.join(__dirname, '../package.json')).version + '/';
var versionDir = path.join(paths.releases, version);
var version = require(path.join(__dirname, '../package.json')).version;
var versionDir = path.join(paths.releases, 'v' + version + '/');
var latestDir = path.join(paths.releases, 'latest/');
var v1Dir = path.join(paths.releases, 'v1.x.x/');
var v1Dir = path.join(paths.releases, 'v' + version.split('.')[0] + '.x.x/');
mkdir('-p', versionDir)
mkdir('-p', latestDir);
mkdir('-p', v1Dir);