Skip to content

Commit

Permalink
chore: added prod build for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Jun 24, 2019
1 parent 0dd9d64 commit 96b5b92
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"options": {
"aot": true,
"sourceMap": false,
"outputPath": "dist",
"outputPath": "dist/mosaic-io",
"index": "packages/docs/src/index.html",
"main": "packages/docs/src/main.ts",
"tsConfig": "packages/docs/tsconfig.json",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
"changelog": "gulp changelog",
"ng": "ng",
"docs:start": "ng serve",
"docs:prod-build": "ng build --aot --prod",
"postinstall": "ngc -p angular.tsconfig.json",
"preinstall": "node ./tools/npm/check-npm.js",
"publish": "ts-node --project ./scripts/tsconfig.deploy.json ./scripts/deploy/publish-artifacts.ts",
Expand Down
17 changes: 13 additions & 4 deletions packages/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@

1. build:mosaic-examples
2. build:mosaic
3. build:docs
## Development Setup
1. build:mosaic-examples - generate dynamic examples (for Stackblitz)
2. build:mosaic - generate our components for Docs App
3. build:docs - generate `docs-content` folder

and run serve - docs:start

## Development Server
Start dev server documentation (aka ng serve)

```bash
yarn run docs:start
```

open http://localhost:4200/
Empty file added packages/docs/scripts/.gitkeep
Empty file.
Empty file added packages/docs/tools/.gitkeep
Empty file.

0 comments on commit 96b5b92

Please sign in to comment.