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
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -335,15 +335,19 @@ The following tasks are available:
335
335
336
336
- `gulp build` - Performs a build of all components and the top level package
337
337
- `gulp buildComponents` - Performs a build of all components
338
-
- `gulp dev` - Performs a lite build (custom properties only), opens your browser with the documentation site, then starts watching components and website files
338
+
- `gulp dev` - Performs a lite build (custom properties only), runs browsersync and serves the documentation on the default port (3000), then starts watching components and website files
339
339
- `gulp clean` - Cleans all output files for the project and all components
340
-
- `gulp watch` - Assuming a build has already been performed, immediately opens your browser with the documentation site, then starts watching components and website files
340
+
- `gulp watch` - Assuming a build has already been performed, re-starts starts watching components and website files. Presumes a browser is already open to your locally served docs
341
+
- `gulp watch-relaunch` - Restarts watch and opens a new browser for the docs URL
341
342
- `gulp buildCombined` - Builds the combined output files (`dist/spectrum-*.css`)
342
343
- `gulp buildStandalone` - Builds the standalone output files (`dist/standalone/spectrum-*.css`)
343
344
- `gulp release` - Performs a release of the top-level package
344
345
- `gulp packageLint` - Lint the `package.json` file for each component in the monorepo
345
346
- `gulp readmeLint` - Generate a generic `README.md` file for each component in the monorepo
346
347
348
+
Note: `yarn run dev` will run `gulp dev` above but trigger browsersync to open the documentation URL. You can set `BROWSERSYNC_OPEN=true` to change dev and watch to always open the URL.
349
+
350
+
You can set a new port for `watch` by setting `BROWSERSYNC_PORT=<port number>`, e.g. `export BROWSERSYNC_PORT=9000; gulp watch` to set the port to `9000`.
0 commit comments