Skip to content

Commit

Permalink
chore(scripts): Use uirouter/publish-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Aug 12, 2017
1 parent 4baa430 commit 08b6f47
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 277 deletions.
File renamed without changes.
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
"version": "1.0.5",
"scripts": {
"clean": "shx rm -rf lib lib-esm _doc build release *.log",
"build": "tsc && tsc -m es6 --outDir lib-esm && npm run fixdts",
"compile": "tsc && tsc -m es6 --outDir lib-esm && npm run fixdts",
"fixdts": "dts-downlevel 'lib/**/*.d.ts' 'lib-esm/**/*.d.ts'",
"package": "npm run clean && npm run build && npm run bundle",
"fixmaps": "modify_sourcemap_paths",
"build": "npm run clean && npm run compile && npm run bundle && npm run fixmaps",
"bundle": "npm run bundle_router && npm run bundle_monolithic_router && npm run bundle_events && npm run bundle_resolve",
"bundle_monolithic_router": "rollup -c --environment ROUTER,MONOLITHIC && rollup -c --environment ROUTER,MINIFY,MONOLITHIC",
"bundle_router": "rollup -c --environment ROUTER && rollup -c --environment ROUTER,MINIFY",
"bundle_events": "rollup -c --environment EVENTS && rollup -c --environment EVENTS,MINIFY",
"bundle_resolve": "rollup -c --environment RESOLVE && rollup -c --environment RESOLVE,MINIFY",
"prepare": "npm run package",
"prepare": "npm run build",
"changelog": "update_changelog",
"release": "npm run noimplicitany && node ./scripts/release.js",
"install": "node migrate/migratewarn.js",
"noimplicitany": "tsc --noEmit --noImplicitAny --moduleResolution node --target es6 test/noimplicitany.ts",
"test": "npm run test:integrate",
Expand All @@ -26,7 +29,7 @@
"debug": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1 --browsers=Chrome",
"docs": "./scripts/docs.js",
"publishdocs": "node scripts/publishdocs.js",
"artifacts": "node scripts/artifact_tagging.js"
"artifacts": "artifact_tagging"
},
"homepage": "https://ui-router.github.io",
"contributors": [
Expand Down Expand Up @@ -80,6 +83,7 @@
"@types/angular-mocks": "^1.5.5",
"@types/jasmine": "^2.2.34",
"@types/jquery": "^1.10.31",
"@uirouter/publish-scripts": "^1.0.4",
"awesome-typescript-loader": "3.0.0-beta.10",
"babel-core": "^5.8.14",
"clone": "^1.0.2",
Expand Down
109 changes: 0 additions & 109 deletions scripts/artifact_tagging.js

This file was deleted.

5 changes: 0 additions & 5 deletions scripts/ensure_clean_master.js

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require('shelljs/global');
let readlineSync = require('readline-sync');
let fs = require('fs');
let path = require('path');
let util = require('./util');
let util = require('@uirouter/publish-scripts/util');
let _exec = util._exec;

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

util.ensureCleanMaster('master');

_exec('npm run package');
_exec('npm run build');
_exec(`npm run docs`);

console.log('Updating version in bower.json to ${version}');
Expand Down
28 changes: 0 additions & 28 deletions scripts/show_changelog.js

This file was deleted.

69 changes: 0 additions & 69 deletions scripts/show_core_changelog.js

This file was deleted.

15 changes: 0 additions & 15 deletions scripts/update_changelog.js

This file was deleted.

39 changes: 0 additions & 39 deletions scripts/util.js

This file was deleted.

Loading

0 comments on commit 08b6f47

Please sign in to comment.