|
3 | 3 | "version": "0.0.0", |
4 | 4 | "scripts": { |
5 | 5 | "prepare": "husky install", |
6 | | - "postinstall": "npm run config:dev", |
| 6 | + "postinstall": "npm run config:dev & npm run copy-css", |
7 | 7 | "ng": "ng", |
8 | 8 | "prestart": "npm run config:dev && ng build", |
9 | 9 | "start": "ng serve sample-app", |
|
12 | 12 | "start:dev": "rm -rf dist & npm run watch & (wait-on dist && ng serve sample-app)", |
13 | 13 | "start:dev:customizations-example": "rm -rf dist & npm run watch & (wait-on dist && ng serve customizations-example)", |
14 | 14 | "build": "ng build", |
15 | | - "build:prod": "ng build --configuration production", |
| 15 | + "build:prod": "npm run copy-css && ng build --configuration production", |
16 | 16 | "watch": "ng build --watch --configuration development", |
17 | 17 | "test": "rm -rf dist & npm run watch & (wait-on dist && ng run stream-chat-angular:test)", |
18 | 18 | "test:ci": "ng run stream-chat-angular:test --browsers ChromeHeadlessCustom --watch false", |
|
31 | 31 | "generate-docs": "npm run typedoc:services && npm run typedoc:components && npm run copy-docs", |
32 | 32 | "typedoc:services": "typedoc --cleanOutputDir true --excludeConstructors true --hideBreadcrumbs true --hideInPageTOC true --excludePrivate true --out temp-service-docs --exclude '!**/*service.ts' --excludeNotDocumented --tsconfig projects/stream-chat-angular/tsconfig.lib.json projects/stream-chat-angular/src/public-api.ts", |
33 | 33 | "typedoc:components": "typedoc --cleanOutputDir true --excludeConstructors true --sort source-order --hideBreadcrumbs true --hideInPageTOC true --excludePrivate true --excludeNotDocumented --out temp-component-docs --exclude '!**/*component.ts' --tsconfig projects/stream-chat-angular/tsconfig.lib.json projects/stream-chat-angular/src/public-api.ts", |
34 | | - "copy-docs": "ts-node copy-generated-service-docs.ts & (ts-node remove-generated-component-docs-content && ts-node copy-generated-component-docs.ts)" |
| 34 | + "copy-docs": "ts-node copy-generated-service-docs.ts & (ts-node remove-generated-component-docs-content && ts-node copy-generated-component-docs.ts)", |
| 35 | + "copy-css": "copyfiles --up 4 \"node_modules/@stream-io/stream-chat-css/dist/**/*\" projects/stream-chat-angular/src/assets/styles" |
35 | 36 | }, |
36 | 37 | "lint-staged": { |
37 | 38 | "**/*": [ |
|
121 | 122 | "@types/jasmine": "~3.8.0", |
122 | 123 | "@typescript-eslint/eslint-plugin": "4.28.2", |
123 | 124 | "@typescript-eslint/parser": "4.28.2", |
| 125 | + "copyfiles": "^2.4.1", |
124 | 126 | "cypress": "8.4.0", |
125 | 127 | "eslint": "^7.32.0", |
126 | 128 | "eslint-config-prettier": "^8.3.0", |
|
0 commit comments