Skip to content

Commit efdcfcf

Browse files
Merge branch 'master' of https://github.com/ui-router/ng2
2 parents 98914b1 + 139b8c2 commit efdcfcf

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"debug": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1 --browsers=Chrome",
1414
"package": "npm run build",
1515
"docs": "typedoc --tsconfig tsconfig.typedoc.json --readme README.md --name 'ui-router-ng2' --theme node_modules/ui-router-typedoc-themes/bin/default --out _doc --internal-aliases internal,coreapi,ng2api --external-aliases internalapi,external --navigation-label-globals ui-router-ng2",
16-
"prepublish": "npm run build"
16+
"prepublish": "npm run build",
17+
"changelog": "node scripts/update_changelog.js",
18+
"release": "node scripts/release.js",
19+
"artifacts": "node scripts/artifact_tagging.js"
1720
},
1821
"homepage": "https://ui-router.github.io/ng2",
1922
"contributors": [
@@ -43,7 +46,7 @@
4346
"module": "lib/index.js",
4447
"typings": "lib/index.d.ts",
4548
"dependencies": {
46-
"ui-router-core": "=5.0.0",
49+
"ui-router-core": "=5.0.0-pre.1",
4750
"ui-router-rx": "=0.2.1"
4851
},
4952
"peerDependencies": {

scripts/artifact_tagging.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!env node
2+
"use strict";
3+
4+
let version = require('../package.json').version;
5+
6+
require('shelljs/global');
7+
let readlineSync = require('readline-sync');
8+
let fs = require('fs');
9+
let path = require('path');
10+
let util = require('./util');
11+
let _exec = util._exec;
12+
13+
cd(path.join(__dirname, '..'));
14+
15+
if (!readlineSync.keyInYN('Ready to publish to ' + version + '-artifacts tag?')) {
16+
process.exit(1);
17+
}
18+
19+
util.ensureCleanMaster('master');
20+
21+
_exec('npm run package');
22+
23+
// then tag and push tag
24+
_exec(`git checkout -b ${version}-artifacts-prep`);
25+
_exec(`git add --force lib _bundles`);
26+
_exec(`git commit -m 'chore(*): commiting build files'`);
27+
_exec(`git tag ${version}-artifacts`);
28+
_exec(`git push -u origin ${version}-artifacts`);
29+
_exec(`git checkout -b master`);
30+
_exec(`git branch -D ${version}-artifacts-prep`);

0 commit comments

Comments
 (0)