mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[AAE-6455] Rename the structure to be compliant with nx (#2376)
* Rename the structure to be compliant with nx * Fix typo * Fix ts path
This commit is contained in:
parent
4d1dab60b2
commit
3cb6152ad7
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,7 +4,7 @@
|
|||||||
/dist
|
/dist
|
||||||
/tmp
|
/tmp
|
||||||
/.tmp
|
/.tmp
|
||||||
/src/.tmp
|
/app/.tmp
|
||||||
/out-tsc
|
/out-tsc
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
|
81
angular.json
81
angular.json
@ -4,31 +4,27 @@
|
|||||||
"newProjectRoot": "projects",
|
"newProjectRoot": "projects",
|
||||||
"projects": {
|
"projects": {
|
||||||
"content-ce": {
|
"content-ce": {
|
||||||
"root": "",
|
"root": "app",
|
||||||
"sourceRoot": "src",
|
"sourceRoot": "app/src",
|
||||||
"projectType": "application",
|
"projectType": "application",
|
||||||
"architect": {
|
"architect": {
|
||||||
"build": {
|
"build": {
|
||||||
"builder": "@angular-devkit/build-angular:browser",
|
"builder": "@angular-devkit/build-angular:browser",
|
||||||
"options": {
|
"options": {
|
||||||
"aot": true,
|
"aot": true,
|
||||||
"allowedCommonJsDependencies": [
|
|
||||||
"minimatch",
|
|
||||||
"minimatch-browser",
|
|
||||||
"moment-es6",
|
|
||||||
"superagent",
|
|
||||||
"event-emitter",
|
|
||||||
"brace-expansion",
|
|
||||||
"d"
|
|
||||||
],
|
|
||||||
"outputPath": "dist/content-ce",
|
"outputPath": "dist/content-ce",
|
||||||
"index": "src/index.html",
|
"index": "app/src/index.html",
|
||||||
"main": "src/main.ts",
|
"main": "app/src/main.ts",
|
||||||
"tsConfig": "src/tsconfig.app.json",
|
"tsConfig": "app/tsconfig.app.json",
|
||||||
"polyfills": "src/polyfills.ts",
|
"polyfills": "app/src/polyfills.ts",
|
||||||
|
"allowedCommonJsDependencies": [
|
||||||
|
"moment-es6",
|
||||||
|
"minimatch",
|
||||||
|
"zen-observable"
|
||||||
|
],
|
||||||
"stylePreprocessorOptions": {
|
"stylePreprocessorOptions": {
|
||||||
"includePaths": [
|
"includePaths": [
|
||||||
"src/app/ui"
|
"app/src/app/ui"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"assets": [
|
"assets": [
|
||||||
@ -37,10 +33,10 @@
|
|||||||
"input": ".",
|
"input": ".",
|
||||||
"output": "/"
|
"output": "/"
|
||||||
},
|
},
|
||||||
"src/assets",
|
"app/src/assets",
|
||||||
"src/favicon-96x96.png",
|
"app/src/favicon-96x96.png",
|
||||||
{
|
{
|
||||||
"input": "src/.tmp",
|
"input": "app/.tmp",
|
||||||
"output": "/",
|
"output": "/",
|
||||||
"glob": "app.config.json"
|
"glob": "app.config.json"
|
||||||
},
|
},
|
||||||
@ -96,10 +92,10 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"src/assets/fonts/material-icons/material-icons.css",
|
"app/src/assets/fonts/material-icons/material-icons.css",
|
||||||
"src/assets/fonts/muli/muli.css",
|
"app/src/assets/fonts/muli/muli.css",
|
||||||
"node_modules/cropperjs/dist/cropper.min.css",
|
"node_modules/cropperjs/dist/cropper.min.css",
|
||||||
"src/styles.scss"
|
"app/src/styles.scss"
|
||||||
],
|
],
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"node_modules/pdfjs-dist/build/pdf.js",
|
"node_modules/pdfjs-dist/build/pdf.js",
|
||||||
@ -120,8 +116,8 @@
|
|||||||
"buildOptimizer": true,
|
"buildOptimizer": true,
|
||||||
"fileReplacements": [
|
"fileReplacements": [
|
||||||
{
|
{
|
||||||
"replace": "src/environments/environment.ts",
|
"replace": "app/src/environments/environment.ts",
|
||||||
"with": "src/environments/environment.prod.ts"
|
"with": "app/src/environments/environment.prod.ts"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"budgets": [
|
"budgets": [
|
||||||
@ -146,8 +142,8 @@
|
|||||||
"release": {
|
"release": {
|
||||||
"fileReplacements": [
|
"fileReplacements": [
|
||||||
{
|
{
|
||||||
"replace": "src/environments/environment.ts",
|
"replace": "app/src/environments/environment.ts",
|
||||||
"with": "src/environments/environment.release.ts"
|
"with": "app/src/environments/environment.release.ts"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -169,8 +165,8 @@
|
|||||||
"buildOptimizer": true,
|
"buildOptimizer": true,
|
||||||
"fileReplacements": [
|
"fileReplacements": [
|
||||||
{
|
{
|
||||||
"replace": "src/environments/environment.ts",
|
"replace": "app/src/environments/environment.ts",
|
||||||
"with": "src/environments/environment.e2e.ts"
|
"with": "app/src/environments/environment.e2e.ts"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -181,8 +177,9 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"browserTarget": "content-ce:build",
|
"browserTarget": "content-ce:build",
|
||||||
"port": 4200,
|
"port": 4200,
|
||||||
"host": "0.0.0.0",
|
"disableHostCheck": true,
|
||||||
"proxyConfig": "src/proxy.conf.js"
|
"open": true,
|
||||||
|
"proxyConfig": "app/proxy.conf.js"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
@ -217,31 +214,31 @@
|
|||||||
"test": {
|
"test": {
|
||||||
"builder": "@angular-devkit/build-angular:karma",
|
"builder": "@angular-devkit/build-angular:karma",
|
||||||
"options": {
|
"options": {
|
||||||
"main": "src/test.ts",
|
"main": "app/src/test.ts",
|
||||||
"karmaConfig": "./karma.conf.js",
|
"karmaConfig": "./karma.conf.js",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"polyfills": "src/polyfills.ts",
|
"polyfills": "app/src/polyfills.ts",
|
||||||
"stylePreprocessorOptions": {
|
"stylePreprocessorOptions": {
|
||||||
"includePaths": [
|
"includePaths": [
|
||||||
"src/app/ui"
|
"app/src/app/ui"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"tsConfig": "src/tsconfig.spec.json",
|
"tsConfig": "app/tsconfig.spec.json",
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"node_modules/pdfjs-dist/build/pdf.js",
|
"node_modules/pdfjs-dist/build/pdf.js",
|
||||||
"node_modules/pdfjs-dist/web/pdf_viewer.js",
|
"node_modules/pdfjs-dist/web/pdf_viewer.js",
|
||||||
"node_modules/moment/min/moment.min.js"
|
"node_modules/moment/min/moment.min.js"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"src/assets/fonts/material-icons/material-icons.css",
|
"app/src/assets/fonts/material-icons/material-icons.css",
|
||||||
"src/assets/fonts/muli/muli.css",
|
"app/src/assets/fonts/muli/muli.css",
|
||||||
"src/styles.scss"
|
"app/src/styles.scss"
|
||||||
],
|
],
|
||||||
"assets": [
|
"assets": [
|
||||||
"src/assets",
|
"app/src/assets",
|
||||||
"src/favicon-96x96.png",
|
"app/src/favicon-96x96.png",
|
||||||
{
|
{
|
||||||
"input": "src/.tmp",
|
"input": "app/.tmp",
|
||||||
"output": "/",
|
"output": "/",
|
||||||
"glob": "app.config.json"
|
"glob": "app.config.json"
|
||||||
},
|
},
|
||||||
@ -272,8 +269,8 @@
|
|||||||
"builder": "@angular-devkit/build-angular:tslint",
|
"builder": "@angular-devkit/build-angular:tslint",
|
||||||
"options": {
|
"options": {
|
||||||
"tsConfig": [
|
"tsConfig": [
|
||||||
"src/tsconfig.app.json",
|
"app/tsconfig.app.json",
|
||||||
"src/tsconfig.spec.json"
|
"app/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"**/node_modules/**",
|
"**/node_modules/**",
|
||||||
|
12
app/.browserslistrc
Normal file
12
app/.browserslistrc
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
|
||||||
|
# For additional information regarding the format and rule options, please see:
|
||||||
|
# https://github.com/browserslist/browserslist#queries
|
||||||
|
|
||||||
|
# You can see what browsers were selected by your queries by running:
|
||||||
|
# npx browserslist
|
||||||
|
|
||||||
|
> 0.5%
|
||||||
|
last 2 versions
|
||||||
|
Firefox ESR
|
||||||
|
not dead
|
||||||
|
not IE 9-11 # For IE 9-11 support, remove 'not'.
|
33
app/project.metadata.json
Normal file
33
app/project.metadata.json
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"standalone": {
|
||||||
|
"projectRoot": ".."
|
||||||
|
},
|
||||||
|
"deploy": {
|
||||||
|
"releaseVersion": "",
|
||||||
|
"tagAliases": [],
|
||||||
|
"tagVersionSuffix": ""
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"prebuild": [
|
||||||
|
{
|
||||||
|
"command": "./scripts/local/check-for-extra-node-modules"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "mkdir",
|
||||||
|
"args": [
|
||||||
|
"-p",
|
||||||
|
"$THIS_PROJECT_ROOT_PATH/.tmp"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "cp",
|
||||||
|
"args": [
|
||||||
|
"$THIS_PROJECT_SOURCE_ROOT_PATH/app.config.json.tpl",
|
||||||
|
"$THIS_PROJECT_ROOT_PATH/.tmp/app.config.json"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"postinstall": [
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@ -30,7 +30,7 @@ import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testin
|
|||||||
import { ContentActionRef } from '@alfresco/adf-extensions';
|
import { ContentActionRef } from '@alfresco/adf-extensions';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { AppTestingModule } from '../../testing/app-testing.module';
|
import { AppTestingModule } from '../../testing/app-testing.module';
|
||||||
import { AppExtensionService } from '../../../../projects/aca-shared/src/lib/services/app.extension.service';
|
import { AppExtensionService } from '@alfresco/aca-shared';
|
||||||
import { CoreModule } from '@alfresco/adf-core';
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
import { AppSearchInputModule } from '../search/search-input.module';
|
import { AppSearchInputModule } from '../search/search-input.module';
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user