You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use `npm` to install the development dependencies for each repositor.
72
+
Use `npm` to install the development dependencies for each repository.
71
73
72
74
```
73
-
cd ui-router-core
75
+
cd core
74
76
npm install
75
-
cd ../angular-ui-router
77
+
cd ../angularjs
76
78
npm install
77
79
cd ..
78
80
```
79
81
80
82
## Link the directories
81
83
82
-
This step is necessary if you need to modify any code in `ui-router-core`.
83
-
Using `npm`, link `ui-router-core` into `angular-ui-router`
84
+
This step is necessary if you need to modify any code in `@uirouter/core`.
85
+
Using `npm`, link `@uirouter/core` into `angular-ui-router`
84
86
85
87
```
86
-
cd ui-router-core
88
+
cd core
87
89
npm link
88
-
cd ../angular-ui-router
89
-
npm link ui-router-core
90
+
cd ../angularjs
91
+
npm link '@uirouter/core'
90
92
```
91
93
92
-
After executing these steps, `angular-ui-router` will be built using your local copy of `ui-router-core`.
94
+
After executing these steps, `@uirouter/angularjs` will be depend on your local copy of `@uirouter/core` instead of the version listed in `package.json`.
93
95
94
96
## Develop
95
97
96
-
These scripts may be run in `angular-ui-router`:
98
+
These scripts may be run in the `angularjs` directory:
97
99
98
100
*`npm run build`: Compiles TypeScript source
99
-
*`npm run package`: Compiles TypeScript source and creates webpack bundles.
100
-
*`npm test`: Runs the `angular-ui-router`test suite (against Angular 1.2 through 1.5).
101
-
*`npm run watch`: Continuously compiles the source and runs the `angular-ui-router` tests (when source or tests change).
101
+
*`npm run package`: Compiles TypeScript source and creates the Rollup bundles.
102
+
*`npm test`: Runs the test suite (against Angular 1.2 through 1.5).
103
+
*`npm run watch`: Continuously compiles the source and runs the test suite (when either source or tests change).
102
104
103
-
Scripts of the same name (in `ui-router-core`) can be used.
105
+
Scripts of the same name (in the `core` directory) can be used.
104
106
105
-
*`npm run build`: Compiles `ui-router-core` TypeScript source
106
-
*`npm test`: Runs the `ui-router-core` test suite
107
-
*`npm run watch`: Continuously compiles the source and runs the `ui-router-core` test suite (when core source or tests change).
107
+
*`npm run build`: Compiles `@uirouter/core` TypeScript source
108
+
*`npm test`: Runs the `@uirouter/core` test suite
109
+
*`npm run watch`: Continuously compiles the source and runs the `@uirouter/core` test suite (when core source or tests change).
108
110
109
111
If you've followed the [linking instructions](#link-the-directories), it's useful to run both
110
-
`npm run watch` tasks (each task from `ui-router-core`*and*`angular-ui-router`).
111
-
This ensures that changes to either `ui-router-core` and `angular-ui-router` compile successfully and are run against the test suite.
112
+
`npm run watch` tasks (each task from `@uirouter/core`*and*`@uirouter/angularjs`).
113
+
This ensures that changes to either `@uirouter/core` and `@uirouter/angularjs` compile successfully and are run against their test suites.
0 commit comments