mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[ADF-4857] Be able to run ng build content-service (#5183)
* Be able to build conten with ng build content-service * fix tslint * The translate module is necessary * Rollback the build commands * Rollback * Remove wrong imports * Trigger the build
This commit is contained in:
parent
9fa1db063a
commit
6331979baa
@ -601,7 +601,7 @@
|
||||
},
|
||||
"content-services": {
|
||||
"root": "lib/content-services",
|
||||
"sourceRoot": "lib/content-services",
|
||||
"sourceRoot": "lib/content-services/src",
|
||||
"projectType": "library",
|
||||
"prefix": "adf",
|
||||
"architect": {
|
||||
@ -620,7 +620,7 @@
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"main": "lib/content-services/test.ts",
|
||||
"main": "lib/content-services/src/test.ts",
|
||||
"tsConfig": "lib/content-services/tsconfig.spec.json",
|
||||
"karmaConfig": "lib/content-services/karma.conf.js",
|
||||
"codeCoverage": true,
|
||||
@ -632,7 +632,7 @@
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"lib/content-services/tsconfig.lib.json",
|
||||
"lib/content-services/tsconfig.lib.json"
|
||||
"lib/content-services/tsconfig.spec.json"
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules/**"
|
||||
|
@ -4,7 +4,7 @@
|
||||
@import './app/components/process-service/process-service.component.scss';
|
||||
|
||||
|
||||
@import '../../lib/content-services/styles/index';
|
||||
@import '../../lib/content-services/src/lib/styles/index';
|
||||
@import '../../lib/process-services/src/lib/styles/index';
|
||||
@import '../../lib/insights/src/lib/styles/index';
|
||||
@import '../../lib/core/styles/index';
|
||||
|
@ -1,6 +1,6 @@
|
||||
var Bundler = require('scss-bundle').Bundler;
|
||||
var writeFileSync = require('fs-extra').writeFileSync;
|
||||
|
||||
new Bundler().Bundle('./lib/content-services/styles/_index.scss', '**/*.scss').then(result => {
|
||||
new Bundler().Bundle('./lib/content-services/src/lib/styles/_index.scss', '**/*.scss').then(result => {
|
||||
writeFileSync('./lib/dist/content-services/_theming.scss', result.bundledContent);
|
||||
});
|
||||
|
@ -14,7 +14,7 @@ var mkdirpSync = require('fs-extra').mkdirpSync;
|
||||
writeFileSync('./lib/dist/process-services/_theming.scss', result.bundledContent);
|
||||
});
|
||||
|
||||
new Bundler().Bundle('./lib/content-services/styles/_index.scss', '**/*.scss').then(result => {
|
||||
new Bundler().Bundle('./lib/content-services/src/lib/styles/_index.scss', '**/*.scss').then(result => {
|
||||
writeFileSync('./lib/dist/content-services/_theming.scss', result.bundledContent);
|
||||
});
|
||||
|
||||
|
@ -15,22 +15,4 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export * from './directives/index';
|
||||
export * from './social/index';
|
||||
export * from './tag/index';
|
||||
export * from './webscript/index';
|
||||
export * from './document-list/index';
|
||||
export * from './upload/index';
|
||||
export * from './search/index';
|
||||
export * from './site-dropdown/index';
|
||||
export * from './breadcrumb/index';
|
||||
export * from './version-manager/index';
|
||||
export * from './content-node-selector/index';
|
||||
export * from './dialogs/index';
|
||||
export * from './folder-directive/index';
|
||||
export * from './content-metadata/index';
|
||||
export * from './permission-manager/index';
|
||||
export * from './content-node-share/index';
|
||||
export * from './tree-view/index';
|
||||
|
||||
export * from './content.module';
|
||||
export * from './src/public-api';
|
||||
|
@ -28,8 +28,8 @@ module.exports = function (config) {
|
||||
{pattern: 'node_modules/pdfjs-dist/build/pdf.worker.js.map', included: false, served: true, watched: false},
|
||||
{pattern: 'node_modules/pdfjs-dist/build/pdf.js.map', included: false, served: true, watched: false},
|
||||
{pattern: 'node_modules/pdfjs-dist/web/pdf_viewer.js.map', included: false, served: true, watched: false},
|
||||
{pattern: 'lib/content-services/i18n/**/en.json', included: false, served: true, watched: false},
|
||||
{pattern: 'lib/content-services//assets/images/**/*.svg', included: false, served: true, watched: false},
|
||||
{pattern: 'lib/content-services/src/lib/i18n/**/en.json', included: false, served: true, watched: false},
|
||||
{pattern: 'lib/content-services/src/lib/assets/images/**/*.svg', included: false, served: true, watched: false},
|
||||
{pattern: 'lib/core/assets/images/ft_ic_folder.svg', included: false, served: true, watched: false},
|
||||
{pattern: 'lib/core/i18n/**/en.json', included: false, served: true, watched: false},
|
||||
{pattern: 'lib/content-services/**/*.ts', included: false, served: true, watched: false},
|
||||
@ -39,10 +39,10 @@ module.exports = function (config) {
|
||||
frameworks: ['jasmine-ajax', 'jasmine', '@angular-devkit/build-angular'],
|
||||
|
||||
proxies: {
|
||||
'/base/assets/': '/base/lib/content-services/assets/',
|
||||
'/base/assets/': '/base/lib/content-services/src/lib/assets/',
|
||||
'/base/lib/content-services/assets/images/ft_ic_folder.svg': '/base/lib/core/assets/images/ft_ic_folder.svg',
|
||||
'/assets/': '/base/lib/content-services/assets/',
|
||||
'/assets/adf-content-services/i18n/en.json': '/base/lib/content-services/i18n/en.json',
|
||||
'/assets/': '/base/lib/content-services/src/lib/assets/',
|
||||
'/assets/adf-content-services/i18n/en.json': '/base/lib/content-services/src/lib/i18n/en.json',
|
||||
'/assets/adf-core/i18n/en.json': '/base/lib/core/i18n/en.json',
|
||||
'/assets/adf-core/i18n/en-GB.json': '/base/lib/core/i18n/en.json',
|
||||
'/app.config.json': '/base/lib/config/app.config.json',
|
||||
|
@ -1,12 +1,9 @@
|
||||
{
|
||||
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
|
||||
"workingDirectory" : "./ng_work",
|
||||
"src": "../content-services/",
|
||||
"dest": "../dist/content-services/",
|
||||
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
||||
"dest": "../dist/content-services",
|
||||
"lib": {
|
||||
"languageLevel": [ "dom", "es2016" ],
|
||||
"comments" : "none",
|
||||
"entryFile": "./public-api.ts",
|
||||
"languageLevel": [ "dom", "es2017" ],
|
||||
"entryFile": "src/public-api.ts",
|
||||
"flatModuleFile": "adf-content-services",
|
||||
"umdModuleIds": {
|
||||
"@alfresco/js-api": "@alfresco/js-api",
|
||||
|
@ -1,18 +0,0 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2019 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export * from './index';
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
@ -27,7 +27,7 @@ import { CoreModule } from '@alfresco/adf-core';
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
CoreModule.forChild()
|
||||
CoreModule
|
||||
],
|
||||
exports: [
|
||||
BreadcrumbComponent,
|
@ -28,7 +28,7 @@ import { ContentMetadataCardComponent } from './components/content-metadata-card
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
FlexLayoutModule,
|
||||
CoreModule.forChild()
|
||||
CoreModule
|
||||
],
|
||||
exports: [
|
||||
ContentMetadataComponent,
|
@ -32,7 +32,7 @@ import { NameLocationCellComponent } from './name-location-cell/name-location-ce
|
||||
imports: [
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
CoreModule.forChild(),
|
||||
CoreModule,
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
SitesDropdownModule,
|
@ -18,8 +18,7 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { NameLocationCellComponent } from './name-location-cell.component';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { DataRow } from '@alfresco/adf-core';
|
||||
import { setupTestBed } from '../../../core/testing/setupTestBed';
|
||||
import { DataRow, setupTestBed } from '@alfresco/adf-core';
|
||||
|
||||
describe('NameLocationCellComponent', () => {
|
||||
let component: NameLocationCellComponent;
|
@ -27,8 +27,8 @@ import {
|
||||
RenditionsService,
|
||||
AppConfigService
|
||||
} from '@alfresco/adf-core';
|
||||
import { CoreTestingModule } from '../../core/testing/core.testing.module';
|
||||
import { AppConfigServiceMock } from '../../core/mock/app-config.service.mock';
|
||||
import { CoreModule, AppConfigServiceMock } from '@alfresco/adf-core';
|
||||
|
||||
import { ContentNodeShareModule } from './content-node-share.module';
|
||||
import { ShareDialogComponent } from './content-node-share.dialog';
|
||||
import moment from 'moment-es6';
|
||||
@ -49,7 +49,7 @@ describe('ShareDialogComponent', () => {
|
||||
setupTestBed({
|
||||
imports: [
|
||||
NoopAnimationsModule,
|
||||
CoreTestingModule,
|
||||
CoreModule.forRoot(),
|
||||
ContentNodeShareModule
|
||||
],
|
||||
providers: [
|
@ -24,7 +24,7 @@ import { NodeSharedDirective } from './content-node-share.directive';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule.forChild(),
|
||||
CoreModule,
|
||||
CommonModule,
|
||||
MaterialModule
|
||||
],
|
@ -42,7 +42,7 @@ import { TreeViewModule } from './tree-view/tree-view.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule.forChild(),
|
||||
CoreModule,
|
||||
SocialModule,
|
||||
TagModule,
|
||||
CommonModule,
|
||||
@ -89,7 +89,7 @@ export class ContentModuleLazy {}
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule.forChild(),
|
||||
CoreModule,
|
||||
SocialModule,
|
||||
TagModule,
|
||||
CommonModule,
|
@ -32,7 +32,7 @@ import { LibraryDialogComponent } from './library/library.dialog';
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
CoreModule.forChild(),
|
||||
CoreModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
MatMomentDatetimeModule,
|
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