Creating CDN major release 1.x.x (#87)

This commit is contained in:
Roman Hotsiy 2016-08-29 09:36:53 +03:00
parent 34db52cd91
commit e6efe35595
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -19,7 +19,10 @@ cd('..');
var version = 'v' + require(path.join(__dirname, '../package.json')).version + '/';
var versionDir = path.join(paths.releases, version);
var latestDir = path.join(paths.releases, 'latest/');
var v1Dir = path.join(paths.releases, '1.x.x/');
mkdir('-p', versionDir)
mkdir('-p', latestDir);
mkdir('-p', v1Dir);
cp(paths.redocBuilt + '.min.js', versionDir);
cp(paths.redocBuilt + '.min.js', latestDir);
cp(paths.redocBuilt + '.min.js', v1Dir);