Skip to content

Commit 2586791

Browse files
committed
docs: change port of localhost to 9090
Canvas webUI runs on 8080 as well as our docs app. We should be able to run them at the same time
1 parent c3f5f37 commit 2586791

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

docs/contributor-docs/contributing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Please follow the steps on the [how to build guide page](#building-instui).
3333
### Development
3434

3535
1. Run `npm run build:watch` to build all of the packages for a development environment and watch for changes.
36-
1. Run `npm run dev` to start the dev server to run/develop examples and documentation. You can then visit [http://localhost:8080](http://localhost:8080) in a browser. When you make changes to the source code you should see the page auto-reload.
36+
1. Run `npm run dev` to start the dev server to run/develop examples and documentation. You can then visit [http://localhost:9090](http://localhost:9090) in a browser. When you make changes to the source code you should see the page auto-reload.
3737
1. Run `npm run test:watch -- --scope @instructure/[package name]` to run the tests for 'package name' and watch for changes.
3838
1. Run `npm run test` to run all the tests for every package.
3939

@@ -79,7 +79,7 @@ Please update the documentation and examples with any changes.
7979
2. Add the dependency in `packages/__docs__/package.json`.
8080
3. Add the reference in `packages/__docs__/tsconfig.build.json`.
8181
6. Stop the dev server (if you have it running), and run `npm run dev` to pick up the new package.
82-
7. Visit [http://localhost:8080](http://localhost:8080) in a browser. You should see your package listed in the docs.
82+
7. Visit [http://localhost:9090](http://localhost:9090) in a browser. You should see your package listed in the docs.
8383

8484
### Adding a component
8585

@@ -99,7 +99,7 @@ Please update the documentation and examples with any changes.
9999
8. Run `npm run bootstrap` to generate the `es`, `lib` and `types` directories for your component.
100100
9. Add your component to `packages/__docs__/components.js`.
101101
10. Stop the dev server (if you have it running), and run `npm run dev` to pick up the new component.
102-
11. Visit [http://localhost:8080](http://localhost:8080) in a browser. You should see your component listed in the docs.
102+
11. Visit [http://localhost:9090](http://localhost:9090) in a browser. You should see your component listed in the docs.
103103
12. Start making changes to your component, and watch it update in the browser automatically.
104104
13. Resolve all `FIXME` comments in the generated code (except in the `MyComponentLocator.ts`).
105105

docs/contributor-docs/dev-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This is a quick developer reference for common Instructure UI repository command
1111
| Command | Description |
1212
| ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1313
| `npm run bootstrap` | Clean all node modules and build output, reinstall dependencies, create fresh build including regenerating design tokens and type declaration files. |
14-
| `npm run dev` | Run a local instance of the documentation app in dev mode. Docs will be served at `http://0.0.0.0:8080` |
14+
| `npm run dev` | Run a local instance of the documentation app in dev mode. Docs will be served at `http://0.0.0.0:9090` |
1515
| `npm run start` | Run a local instance of the documentation app in production mode. The urls where the docs are being served will be included in the output of this command. |
1616
| `npm run build` | Run the build command for all Instructure UI packages. Similar to bootstrap, but without the cleaning steps, installation of dependencies, and without the token and type generation. |
1717
| `npm run build:watch` | Identical to `npm run build` but will watch for changes. Note: this command is rarely necessary to use. If you are running `npm run dev`, the docs app will already be watching for any changes for components. |

packages/__docs__/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ From the root of the `instructure-ui` repo:
88

99
1. Run `npm install`
1010
1. Run `npm run dev`
11-
1. Open [http://localhost:8080](http://localhost:8080) in your browser
11+
1. Open [http://localhost:9090](http://localhost:9090) in your browser

packages/__docs__/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"scripts": {
1414
"prestart": "npm run build:scripts:ts && node lib/build-docs.mjs",
1515
"start": "npm run prestart && ui-scripts bundle && ui-scripts server -p 8001",
16-
"start:watch": "npm run prestart && ui-scripts bundle --watch -p 8080",
16+
"start:watch": "npm run prestart && ui-scripts bundle --watch -p 9090",
1717
"bundle": "npm run prestart && ui-scripts bundle",
1818
"lint": "ui-scripts lint",
1919
"lint:fix": "ui-scripts lint --fix",

packages/ui-scripts/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Deprecates ALL of a certain version of instUI npm packages by running `npm depre
5858

5959
To build component examples and start up a dev server with hot reloading:
6060

61-
`npm run ui-scripts examples --watch -p 8080`
61+
`npm run ui-scripts examples --watch -p 9090`
6262

6363
To build component examples for deploying:
6464

@@ -98,7 +98,7 @@ To publish all packages (defaults to current version):
9898

9999
To start up a server to test production builds of examples or docs:
100100

101-
`npm run ui-scripts server -p 8080`
101+
`npm run ui-scripts server -p 9090`
102102

103103
#### npm tag
104104

packages/ui-scripts/lib/build/examples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232
alias: 'p',
3333
type: 'number',
3434
describe: 'port to use',
35-
default: 8080
35+
default: 9090
3636
})
3737
yargs.option('watch', {
3838
boolean: true,

packages/ui-scripts/lib/build/webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default {
3535
handler: async (argv) => {
3636
const { NODE_ENV, DEBUG, OMIT_INSTUI_DEPRECATION_WARNINGS } = process.env
3737

38-
let port = argv.port || '8080'
38+
let port = argv.port || '9090'
3939

4040
let command, webpackArgs
4141

packages/ui-scripts/lib/commands/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
alias: 'p',
3232
type: 'number',
3333
describe: 'port to use.',
34-
default: 8080
34+
default: 9090
3535
}
3636
},
3737
handler: (argv) => {

0 commit comments

Comments
 (0)