[ADF-4859] Make sure the ng build insight works (#5141)

* Make sure the ng build insight works

* Fix styles
This commit is contained in:
Maurizio Vitale
2019-10-10 09:57:20 +01:00
committed by Denys Vuika
parent 93419ffa7b
commit 6860ab73ab
262 changed files with 26 additions and 66 deletions

View File

@@ -734,7 +734,7 @@
"build": { "build": {
"builder": "@angular-devkit/build-ng-packagr:build", "builder": "@angular-devkit/build-ng-packagr:build",
"options": { "options": {
"tsConfig": "lib/extensions/tsconfig.lib.json", "tsConfig": "lib/insights/tsconfig.lib.json",
"project": "lib/insights/ng-package.json" "project": "lib/insights/ng-package.json"
}, },
"configurations": { "configurations": {
@@ -746,8 +746,8 @@
"test": { "test": {
"builder": "@angular-devkit/build-angular:karma", "builder": "@angular-devkit/build-angular:karma",
"options": { "options": {
"main": "lib/insights/test.ts", "main": "lib/insights/src/test.ts",
"tsConfig": "lib/extensions/tsconfig.spec.json", "tsConfig": "lib/insights/tsconfig.spec.json",
"karmaConfig": "lib/insights/karma.conf.js", "karmaConfig": "lib/insights/karma.conf.js",
"codeCoverage": true, "codeCoverage": true,
"sourceMap": true "sourceMap": true
@@ -758,7 +758,7 @@
"options": { "options": {
"tsConfig": [ "tsConfig": [
"lib/insights/tsconfig.lib.json", "lib/insights/tsconfig.lib.json",
"lib/insights/tsconfig.lib.json" "lib/insights/tsconfig.spec.json"
], ],
"exclude": [ "exclude": [
"**/node_modules/**" "**/node_modules/**"

View File

@@ -1,6 +1,6 @@
var Bundler = require('scss-bundle').Bundler; var Bundler = require('scss-bundle').Bundler;
var writeFileSync = require('fs-extra').writeFileSync; var writeFileSync = require('fs-extra').writeFileSync;
new Bundler().Bundle('./lib/insights/styles/_index.scss', '**/*.scss').then(result => { new Bundler().Bundle('./lib/insights/src/lib/styles/_index.scss', '**/*.scss').then(result => {
writeFileSync('./lib/dist/insights/_theming.scss', result.bundledContent); writeFileSync('./lib/dist/insights/_theming.scss', result.bundledContent);
}); });

View File

@@ -6,7 +6,7 @@ var mkdirpSync = require('fs-extra').mkdirpSync;
writeFileSync('./lib/dist/core/_theming.scss', result.bundledContent); writeFileSync('./lib/dist/core/_theming.scss', result.bundledContent);
}); });
new Bundler().Bundle('./lib/insights/styles/_index.scss', '**/*.scss').then(result => { new Bundler().Bundle('./lib/insights/src/lib/styles/_index.scss', '**/*.scss').then(result => {
writeFileSync('./lib/dist/insights/_theming.scss', result.bundledContent); writeFileSync('./lib/dist/insights/_theming.scss', result.bundledContent);
}); });

View File

@@ -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 './public-api';

View File

@@ -15,7 +15,4 @@
* limitations under the License. * limitations under the License.
*/ */
export * from './analytics-process/index'; export * from './src/public-api';
export * from './diagram/index';
export * from './insights.module';

View File

@@ -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 './public-api';

View File

@@ -1,12 +1,9 @@
{ {
"$schema": "./node_modules/ng-packagr/ng-package.schema.json", "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"workingDirectory" : "./ng_work",
"src": "../insights/",
"dest": "../dist/insights/", "dest": "../dist/insights/",
"lib": { "lib": {
"languageLevel": [ "dom", "es2016" ], "languageLevel": [ "dom", "es2017" ],
"comments" : "none", "entryFile": "src/public-api.ts",
"entryFile": "./public-api.ts",
"flatModuleFile": "adf-insights", "flatModuleFile": "adf-insights",
"umdModuleIds": { "umdModuleIds": {
"@alfresco/js-api": "@alfresco/js-api", "@alfresco/js-api": "@alfresco/js-api",

View File

@@ -28,7 +28,6 @@
"@alfresco/js-api": "3.5.0", "@alfresco/js-api": "3.5.0",
"rxjs": ">=6.2.2", "rxjs": ">=6.2.2",
"@alfresco/adf-core": "3.5.0", "@alfresco/adf-core": "3.5.0",
"@alfresco/adf-content-services": "3.5.0",
"@ngx-translate/core": ">=11.0.0", "@ngx-translate/core": ">=11.0.0",
"chart.js": ">=2.5.0", "chart.js": ">=2.5.0",
"core-js": ">=2.5.4", "core-js": ">=2.5.4",

View File

@@ -47,7 +47,7 @@ import { FlexLayoutModule } from '@angular/flex-layout';
DiagramsModule, DiagramsModule,
MaterialModule, MaterialModule,
FlexLayoutModule, FlexLayoutModule,
CoreModule.forChild() CoreModule
], ],
declarations: [ declarations: [
AnalyticsComponent, AnalyticsComponent,

Some files were not shown because too many files have changed in this diff Show More