Skip to content

Commit

Permalink
fix(build): change build folder structure in order to work properly w…
Browse files Browse the repository at this point in the history
…ith nx 13
  • Loading branch information
valorkin committed Dec 20, 2021
1 parent 2d8e918 commit 8bfbfa5
Show file tree
Hide file tree
Showing 33 changed files with 96 additions and 85 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on-push-or-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ env:
CACHE_NODE_MODULES_PATH: |
~/.npm
node_modules
node_modules/ngx-bootstrap
dist/ngx-bootstrap
CACHE_DIST_PATH: |
dist
node_modules/ngx-bootstrap
dist/ngx-bootstrap
jobs:
# one run
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
with:
path: |
dist
node_modules/ngx-bootstrap
dist/ngx-bootstrap
key: dist-${{ github.run_id }}
- run: npx ng build --runner cloud --prod --with-deps

Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
with:
path: |
dist
node_modules/ngx-bootstrap
dist/ngx-bootstrap
key: dist-${{ github.run_id }}

# - run: npm run scully
Expand Down Expand Up @@ -118,9 +118,9 @@ jobs:
with:
path: |
dist
node_modules/ngx-bootstrap
dist/ngx-bootstrap
key: dist-${{ github.run_id }}
- uses: JS-DevTools/npm-publish@v1
with:
package: "node_modules/ngx-bootstrap/package.json"
package: "dist/ngx-bootstrap/package.json"
token: ${{ secrets.NPM_TOKEN }}
63 changes: 34 additions & 29 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
"styles": [
"apps/ngx-bootstrap-docs/src/assets/css/style.scss",
"apps/ngx-bootstrap-docs/src/assets/css/prettify-angulario.css"
]
],
"stylePreprocessorOptions": {
"includePaths": [
"src/datepicker"
]
}
},
"configurations": {
"production": {
Expand Down Expand Up @@ -140,7 +145,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/accordion"
"dist/ngx-bootstrap/accordion"
],
"options": {
"tsConfig": "src/accordion/tsconfig.lib.json",
Expand Down Expand Up @@ -189,7 +194,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/alert"
"dist/ngx-bootstrap/alert"
],
"options": {
"tsConfig": "src/alert/tsconfig.lib.json",
Expand Down Expand Up @@ -238,7 +243,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/buttons"
"dist/ngx-bootstrap/buttons"
],
"options": {
"tsConfig": "src/buttons/tsconfig.lib.json",
Expand Down Expand Up @@ -280,7 +285,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/carousel"
"dist/ngx-bootstrap/carousel"
],
"options": {
"tsConfig": "src/carousel/tsconfig.lib.json",
Expand Down Expand Up @@ -329,7 +334,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/chronos"
"dist/ngx-bootstrap/chronos"
],
"options": {
"tsConfig": "src/chronos/tsconfig.lib.json",
Expand Down Expand Up @@ -371,7 +376,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/collapse"
"dist/ngx-bootstrap/collapse"
],
"options": {
"tsConfig": "src/collapse/tsconfig.lib.json",
Expand Down Expand Up @@ -413,7 +418,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/component-loader"
"dist/ngx-bootstrap/component-loader"
],
"options": {
"tsConfig": "src/component-loader/tsconfig.lib.json",
Expand Down Expand Up @@ -462,7 +467,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/datepicker"
"dist/ngx-bootstrap/datepicker"
],
"options": {
"tsConfig": "src/datepicker/tsconfig.lib.json",
Expand Down Expand Up @@ -511,7 +516,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/dropdown"
"dist/ngx-bootstrap/dropdown"
],
"options": {
"tsConfig": "src/dropdown/tsconfig.lib.json",
Expand Down Expand Up @@ -560,7 +565,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/focus-trap"
"dist/ngx-bootstrap/focus-trap"
],
"options": {
"tsConfig": "src/focus-trap/tsconfig.lib.json",
Expand Down Expand Up @@ -602,7 +607,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/locale"
"dist/ngx-bootstrap/locale"
],
"options": {
"tsConfig": "src/locale/tsconfig.lib.json",
Expand Down Expand Up @@ -651,7 +656,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/mini-ngrx"
"dist/ngx-bootstrap/mini-ngrx"
],
"options": {
"tsConfig": "src/mini-ngrx/tsconfig.lib.json",
Expand Down Expand Up @@ -693,7 +698,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/modal"
"dist/ngx-bootstrap/modal"
],
"options": {
"tsConfig": "src/modal/tsconfig.lib.json",
Expand Down Expand Up @@ -742,7 +747,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/pagination"
"dist/ngx-bootstrap/pagination"
],
"options": {
"tsConfig": "src/pagination/tsconfig.lib.json",
Expand Down Expand Up @@ -784,7 +789,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/popover"
"dist/ngx-bootstrap/popover"
],
"options": {
"tsConfig": "src/popover/tsconfig.lib.json",
Expand Down Expand Up @@ -833,7 +838,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/positioning"
"dist/ngx-bootstrap/positioning"
],
"options": {
"tsConfig": "src/positioning/tsconfig.lib.json",
Expand Down Expand Up @@ -882,7 +887,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/progressbar"
"dist/ngx-bootstrap/progressbar"
],
"options": {
"tsConfig": "src/progressbar/tsconfig.lib.json",
Expand Down Expand Up @@ -931,7 +936,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/rating"
"dist/ngx-bootstrap/rating"
],
"options": {
"tsConfig": "src/rating/tsconfig.lib.json",
Expand Down Expand Up @@ -973,7 +978,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/sortable"
"dist/ngx-bootstrap/sortable"
],
"options": {
"tsConfig": "src/sortable/tsconfig.lib.json",
Expand Down Expand Up @@ -1015,7 +1020,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/tabs"
"dist/ngx-bootstrap/tabs"
],
"options": {
"tsConfig": "src/tabs/tsconfig.lib.json",
Expand Down Expand Up @@ -1057,7 +1062,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/timepicker"
"dist/ngx-bootstrap/timepicker"
],
"options": {
"tsConfig": "src/timepicker/tsconfig.lib.json",
Expand Down Expand Up @@ -1106,7 +1111,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/tooltip"
"dist/ngx-bootstrap/tooltip"
],
"options": {
"tsConfig": "src/tooltip/tsconfig.lib.json",
Expand Down Expand Up @@ -1155,7 +1160,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/typeahead"
"dist/ngx-bootstrap/typeahead"
],
"options": {
"tsConfig": "src/typeahead/tsconfig.lib.json",
Expand Down Expand Up @@ -1204,7 +1209,7 @@
"build": {
"builder": "@nrwl/angular:package",
"outputs": [
"node_modules/ngx-bootstrap/utils"
"dist/ngx-bootstrap/utils"
],
"options": {
"tsConfig": "src/utils/tsconfig.lib.json",
Expand Down Expand Up @@ -1246,7 +1251,7 @@
"build": {
"builder": "@nrwl/workspace:run-commands",
"outputs": [
"node_modules/ngx-bootstrap"
"dist/ngx-bootstrap"
],
"options": {
"commands": [
Expand Down Expand Up @@ -1290,7 +1295,7 @@
"builder": "@nrwl/workspace:run-commands",
"outputs": [],
"options": {
"command": "npx sass src:node_modules/ngx-bootstrap --source-map"
"command": "npx sass src:dist/ngx-bootstrap --source-map"
}
},
"docs": {
Expand Down Expand Up @@ -1367,7 +1372,7 @@
"{options.outputPath}"
],
"options": {
"outputPath": "node_modules/ngx-bootstrap/schematics",
"outputPath": "dist/ngx-bootstrap/schematics",
"tsConfig": "src/schematics/tsconfig.lib.json",
"packageJson": "src/schematics/package.json",
"main": "src/schematics/src/ng-add/index.ts",
Expand All @@ -1389,7 +1394,7 @@
"build": {
"builder": "@nrwl/angular:ng-packagr-lite",
"outputs": [
"node_modules/ngx-bootstrap/accordion"
"dist/ngx-bootstrap/accordion"
],
"options": {
"tsConfig": "libs/doc-pages/accordion/tsconfig.lib.json",
Expand Down
2 changes: 1 addition & 1 deletion apps/ngx-bootstrap-docs/src/assets/css/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "sidebar";
@import "~ngx-bootstrap/datepicker/bs-datepicker";
@import "bs-datepicker";

/* HEADER */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h2 id="getting-started">
<pre class="prettyprint lang-js prettyprinted">
<span class="kwd">"styles"</span><span class="pun">: [</span>
"<span class="lit">./node_modules/bootstrap/dist/css/bootstrap.min.css</span>",
"<span class="lit">./node_modules/ngx-bootstrap/datepicker/bs-datepicker.css</span>",
"<span class="lit">./dist/ngx-bootstrap/datepicker/bs-datepicker.css</span>",
<span class="pln"> &hellip;</span>
<span class="pun">]</span>
</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const demoComponentContent: ContentSection[] = [
<li>Load it from CDN. Add <code>&lt;link rel="stylesheet"
href="https://unpkg.com/ngx-bootstrap/datepicker/bs-datepicker.css"&gt;</code> to your
<code>index.html</code></li>
<li>Load it from <code>node_modules/ngx-bootstrap/datepicker/bs-datepicker.css</code> via package bundler
<li>Load it from <code>dist/ngx-bootstrap/datepicker/bs-datepicker.css</code> via package bundler
like Angular CLI, if you're using one.
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/accordion/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../node_modules/ngx-bootstrap/accordion",
"dest": "../../dist/ngx-bootstrap/accordion",
"lib": {
"entryFile": "index.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion src/alert/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../node_modules/ngx-bootstrap/alert",
"dest": "../../dist/ngx-bootstrap/alert",
"lib": {
"entryFile": "index.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion src/buttons/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../node_modules/ngx-bootstrap/buttons",
"dest": "../../dist/ngx-bootstrap/buttons",
"lib": {
"entryFile": "index.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion src/carousel/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../node_modules/ngx-bootstrap/carousel",
"dest": "../../dist/ngx-bootstrap/carousel",
"lib": {
"entryFile": "index.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion src/chronos/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../node_modules/ngx-bootstrap/chronos",
"dest": "../../dist/ngx-bootstrap/chronos",
"lib": {
"entryFile": "index.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion src/collapse/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../node_modules/ngx-bootstrap/collapse",
"dest": "../../dist/ngx-bootstrap/collapse",
"lib": {
"entryFile": "index.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion src/component-loader/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../node_modules/ngx-bootstrap/component-loader",
"dest": "../../dist/ngx-bootstrap/component-loader",
"lib": {
"entryFile": "index.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion src/datepicker/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../node_modules/ngx-bootstrap/datepicker",
"dest": "../../dist/ngx-bootstrap/datepicker",
"lib": {
"entryFile": "index.ts"
},
Expand Down
Loading

0 comments on commit 8bfbfa5

Please sign in to comment.