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
|
||||
/tmp
|
||||
/.tmp
|
||||
/src/.tmp
|
||||
/app/.tmp
|
||||
/out-tsc
|
||||
|
||||
# dependencies
|
||||
|
81
angular.json
81
angular.json
@ -4,31 +4,27 @@
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"content-ce": {
|
||||
"root": "",
|
||||
"sourceRoot": "src",
|
||||
"root": "app",
|
||||
"sourceRoot": "app/src",
|
||||
"projectType": "application",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"aot": true,
|
||||
"allowedCommonJsDependencies": [
|
||||
"minimatch",
|
||||
"minimatch-browser",
|
||||
"moment-es6",
|
||||
"superagent",
|
||||
"event-emitter",
|
||||
"brace-expansion",
|
||||
"d"
|
||||
],
|
||||
"outputPath": "dist/content-ce",
|
||||
"index": "src/index.html",
|
||||
"main": "src/main.ts",
|
||||
"tsConfig": "src/tsconfig.app.json",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"index": "app/src/index.html",
|
||||
"main": "app/src/main.ts",
|
||||
"tsConfig": "app/tsconfig.app.json",
|
||||
"polyfills": "app/src/polyfills.ts",
|
||||
"allowedCommonJsDependencies": [
|
||||
"moment-es6",
|
||||
"minimatch",
|
||||
"zen-observable"
|
||||
],
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": [
|
||||
"src/app/ui"
|
||||
"app/src/app/ui"
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
@ -37,10 +33,10 @@
|
||||
"input": ".",
|
||||
"output": "/"
|
||||
},
|
||||
"src/assets",
|
||||
"src/favicon-96x96.png",
|
||||
"app/src/assets",
|
||||
"app/src/favicon-96x96.png",
|
||||
{
|
||||
"input": "src/.tmp",
|
||||
"input": "app/.tmp",
|
||||
"output": "/",
|
||||
"glob": "app.config.json"
|
||||
},
|
||||
@ -96,10 +92,10 @@
|
||||
}
|
||||
],
|
||||
"styles": [
|
||||
"src/assets/fonts/material-icons/material-icons.css",
|
||||
"src/assets/fonts/muli/muli.css",
|
||||
"app/src/assets/fonts/material-icons/material-icons.css",
|
||||
"app/src/assets/fonts/muli/muli.css",
|
||||
"node_modules/cropperjs/dist/cropper.min.css",
|
||||
"src/styles.scss"
|
||||
"app/src/styles.scss"
|
||||
],
|
||||
"scripts": [
|
||||
"node_modules/pdfjs-dist/build/pdf.js",
|
||||
@ -120,8 +116,8 @@
|
||||
"buildOptimizer": true,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
"replace": "app/src/environments/environment.ts",
|
||||
"with": "app/src/environments/environment.prod.ts"
|
||||
}
|
||||
],
|
||||
"budgets": [
|
||||
@ -146,8 +142,8 @@
|
||||
"release": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.release.ts"
|
||||
"replace": "app/src/environments/environment.ts",
|
||||
"with": "app/src/environments/environment.release.ts"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -169,8 +165,8 @@
|
||||
"buildOptimizer": true,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.e2e.ts"
|
||||
"replace": "app/src/environments/environment.ts",
|
||||
"with": "app/src/environments/environment.e2e.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -181,8 +177,9 @@
|
||||
"options": {
|
||||
"browserTarget": "content-ce:build",
|
||||
"port": 4200,
|
||||
"host": "0.0.0.0",
|
||||
"proxyConfig": "src/proxy.conf.js"
|
||||
"disableHostCheck": true,
|
||||
"open": true,
|
||||
"proxyConfig": "app/proxy.conf.js"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
@ -217,31 +214,31 @@
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"main": "src/test.ts",
|
||||
"main": "app/src/test.ts",
|
||||
"karmaConfig": "./karma.conf.js",
|
||||
"sourceMap": true,
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"polyfills": "app/src/polyfills.ts",
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": [
|
||||
"src/app/ui"
|
||||
"app/src/app/ui"
|
||||
]
|
||||
},
|
||||
"tsConfig": "src/tsconfig.spec.json",
|
||||
"tsConfig": "app/tsconfig.spec.json",
|
||||
"scripts": [
|
||||
"node_modules/pdfjs-dist/build/pdf.js",
|
||||
"node_modules/pdfjs-dist/web/pdf_viewer.js",
|
||||
"node_modules/moment/min/moment.min.js"
|
||||
],
|
||||
"styles": [
|
||||
"src/assets/fonts/material-icons/material-icons.css",
|
||||
"src/assets/fonts/muli/muli.css",
|
||||
"src/styles.scss"
|
||||
"app/src/assets/fonts/material-icons/material-icons.css",
|
||||
"app/src/assets/fonts/muli/muli.css",
|
||||
"app/src/styles.scss"
|
||||
],
|
||||
"assets": [
|
||||
"src/assets",
|
||||
"src/favicon-96x96.png",
|
||||
"app/src/assets",
|
||||
"app/src/favicon-96x96.png",
|
||||
{
|
||||
"input": "src/.tmp",
|
||||
"input": "app/.tmp",
|
||||
"output": "/",
|
||||
"glob": "app.config.json"
|
||||
},
|
||||
@ -272,8 +269,8 @@
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"src/tsconfig.app.json",
|
||||
"src/tsconfig.spec.json"
|
||||
"app/tsconfig.app.json",
|
||||
"app/tsconfig.spec.json"
|
||||
],
|
||||
"exclude": [
|
||||
"**/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 { Store } from '@ngrx/store';
|
||||
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 { 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