This repository was archived by the owner on May 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +20
-68
lines changed Expand file tree Collapse file tree 3 files changed +20
-68
lines changed Original file line number Diff line number Diff line change 14
14
"bundle_router" : " rollup -c --environment ROUTER && rollup -c --environment ROUTER,MINIFY" ,
15
15
"bundle_events" : " rollup -c --environment EVENTS && rollup -c --environment EVENTS,MINIFY" ,
16
16
"bundle_resolve" : " rollup -c --environment RESOLVE && rollup -c --environment RESOLVE,MINIFY" ,
17
- "prepublishOnly" : " npm run build" ,
18
- "changelog" : " update_changelog --include-core" ,
19
- "release" : " npm run noimplicitany && node ./scripts/release.js" ,
20
17
"noimplicitany" : " tsc --noEmit --noImplicitAny --moduleResolution node --target es6 test/noimplicitany.ts" ,
21
18
"test" : " npm run test:integrate" ,
22
19
"test:ng12" : " karma start --ngversion 1.2" ,
28
25
"watch" : " karma start --singleRun=false --autoWatch=true --autoWatchInterval=1" ,
29
26
"debug" : " karma start --singleRun=false --autoWatch=true --autoWatchInterval=1 --browsers=Chrome" ,
30
27
"docs" : " ./scripts/docs.js" ,
28
+ "release" : " npm run noimplicitany && release --deps @uirouter/core && node ./scripts/bower_release.js" ,
29
+ "prepublishOnly" : " npm run build" ,
31
30
"publishdocs" : " node scripts/publishdocs.js" ,
32
31
"artifacts" : " artifact_tagging"
33
32
},
Original file line number Diff line number Diff line change
1
+ #!env node
2
+ "use strict" ;
3
+
4
+ const version = require ( '../package.json' ) . version ;
5
+ const util = require ( '@uirouter/publish-scripts/util' ) ;
6
+ const _exec = util . _exec ;
7
+
8
+ util . ensureCleanMaster ( 'master' ) ;
9
+
10
+ // branch, add/commit release files, and push to bower repository
11
+ _exec ( `git checkout -b bower-${ version } ` ) ;
12
+ _exec ( `git add --force release` ) ;
13
+ _exec ( `git commit -m "bower release ${ version } "` ) ;
14
+ _exec ( `git tag ${ version } +bower` ) ;
15
+ _exec ( `git remote add bower [email protected] :angular-ui/angular-ui-router-bower.git` ) ;
16
+ _exec ( `git push bower ${ version } +bower:${ version } ` ) ;
17
+ _exec ( `git remote rm bower` ) ;
18
+ _exec ( `git checkout master` ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments