Skip to content

Commit 1e2ecde

Browse files
committed
auto generate barrels, and fix resulting issues
1 parent ea1027e commit 1e2ecde

File tree

129 files changed

+1615
-654
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+1615
-654
lines changed

.barrelsby.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"directory": [
3+
"projects/dspace/config/src/lib/",
4+
"projects/dspace/core/src/lib/",
5+
"projects/dspace/utils/src/lib/"
6+
],
7+
"delete": true,
8+
"exclude": [
9+
"^.*\\.spec\\.ts$"
10+
],
11+
"location": "all",
12+
"structure": "flat",
13+
"singleQuotes": true,
14+
"noSemicolon": false
15+
}

angular.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"index": "src/index.html",
3737
"main": "src/main.browser.ts",
3838
"polyfills": "src/polyfills.ts",
39-
"tsConfig": "tsconfig.app.json",
39+
"tsConfig": "tsconfig.browser.json",
4040
"aot": true,
4141
"assets": [
4242
"src/assets",
@@ -82,8 +82,8 @@
8282
"with": "src/environments/environment.production.ts"
8383
},
8484
{
85-
"replace": "projects/dspace/config/src/lib/store/devtools.ts",
86-
"with": "projects/dspace/config/src/lib/store/devtools.prod.ts"
85+
"replace": "src/app/ngrx-devtools/devtools.ts",
86+
"with": "src/app/ngrx-devtools/devtools.prod.ts"
8787
}
8888
],
8989
"optimization": true,
@@ -211,8 +211,8 @@
211211
"with": "src/environments/environment.production.ts"
212212
},
213213
{
214-
"replace": "projects/dspace/config/src/lib/store/devtools.ts",
215-
"with": "projects/dspace/config/src/lib/store/devtools.prod.ts"
214+
"replace": "src/app/ngrx-devtools/devtools.ts",
215+
"with": "src/app/ngrx-devtools/devtools.prod.ts"
216216
}
217217
]
218218
}

package-lock.json

Lines changed: 259 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
"serve": "ts-node --project ./tsconfig.ts-node.json scripts/serve.ts",
1414
"serve:ssr": "node dist/server/main",
1515
"analyze": "webpack-bundle-analyzer dist/browser/stats.json",
16-
"build": "ng build --configuration development",
16+
"build": "npm run generate:barrels && ng build --configuration development",
1717
"build:stats": "ng build --stats-json",
18-
"build:prod": "cross-env NODE_ENV=production npm run build:ssr",
18+
"build:prod": "npm run generate:barrels && cross-env NODE_ENV=production npm run build:ssr",
1919
"build:ssr": "ng build --configuration production && ng run dspace-angular:server:production",
2020
"build:lint": "rimraf 'lint/dist/**/*.js' 'lint/dist/**/*.js.map' && tsc -b lint/tsconfig.json",
21+
"generate:barrels": "barrelsby -c .barrelsby.json",
2122
"test": "ng test --source-map=true --watch=false --configuration test",
2223
"test:watch": "nodemon --exec \"ng test --source-map=true --watch=true --configuration test\"",
2324
"test:headless": "ng test --source-map=true --watch=false --configuration test --browsers=ChromeHeadless --code-coverage",
@@ -196,6 +197,7 @@
196197
"@typescript-eslint/rule-tester": "^7.18.0",
197198
"@typescript-eslint/utils": "^7.18.0",
198199
"axe-core": "^4.10.2",
200+
"barrelsby": "^2.8.1",
199201
"compression-webpack-plugin": "^9.2.0",
200202
"copy-webpack-plugin": "^6.4.1",
201203
"cross-env": "^7.0.3",

0 commit comments

Comments
 (0)