Skip to content

Commit 74338aa

Browse files
chore(package): Rename angular-ui-router vestiges to @uirouter/angularjs
1 parent 4919a3a commit 74338aa

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ cd ..
8282
## Link the directories
8383

8484
This step is necessary if you need to modify any code in `@uirouter/core`.
85-
Using `npm`, link `@uirouter/core` into `angular-ui-router`
85+
Using `npm`, link `@uirouter/core` into `@uirouter/angularjs`
8686

8787
```
8888
cd core

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ version 0.2.x, it can be found [here](https://github.com/angular-ui/ui-router/tr
1010
---
1111
**[Tutorials](https://ui-router.github.io/tutorials/)** |
1212
**[API Docs](https://ui-router.github.io/docs/latest/)** |
13-
**[Download stable](http://unpkg.com/angular-ui-router@latest/release/angular-ui-router.js)** (or **[Minified](http://unpkg.com/angular-ui-router@latest/release/angular-ui-router.min.js)**) **|**
13+
**[Download stable](http://unpkg.com/@uirouter/angularjs@latest/release/angular-ui-router.js)** (or **[Minified](http://unpkg.com/angular-ui-router@latest/release/angular-ui-router.min.js)**) **|**
1414
**[Guide](https://github.com/angular-ui/ui-router/wiki) |**
1515
**[Sample App](http://ui-router.github.io/resources/sampleapp/) |**
1616
**[FAQ](https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions) |**

rollup.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ const ROUTER_CONFIG = Object.assign({
5151
}, BASE_CONFIG);
5252

5353
const EVENTS_CONFIG = Object.assign({}, BASE_CONFIG, {
54-
moduleName: 'angular-ui-router-state-events',
54+
moduleName: '@uirouter/angularjs-state-events',
5555
entry: 'lib-esm/legacy/stateEvents.js',
5656
dest: 'release/stateEvents' + extension,
5757
globals: { angular: 'angular', '@uirouter/core': '@uirouter/core' },
5858
external: ['angular', '@uirouter/core'],
5959
});
6060

6161
const RESOLVE_CONFIG = Object.assign({}, BASE_CONFIG, {
62-
moduleName: 'angular-ui-router-resolve-service',
62+
moduleName: '@uirouter/angularjs-resolve-service',
6363
entry: 'lib-esm/legacy/resolveService.js',
6464
dest: 'release/resolveService' + extension,
6565
globals: { angular: 'angular', '@uirouter/core': '@uirouter/core' },

scripts/docs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ let replaceInFiles = require('replace-in-file');
77
let typedocCmd = [
88
"./node_modules/typedoc/bin/typedoc --tsconfig tsconfig.typedoc.json ",
99
" --readme DOCS.md ",
10-
" --name 'angular-ui-router' ",
10+
" --name '@uirouter/angularjs' ",
1111
" --theme node_modules/ui-router-typedoc-themes/bin/default ",
1212
" --out _doc ",
1313
" --internal-aliases internal,coreapi,ng1api ",
1414
" --external-aliases internalapi,external ",
15-
" --navigation-label-globals angular-ui-router",
15+
" --navigation-label-globals @uirouter/angularjs",
1616
].join(" ");
1717

1818
let PROJECTDIR = path.join(__dirname, '..');

src/legacy/resolveService.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ var $resolve = {
1313
*
1414
* ### Not bundled by default
1515
*
16-
* This API is no longer not part of the standard `angular-ui-router` bundle.
16+
* This API is no longer not part of the standard `@uirouter/angularjs` bundle.
1717
* For users of the prebuilt bundles, add the `release/resolveService.min.js` UMD bundle.
18-
* For bundlers (webpack, browserify, etc), add `angular-ui-router/lib/legacy/resolveService`.
18+
* For bundlers (webpack, browserify, etc), add `@uirouter/angularjs/lib/legacy/resolveService`.
1919
*
2020
* ---
2121
*

src/statebuilders/onEnterExitRetain.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Ng1StateDeclaration } from '../interface';
1010
* `onRetain` callback hooks on a [[Ng1StateDeclaration]].
1111
*
1212
* When the [[StateBuilder]] builds a [[StateObject]] object from a raw [[StateDeclaration]], this builder
13-
* ensures that those hooks are injectable for angular-ui-router (ng1).
13+
* ensures that those hooks are injectable for @uirouter/angularjs (ng1).
1414
*/
1515
export const getStateHookBuilder = (hookName: "onEnter"|"onExit"|"onRetain") =>
1616
function stateHookBuilder(state: StateObject, parentFn: BuilderFunction): TransitionStateHookFn {

src/statebuilders/views.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const hasAnyKey = (keys, obj) =>
2424
* This is a [[StateBuilder.builder]] function for angular1 `views`.
2525
*
2626
* When the [[StateBuilder]] builds a [[StateObject]] object from a raw [[StateDeclaration]], this builder
27-
* handles the `views` property with logic specific to angular-ui-router (ng1).
27+
* handles the `views` property with logic specific to @uirouter/angularjs (ng1).
2828
*
2929
* If no `views: {}` property exists on the [[StateDeclaration]], then it creates the `views` object
3030
* and applies the state-level configuration to a view named `$default`.

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
path: __dirname + "/release",
1818
filename: "[name].js",
1919
libraryTarget: "umd",
20-
library: "angular-ui-router",
20+
library: "@uirouter/angularjs",
2121
umdNamedDefine: true
2222
},
2323

0 commit comments

Comments
 (0)