Skip to content

Commit 992cfeb

Browse files
chore: fix folder structure (#428)
* fix folder structure * fix image path
1 parent d74034b commit 992cfeb

27 files changed

+18
-16
lines changed

.github/workflows/npm-publish.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ jobs:
3030
node-version: 16
3131
registry-url: https://registry.npmjs.org/
3232
scope: '@ngu'
33-
- run: yarn install
34-
- run: yarn nx run-many --target=build --all
35-
- name: Run Publish
36-
working-directory: dist/libs/ngu/carousel
37-
run: npm publish --access=public
33+
- name: Build and Publish
34+
run: |
35+
yarn install
36+
yarn nx run-many --target=build --all
37+
cd dist/libs/ngu/carousel
38+
npm publish --access=public
39+
shell: bash
3840
env:
3941
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
4042

apps/ngu-carousel-example/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"inlineStyleLanguage": "scss",
2424
"assets": [
2525
"apps/ngu-carousel-example/src/favicon.ico",
26-
"apps/ngu-carousel-example/src/src/assets",
26+
"apps/ngu-carousel-example/src/assets",
2727
"apps/ngu-carousel-example/src/src/_redirects"
2828
],
2929
"styles": [

libs/@ngu/carousel/.eslintrc.json libs/ngu/carousel/.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"files": ["*.ts"],
77
"parserOptions": {
8-
"project": ["libs/@ngu/carousel/tsconfig.*?.json"],
8+
"project": ["libs/ngu/carousel/tsconfig.*?.json"],
99
"createDefaultProgram": true
1010
},
1111
"rules": {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

libs/@ngu/carousel/project.json libs/ngu/carousel/project.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
{
22
"name": "@ngu/carousel",
33
"projectType": "library",
4-
"sourceRoot": "libs/@ngu/carousel/src",
4+
"sourceRoot": "libs/ngu/carousel/src",
55
"prefix": "ngu",
66
"targets": {
77
"build": {
88
"executor": "@nrwl/angular:package",
99
"options": {
10-
"project": "libs/@ngu/carousel/ng-package.json"
10+
"project": "libs/ngu/carousel/ng-package.json"
1111
},
1212
"configurations": {
1313
"production": {
14-
"tsConfig": "libs/@ngu/carousel/tsconfig.lib.prod.json"
14+
"tsConfig": "libs/ngu/carousel/tsconfig.lib.prod.json"
1515
},
1616
"development": {
17-
"tsConfig": "libs/@ngu/carousel/tsconfig.lib.json"
17+
"tsConfig": "libs/ngu/carousel/tsconfig.lib.json"
1818
}
1919
},
2020
"defaultConfiguration": "production"
2121
},
2222
"test": {
2323
"executor": "@angular-devkit/build-angular:karma",
2424
"options": {
25-
"main": "libs/@ngu/carousel/src/test.ts",
26-
"tsConfig": "libs/@ngu/carousel/tsconfig.spec.json",
27-
"karmaConfig": "libs/@ngu/carousel/karma.conf.js"
25+
"main": "libs/ngu/carousel/src/test.ts",
26+
"tsConfig": "libs/ngu/carousel/tsconfig.spec.json",
27+
"karmaConfig": "libs/ngu/carousel/karma.conf.js"
2828
}
2929
},
3030
"lint": {
3131
"executor": "@nrwl/linter:eslint",
3232
"options": {
33-
"lintFilePatterns": ["libs/@ngu/carousel/**/*.ts", "libs/@ngu/carousel/**/*.html"]
33+
"lintFilePatterns": ["libs/ngu/carousel/**/*.ts", "libs/ngu/carousel/**/*.html"]
3434
}
3535
}
3636
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tsconfig.base.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"module": "es2020",
1818
"lib": ["es2020", "dom"],
1919
"paths": {
20-
"@ngu/carousel": ["libs/@ngu/carousel/src/public-api"]
20+
"@ngu/carousel": ["libs/ngu/carousel/src/public-api"]
2121
},
2222
"useDefineForClassFields": false,
2323
"rootDir": "."

0 commit comments

Comments
 (0)