Skip to content

Commit 08b6f47

Browse files
chore(scripts): Use uirouter/publish-scripts
1 parent 4baa430 commit 08b6f47

10 files changed

+45
-277
lines changed
File renamed without changes.

package.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44
"version": "1.0.5",
55
"scripts": {
66
"clean": "shx rm -rf lib lib-esm _doc build release *.log",
7-
"build": "tsc && tsc -m es6 --outDir lib-esm && npm run fixdts",
7+
"compile": "tsc && tsc -m es6 --outDir lib-esm && npm run fixdts",
88
"fixdts": "dts-downlevel 'lib/**/*.d.ts' 'lib-esm/**/*.d.ts'",
9-
"package": "npm run clean && npm run build && npm run bundle",
9+
"fixmaps": "modify_sourcemap_paths",
10+
"build": "npm run clean && npm run compile && npm run bundle && npm run fixmaps",
1011
"bundle": "npm run bundle_router && npm run bundle_monolithic_router && npm run bundle_events && npm run bundle_resolve",
1112
"bundle_monolithic_router": "rollup -c --environment ROUTER,MONOLITHIC && rollup -c --environment ROUTER,MINIFY,MONOLITHIC",
1213
"bundle_router": "rollup -c --environment ROUTER && rollup -c --environment ROUTER,MINIFY",
1314
"bundle_events": "rollup -c --environment EVENTS && rollup -c --environment EVENTS,MINIFY",
1415
"bundle_resolve": "rollup -c --environment RESOLVE && rollup -c --environment RESOLVE,MINIFY",
15-
"prepare": "npm run package",
16+
"prepare": "npm run build",
17+
"changelog": "update_changelog",
18+
"release": "npm run noimplicitany && node ./scripts/release.js",
1619
"install": "node migrate/migratewarn.js",
1720
"noimplicitany": "tsc --noEmit --noImplicitAny --moduleResolution node --target es6 test/noimplicitany.ts",
1821
"test": "npm run test:integrate",
@@ -26,7 +29,7 @@
2629
"debug": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1 --browsers=Chrome",
2730
"docs": "./scripts/docs.js",
2831
"publishdocs": "node scripts/publishdocs.js",
29-
"artifacts": "node scripts/artifact_tagging.js"
32+
"artifacts": "artifact_tagging"
3033
},
3134
"homepage": "https://ui-router.github.io",
3235
"contributors": [
@@ -80,6 +83,7 @@
8083
"@types/angular-mocks": "^1.5.5",
8184
"@types/jasmine": "^2.2.34",
8285
"@types/jquery": "^1.10.31",
86+
"@uirouter/publish-scripts": "^1.0.4",
8387
"awesome-typescript-loader": "3.0.0-beta.10",
8488
"babel-core": "^5.8.14",
8589
"clone": "^1.0.2",

scripts/artifact_tagging.js

-109
This file was deleted.

scripts/ensure_clean_master.js

-5
This file was deleted.

scripts/release.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require('shelljs/global');
77
let readlineSync = require('readline-sync');
88
let fs = require('fs');
99
let path = require('path');
10-
let util = require('./util');
10+
let util = require('@uirouter/publish-scripts/util');
1111
let _exec = util._exec;
1212

1313
cd(path.join(__dirname, '..'));
@@ -30,7 +30,7 @@ if (!readlineSync.keyInYN('Ready to publish?')) {
3030

3131
util.ensureCleanMaster('master');
3232

33-
_exec('npm run package');
33+
_exec('npm run build');
3434
_exec(`npm run docs`);
3535

3636
console.log('Updating version in bower.json to ${version}');

scripts/show_changelog.js

-28
This file was deleted.

scripts/show_core_changelog.js

-69
This file was deleted.

scripts/update_changelog.js

-15
This file was deleted.

scripts/util.js

-39
This file was deleted.

0 commit comments

Comments
 (0)