diff --git a/ng2-components/README.md b/ng2-components/README.md
index b1b15a1c66..92e0da61b7 100644
--- a/ng2-components/README.md
+++ b/ng2-components/README.md
@@ -21,20 +21,19 @@
### Components
-- [adf-card-view](ng2-alfresco-core/README.md)
- [adf-accordion-group](ng2-alfresco-core/README.md)
- [adf-accordion](ng2-alfresco-core/README.md)
+- [adf-card-view](ng2-alfresco-core/README.md)
- [adf-toolbar](ng2-alfresco-core/README.md)
### Directives
-- [context-menu](ng2-alfresco-core/README.md)
-- [alfresco-mdl-textfield](ng2-alfresco-core/README.md)
-- [alfresco-mdl-menu](ng2-alfresco-core/README.md)
-- [alfresco-mdl-button](ng2-alfresco-core/README.md)
-- [mdl](ng2-alfresco-core/README.md)
+- [adf-context-menu](ng2-alfresco-core/README.md)
+- [adf-mdl-menu](ng2-alfresco-core/README.md)
+- [adf-mdl-textfield](ng2-alfresco-core/README.md)
+- [adf-mdl-button](ng2-alfresco-core/README.md)
- [adf-upload](ng2-alfresco-core/README.md)
## Content service
@@ -42,27 +41,27 @@
### Components
-- [alfresco-viewer](ng2-alfresco-viewer/README.md)
-- [ng2-alfresco-userinfo](ng2-alfresco-userinfo/README.md)
-- [alfresco-file-uploading-list](ng2-alfresco-upload/README.md)
-- [alfresco-upload-button](ng2-alfresco-upload/README.md)
-- [alfresco-upload-drag-area](ng2-alfresco-upload/README.md)
-- [alfresco-tag-node-list](ng2-alfresco-tag/README.md)
-- [alfresco-tag-list](ng2-alfresco-tag/README.md)
-- [alfresco-tag-node-actions-list](ng2-alfresco-tag/README.md)
+- [adf-userinfo](ng2-alfresco-userinfo/README.md)
+- [adf-viewer](ng2-alfresco-viewer/README.md)
+- [adf-file-uploading-list](ng2-alfresco-upload/README.md)
+- [adf-upload-button](ng2-alfresco-upload/README.md)
+- [adf-upload-drag-area](ng2-alfresco-upload/README.md)
+- [adf-tag-node-list](ng2-alfresco-tag/README.md)
+- [adf-tag-list](ng2-alfresco-tag/README.md)
+- [adf-tag-node-actions-list](ng2-alfresco-tag/README.md)
+- [adf-login](ng2-alfresco-login/README.md)
+- [adf-search-autocomplete](ng2-alfresco-search/README.md)
+- [adf-search-control](ng2-alfresco-search/README.md)
+- [adf-search](ng2-alfresco-search/README.md)
- [adf-like](ng2-alfresco-social/README.md)
- [adf-rating](ng2-alfresco-social/README.md)
-- [alfresco-search-autocomplete](ng2-alfresco-search/README.md)
-- [alfresco-search-control](ng2-alfresco-search/README.md)
-- [alfresco-search](ng2-alfresco-search/README.md)
-- [alfresco-login](ng2-alfresco-login/README.md)
-- [adf-breadcrumb, alfresco-document-list-breadcrumb](ng2-alfresco-documentlist/README.md)
-- [alfresco-document-menu-action](ng2-alfresco-documentlist/README.md)
-- [alfresco-document-list](ng2-alfresco-documentlist/README.md)
-- [alfresco-datatable-cell](ng2-alfresco-datatable/README.md)
-- [alfresco-datatable](ng2-alfresco-datatable/README.md)
-- [alfresco-pagination](ng2-alfresco-datatable/README.md)
-- [alfresco-webscript-get](ng2-alfresco-webscript/README.md)
+- [adf-webscript-get](ng2-alfresco-webscript/README.md)
+- [adf-breadcrumb](ng2-alfresco-documentlist/README.md)
+- [adf-document-menu-action](ng2-alfresco-documentlist/README.md)
+- [adf-document-list](ng2-alfresco-documentlist/README.md)
+- [adf-pagination](ng2-alfresco-datatable/README.md)
+- [adf-datatable](ng2-alfresco-datatable/README.md)
+- [adf-datatable-cell](ng2-alfresco-datatable/README.md)
@@ -73,37 +72,37 @@
### components
-- [diagram-icon-alfresco-publish-task](ng2-activiti-diagrams/README.md)
-- [diagram-alfresco-publish-task](ng2-activiti-diagrams/README.md)
-- [activiti-process-instance-comments](ng2-activiti-processlist/README.md)
-- [activiti-process-instance-variables](ng2-activiti-processlist/README.md)
-- [activiti-process-instance-tasks](ng2-activiti-processlist/README.md)
-- [activiti-process-instance-header](ng2-activiti-processlist/README.md)
-- [adf-people-list](ng2-activiti-tasklist/README.md)
+- [adf-publish-task](ng2-activiti-diagrams/README.md)
+- [adf-publish-task](ng2-activiti-diagrams/README.md)
- [adf-create-task-attachment](ng2-activiti-tasklist/README.md)
-- [activiti-people-search](ng2-activiti-tasklist/README.md)
-- [activiti-start-task](ng2-activiti-tasklist/README.md)
-- [activiti-task-details](ng2-activiti-tasklist/README.md)
-- [activiti-filters](ng2-activiti-tasklist/README.md)
-- [activiti-task-header](ng2-activiti-tasklist/README.md)
-- [activiti-people](ng2-activiti-tasklist/README.md)
+- [adf-people-list](ng2-activiti-tasklist/README.md)
- [adf-task-attachment-list](ng2-activiti-tasklist/README.md)
-- [activiti-comments](ng2-activiti-tasklist/README.md)
-- [activiti-checklist](ng2-activiti-tasklist/README.md)
-- [activiti-tasklist](ng2-activiti-tasklist/README.md)
-- [activiti-apps](ng2-activiti-tasklist/README.md)
-- [activiti-diagram](ng2-activiti-diagrams/README.md)
+- [adf-people-search](ng2-activiti-tasklist/README.md)
+- [adf-start-task](ng2-activiti-tasklist/README.md)
+- [adf-task-details](ng2-activiti-tasklist/README.md)
+- [adf-filters](ng2-activiti-tasklist/README.md)
+- [adf-task-header](ng2-activiti-tasklist/README.md)
+- [adf-people](ng2-activiti-tasklist/README.md)
+- [adf-comments](ng2-activiti-tasklist/README.md)
+- [adf-checklist](ng2-activiti-tasklist/README.md)
+- [adf-tasklist](ng2-activiti-tasklist/README.md)
+- [adf-apps](ng2-activiti-tasklist/README.md)
+- [adf-process-instance-comments](ng2-activiti-processlist/README.md)
+- [adf-process-instance-variables](ng2-activiti-processlist/README.md)
+- [adf-process-instance-tasks](ng2-activiti-processlist/README.md)
+- [adf-process-instance-header](ng2-activiti-processlist/README.md)
+- [adf-diagram](ng2-activiti-diagrams/README.md)
- [adf-create-process-attachment](ng2-activiti-processlist/README.md)
- [adf-process-attachment-list](ng2-activiti-processlist/README.md)
-- [activiti-start-process](ng2-activiti-processlist/README.md)
-- [activiti-process-instance-details](ng2-activiti-processlist/README.md)
-- [activiti-process-instance-filters](ng2-activiti-processlist/README.md)
-- [activiti-process-instance-list](ng2-activiti-processlist/README.md)
-- [activiti-analytics-generator](ng2-activiti-analytics/README.md)
-- [activiti-analytics](ng2-activiti-analytics/README.md)
-- [activiti-start-form](ng2-activiti-form/README.md)
-- [activiti-content](ng2-activiti-form/README.md)
-- [activiti-form](ng2-activiti-form/README.md)
+- [adf-start-process](ng2-activiti-processlist/README.md)
+- [adf-process-instance-details](ng2-activiti-processlist/README.md)
+- [adf-process-instance-list](ng2-activiti-processlist/README.md)
+- [adf-process-instance-filters](ng2-activiti-processlist/README.md)
+- [adf-start-form](ng2-activiti-form/README.md)
+- [adf-content](ng2-activiti-form/README.md)
+- [adf-form](ng2-activiti-form/README.md)
+- [adf-analytics-generator](ng2-activiti-analytics/README.md)
+- [adf-analytics](ng2-activiti-analytics/README.md)
diff --git a/ng2-components/config/custom-loaders/generateListComponent.js b/ng2-components/config/custom-loaders/generateListComponent.js
index db3e56d6a0..13e508cadb 100644
--- a/ng2-components/config/custom-loaders/generateListComponent.js
+++ b/ng2-components/config/custom-loaders/generateListComponent.js
@@ -47,17 +47,18 @@ function generateListComponent(currentFileContent, webpackInstance) {
var componentSection = componentReg.exec(currentFileContent);
if (componentSection) {
- var selectorReg = /(selector)(\s?):(\s?)('|")((.|)*)('|")/gm;
+
+ var selectorReg = /(adf)([a-zA-Z]|-)+((?!,)|(?! ))/g;
var selector = selectorReg.exec(componentSection[0]);
-
- if (selector) {
- if (selector[0].indexOf('alfresco') > 0 || selector[0].indexOf('activiti') > 0 || selector[0].indexOf('adf') > 0) {
- var selector = selector[0].replace("selector: '[", "").replace("']", '').replace("]", '').replace("selector: '", "").replace("'", '');
+ if (selector) {
var removeRoot = webpackInstance.resourcePath.substr(webpackInstance.resourcePath.indexOf('/ng2-components') + 16, webpackInstance.resourcePath.length);
var url = removeRoot.substr(0, removeRoot.indexOf('src')) + 'README.md';
- var link = '- [' + selector + '](' + url + ')';
+
+ var link = '- [' + selector[0] + '](' + url + ')';
+
+ // console.log(link);
if (webpackInstance.resourcePath.match('ng2-alfresco-core')) {
readmeContent = readmeContent.replace('', '\n' + link);
@@ -68,14 +69,14 @@ function generateListComponent(currentFileContent, webpackInstance) {
}
}
}
- }
+
var directiveReg = /(@Directive)(\s?)\((\s?){(\s?)((.|\n)*)}(\s?)\)/gm;
var directiveSection = directiveReg.exec(currentFileContent);
if (directiveSection) {
- var selectorReg = /(selector)(\s?):(\s?)('|")((.|)*)('|")/gm;
+ var selectorReg = /(adf)([a-zA-Z]|-)+((?!,)|(?! ))/g;
var selector = selectorReg.exec(directiveSection[0]);
if (selector) {
diff --git a/ng2-components/ng2-activiti-analytics/README.md b/ng2-components/ng2-activiti-analytics/README.md
index e4cbe26cdf..30dcd3a5a3 100644
--- a/ng2-components/ng2-activiti-analytics/README.md
+++ b/ng2-components/ng2-activiti-analytics/README.md
@@ -68,10 +68,10 @@ The component shows the list of all the available reports
The component shows the charts related to the reportId passed as input
```html
-
-
+
```
### Properties
@@ -86,11 +86,11 @@ The component shows the charts related to the reportId passed as input
You can also hide chart parameters UI by setting the `hideParameters` to `true`:
```html
-
-
+
```

@@ -109,10 +109,10 @@ You can also hide chart parameters UI by setting the `hideParameters` to `true`:
The component generate and show the charts
```html
-
-
+
```
### Properties
diff --git a/ng2-components/ng2-activiti-analytics/src/components/analytics-generator.component.ts b/ng2-components/ng2-activiti-analytics/src/components/analytics-generator.component.ts
index dec0e96d30..221bcb7d81 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/analytics-generator.component.ts
+++ b/ng2-components/ng2-activiti-analytics/src/components/analytics-generator.component.ts
@@ -22,7 +22,7 @@ import { ReportQuery } from '../models/report.model';
import { Chart } from '../models/chart.model';
@Component({
- selector: 'activiti-analytics-generator',
+ selector: 'adf-analytics-generator, activiti-analytics-generator',
templateUrl: './analytics-generator.component.html',
styleUrls: ['./analytics-generator.component.css']
})
diff --git a/ng2-components/ng2-activiti-analytics/src/components/analytics-report-heat-map.component.html b/ng2-components/ng2-activiti-analytics/src/components/analytics-report-heat-map.component.html
index b61bbc4257..5b06f92294 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/analytics-report-heat-map.component.html
+++ b/ng2-components/ng2-activiti-analytics/src/components/analytics-report-heat-map.component.html
@@ -4,6 +4,6 @@
-
+
No metric found
diff --git a/ng2-components/ng2-activiti-analytics/src/components/analytics.component.html b/ng2-components/ng2-activiti-analytics/src/components/analytics.component.html
index 134e460d86..8193e0f7ea 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/analytics.component.html
+++ b/ng2-components/ng2-activiti-analytics/src/components/analytics.component.html
@@ -8,8 +8,8 @@
(onEdit)="onEditReport($event)">
-
-
+
diff --git a/ng2-components/ng2-activiti-analytics/src/components/analytics.component.ts b/ng2-components/ng2-activiti-analytics/src/components/analytics.component.ts
index 4e9b503859..bfc1608968 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/analytics.component.ts
+++ b/ng2-components/ng2-activiti-analytics/src/components/analytics.component.ts
@@ -22,7 +22,7 @@ import { ReportQuery } from '../models/report.model';
import { AnalyticsGeneratorComponent } from './analytics-generator.component';
@Component({
- selector: 'activiti-analytics',
+ selector: 'adf-analytics, activiti-analytics',
templateUrl: './analytics.component.html',
styleUrls: ['./analytics.component.css']
})
diff --git a/ng2-components/ng2-activiti-diagrams/README.md b/ng2-components/ng2-activiti-diagrams/README.md
index 91cc1ad69e..a8b259b3a4 100644
--- a/ng2-components/ng2-activiti-diagrams/README.md
+++ b/ng2-components/ng2-activiti-diagrams/README.md
@@ -36,17 +36,17 @@ npm install ng2-activiti-diagrams
This component shows the diagram of a process.
```html
-
-
+
```
Or below component shows the diagram of a running process instance with the activities highlighted according to their state (Active/Completed/Pending).
```html
-
-
+
```
### Properties
diff --git a/ng2-components/ng2-activiti-diagrams/src/components/activities/diagram-alfresco-publish-task.component.ts b/ng2-components/ng2-activiti-diagrams/src/components/activities/diagram-alfresco-publish-task.component.ts
index e2bfee11ad..d540e0211c 100644
--- a/ng2-components/ng2-activiti-diagrams/src/components/activities/diagram-alfresco-publish-task.component.ts
+++ b/ng2-components/ng2-activiti-diagrams/src/components/activities/diagram-alfresco-publish-task.component.ts
@@ -18,7 +18,7 @@
import { Component, ElementRef, Input, Output, EventEmitter } from '@angular/core';
@Component({
- selector: 'diagram-alfresco-publish-task',
+ selector: 'adf-diagram-publish-task, diagram-alfresco-publish-task',
templateUrl: './diagram-alfresco-publish-task.component.html'
})
export class DiagramAlfrescoPublishTaskComponent {
diff --git a/ng2-components/ng2-activiti-diagrams/src/components/activities/diagram-container-service-task.component.html b/ng2-components/ng2-activiti-diagrams/src/components/activities/diagram-container-service-task.component.html
index ffca2963c4..0494733cb9 100644
--- a/ng2-components/ng2-activiti-diagrams/src/components/activities/diagram-container-service-task.component.html
+++ b/ng2-components/ng2-activiti-diagrams/src/components/activities/diagram-container-service-task.component.html
@@ -9,7 +9,7 @@
-
+
@@ -23,4 +23,4 @@
-
\ No newline at end of file
+
diff --git a/ng2-components/ng2-activiti-diagrams/src/components/diagram.component.spec.ts b/ng2-components/ng2-activiti-diagrams/src/components/diagram.component.spec.ts
index e604f7b88d..5a91ca98be 100644
--- a/ng2-components/ng2-activiti-diagrams/src/components/diagram.component.spec.ts
+++ b/ng2-components/ng2-activiti-diagrams/src/components/diagram.component.spec.ts
@@ -428,14 +428,14 @@ describe('Test ng2-activiti-diagrams ', () => {
fixture.detectChanges();
fixture.whenStable().then(() => {
expect(res).not.toBeNull();
- let task: any = element.querySelector('diagram-alfresco-publish-task > diagram-task > raphael-rect');
+ let task: any = element.querySelector('adf-diagram-publish-task > diagram-task > raphael-rect');
expect(task).not.toBeNull();
- let taskText: any = element.querySelector('diagram-alfresco-publish-task > diagram-task > raphael-multiline-text');
+ let taskText: any = element.querySelector('adf-diagram-publish-task > diagram-task > raphael-multiline-text');
expect(taskText).not.toBeNull();
expect(taskText.attributes[1].value).toEqual('Fake Alfresco Publish task');
- let iconTask: any = element.querySelector('diagram-alfresco-publish-task > diagram-icon-alfresco-publish-task >' +
+ let iconTask: any = element.querySelector('adf-diagram-publish-task > diagram-icon-alfresco-publish-task >' +
' raphael-icon-alfresco-publish');
expect(iconTask).not.toBeNull();
@@ -2369,14 +2369,14 @@ describe('Test ng2-activiti-diagrams ', () => {
fixture.detectChanges();
fixture.whenStable().then(() => {
expect(res).not.toBeNull();
- let task: any = element.querySelector('diagram-alfresco-publish-task > diagram-task > raphael-rect');
+ let task: any = element.querySelector('adf-diagram-publish-task > diagram-task > raphael-rect');
expect(task).not.toBeNull();
- let taskText: any = element.querySelector('diagram-alfresco-publish-task > diagram-task > raphael-multiline-text');
+ let taskText: any = element.querySelector('adf-diagram-publish-task > diagram-task > raphael-multiline-text');
expect(taskText).not.toBeNull();
expect(taskText.attributes[1].value).toEqual('Fake Alfresco Publish task');
- let iconTask: any = element.querySelector('diagram-alfresco-publish-task > diagram-icon-alfresco-publish-task >' +
+ let iconTask: any = element.querySelector('adf-diagram-publish-task > diagram-icon-alfresco-publish-task >' +
' raphael-icon-alfresco-publish');
expect(iconTask).not.toBeNull();
@@ -2399,14 +2399,14 @@ describe('Test ng2-activiti-diagrams ', () => {
fixture.detectChanges();
fixture.whenStable().then(() => {
expect(res).not.toBeNull();
- let task: any = element.querySelector('diagram-alfresco-publish-task > diagram-task > raphael-rect[ng-reflect-stroke="#017501"]');
+ let task: any = element.querySelector('adf-diagram-publish-task > diagram-task > raphael-rect[ng-reflect-stroke="#017501"]');
expect(task).not.toBeNull();
- let taskText: any = element.querySelector('diagram-alfresco-publish-task > diagram-task > raphael-multiline-text');
+ let taskText: any = element.querySelector('adf-diagram-publish-task > diagram-task > raphael-multiline-text');
expect(taskText).not.toBeNull();
expect(taskText.attributes[1].value).toEqual('Fake Alfresco Publish task');
- let iconTask: any = element.querySelector('diagram-alfresco-publish-task > diagram-icon-alfresco-publish-task >' +
+ let iconTask: any = element.querySelector('adf-diagram-publish-task > diagram-icon-alfresco-publish-task >' +
' raphael-icon-alfresco-publish');
expect(iconTask).not.toBeNull();
@@ -2429,14 +2429,14 @@ describe('Test ng2-activiti-diagrams ', () => {
fixture.detectChanges();
fixture.whenStable().then(() => {
expect(res).not.toBeNull();
- let task: any = element.querySelector('diagram-alfresco-publish-task > diagram-task > raphael-rect[ng-reflect-stroke="#2632aa"]');
+ let task: any = element.querySelector('adf-diagram-publish-task > diagram-task > raphael-rect[ng-reflect-stroke="#2632aa"]');
expect(task).not.toBeNull();
- let taskText: any = element.querySelector('diagram-alfresco-publish-task > diagram-task > raphael-multiline-text');
+ let taskText: any = element.querySelector('adf-diagram-publish-task > diagram-task > raphael-multiline-text');
expect(taskText).not.toBeNull();
expect(taskText.attributes[1].value).toEqual('Fake Alfresco Publish task');
- let iconTask: any = element.querySelector('diagram-alfresco-publish-task > diagram-icon-alfresco-publish-task >' +
+ let iconTask: any = element.querySelector('adf-diagram-publish-task > diagram-icon-alfresco-publish-task >' +
' raphael-icon-alfresco-publish');
expect(iconTask).not.toBeNull();
diff --git a/ng2-components/ng2-activiti-diagrams/src/components/diagram.component.ts b/ng2-components/ng2-activiti-diagrams/src/components/diagram.component.ts
index e91c2048de..473b741efb 100644
--- a/ng2-components/ng2-activiti-diagrams/src/components/diagram.component.ts
+++ b/ng2-components/ng2-activiti-diagrams/src/components/diagram.component.ts
@@ -23,7 +23,7 @@ import { RaphaelService } from './raphael/raphael.service';
import { DiagramModel, DiagramElementModel } from '../models/diagram.model';
@Component({
- selector: 'activiti-diagram',
+ selector: 'adf-diagram, activiti-diagram',
styleUrls: ['./diagram.component.css'],
templateUrl: './diagram.component.html'
})
diff --git a/ng2-components/ng2-activiti-diagrams/src/components/icons/diagram-icon-alfresco-publish-task.component.ts b/ng2-components/ng2-activiti-diagrams/src/components/icons/diagram-icon-alfresco-publish-task.component.ts
index 3e2937988c..01b52f4354 100644
--- a/ng2-components/ng2-activiti-diagrams/src/components/icons/diagram-icon-alfresco-publish-task.component.ts
+++ b/ng2-components/ng2-activiti-diagrams/src/components/icons/diagram-icon-alfresco-publish-task.component.ts
@@ -19,7 +19,7 @@ import { Component, ElementRef, Input, Output, EventEmitter } from '@angular/cor
import { DiagramColorService } from '../../services/diagram-color.service';
@Component({
- selector: 'diagram-icon-alfresco-publish-task',
+ selector: 'adf-diagram-icon-publish-task, diagram-icon-alfresco-publish-task',
templateUrl: './diagram-icon-alfresco-publish-task.component.html'
})
export class DiagramIconAlfrescoPublishTaskComponent {
diff --git a/ng2-components/ng2-activiti-form/README.md b/ng2-components/ng2-activiti-form/README.md
index 0fa11ca4be..0ad4d016b1 100644
--- a/ng2-components/ng2-activiti-form/README.md
+++ b/ng2-components/ng2-activiti-form/README.md
@@ -71,17 +71,17 @@ npm install ng2-activiti-form
The component shows a Form from Activiti
```html
-
-
+
```
**Display form instance by task id:**
```html
-
-
+
```
For an existing Task both form and values will be fetched and displayed.
@@ -89,10 +89,10 @@ For an existing Task both form and values will be fetched and displayed.
**Display form definition by form id:**
```html
-
-
+
```
Only form definition will be fetched.
@@ -100,10 +100,10 @@ Only form definition will be fetched.
**Display form definition by form name:**
```html
-
-
+
```
**Display form definition by ECM nodeId:**
@@ -113,9 +113,9 @@ If there is no form definied in activiti for the type of the node,
a new form will be automaticaly created in Activiti.
```html
-
-
+
```
**Display form definition by form name, and store the form field as metadata:**
@@ -123,12 +123,12 @@ a new form will be automaticaly created in Activiti.
The param nameNode is optional.
```html
-
-
+
```
**Display form definition by ECM nodeId:**
@@ -137,12 +137,12 @@ In this case the metadata of the node are showed in an activiti Form,
and store the form field as metadata. The param nameNode is optional.
```html
-
-
+
```
### Properties
@@ -191,10 +191,10 @@ All `form*` events receive an instance of the `FormModel` as event argument for
**MyView.component.html**
```html
-
-
+
```
**MyView.component.ts**
@@ -218,10 +218,10 @@ Alternatively you may want just running additional code on outcome execution wit
**MyView.component.html**
```html
-
-
+
```
**MyView.component.ts**
@@ -262,9 +262,9 @@ will also be executed after your custom code.**
The component shows the content preview.
```html
-
-
+
```
### Properties
diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-content.component.ts b/ng2-components/ng2-activiti-form/src/components/activiti-content.component.ts
index 2e6b18727a..99257f0ff5 100644
--- a/ng2-components/ng2-activiti-form/src/components/activiti-content.component.ts
+++ b/ng2-components/ng2-activiti-form/src/components/activiti-content.component.ts
@@ -22,7 +22,7 @@ import { ContentLinkModel } from './widgets/core/content-link.model';
import { Observable } from 'rxjs/Rx';
@Component({
- selector: 'activiti-content',
+ selector: 'adf-content, activiti-content',
templateUrl: './activiti-content.component.html',
styleUrls: ['./activiti-content.component.css']
})
diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.ts b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.ts
index e150640dab..7aaf39ab70 100644
--- a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.ts
+++ b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.ts
@@ -29,7 +29,7 @@ import { WidgetVisibilityService } from './../services/widget-visibility.servic
declare var componentHandler: any;
@Component({
- selector: 'activiti-form',
+ selector: 'adf-form, activiti-form',
templateUrl: './activiti-form.component.html',
styleUrls: ['./activiti-form.component.css']
})
diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.ts b/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.ts
index de2c3e5d0d..e6c9b0789e 100644
--- a/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.ts
+++ b/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.ts
@@ -51,7 +51,7 @@ import { ContentLinkModel } from './widgets/core/content-link.model';
* @returns {ActivitiForm} .
*/
@Component({
- selector: 'activiti-start-form',
+ selector: 'adf-start-form, activiti-start-form',
templateUrl: './activiti-start-form.component.html',
styleUrls: ['./activiti-form.component.css']
})
diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/display-value/display-value.widget.html b/ng2-components/ng2-activiti-form/src/components/widgets/display-value/display-value.widget.html
index 6b8cb636d6..b91c6e3881 100644
--- a/ng2-components/ng2-activiti-form/src/components/widgets/display-value/display-value.widget.html
+++ b/ng2-components/ng2-activiti-form/src/components/widgets/display-value/display-value.widget.html
@@ -47,13 +47,13 @@
-
+
-
+
-
+
```
### Properties
@@ -109,9 +109,9 @@ The most common usage is in driving a process instance list in order to allow th
process instances are displayed in the list.
```html
-
-
+
```
### Properties
@@ -136,9 +136,9 @@ If both `appId` and `appName` are specified then `appName` will take precedence
### How filter the activiti process filters
```html
-
-
+
```
You can use inside the filterParam one of the following property.
@@ -170,11 +170,11 @@ The AccordionComponent is exposed by the alfresco-core.
[heading]="'Processes'"
[isSelected]="true"
[headingIcon]="'assessment'">
-
-
+
```
@@ -187,9 +187,9 @@ Displays a button which in turn displays a dialog when clicked, allowing the use
to specify some basic details needed to start a new process instance.
```html
-
-
+
```
### Properties
@@ -213,9 +213,9 @@ to specify some basic details needed to start a new process instance.
This component displays detailed information on a specified process instance
```html
-
-
+
```
### Properties
@@ -237,9 +237,9 @@ This component displays detailed information on a specified process instance
This is a sub-component of the process details component, which renders some general information about the selected process.
```html
-
-
+
```
### Properties
@@ -260,10 +260,10 @@ This is a sub-component of the process details component, which renders some gen
Lists both the active and completed tasks associated with a particular process instance
```html
-
-
+
```
### Properties
@@ -284,9 +284,9 @@ Lists both the active and completed tasks associated with a particular process i
Displays comments associated with a particular process instances and allows the user to add new comments
```html
-
-
+
```
### Properties
@@ -326,11 +326,11 @@ This component displays attached documents on a specified process instance
This component displays Upload Component(Drag and Click) to upload the attachment to a specified process instance
```html
-
-
+
```

diff --git a/ng2-components/ng2-activiti-processlist/src/components/activiti-filters.component.ts b/ng2-components/ng2-activiti-processlist/src/components/activiti-filters.component.ts
index 946682fbe3..e6ec18f7ee 100644
--- a/ng2-components/ng2-activiti-processlist/src/components/activiti-filters.component.ts
+++ b/ng2-components/ng2-activiti-processlist/src/components/activiti-filters.component.ts
@@ -24,7 +24,7 @@ import { ActivitiProcessService } from './../services/activiti-process.service';
declare let componentHandler: any;
@Component({
- selector: 'activiti-process-instance-filters',
+ selector: 'adf-process-instance-filters, activiti-process-instance-filters',
templateUrl: './activiti-filters.component.html',
styleUrls: ['activiti-filters.component.css']
})
diff --git a/ng2-components/ng2-activiti-processlist/src/components/activiti-process-comments.component.ts b/ng2-components/ng2-activiti-processlist/src/components/activiti-process-comments.component.ts
index 85e97405ee..dbce0010f7 100644
--- a/ng2-components/ng2-activiti-processlist/src/components/activiti-process-comments.component.ts
+++ b/ng2-components/ng2-activiti-processlist/src/components/activiti-process-comments.component.ts
@@ -26,7 +26,7 @@ declare let componentHandler: any;
declare let dialogPolyfill: any;
@Component({
- selector: 'activiti-process-instance-comments',
+ selector: 'adf-process-instance-comments, activiti-process-instance-comments',
templateUrl: './activiti-process-comments.component.html',
styleUrls: ['./activiti-process-comments.component.css'],
providers: [ActivitiProcessService]
diff --git a/ng2-components/ng2-activiti-processlist/src/components/activiti-process-instance-details.component.html b/ng2-components/ng2-activiti-processlist/src/components/activiti-process-instance-details.component.html
index dc3535307e..64d13a7d0e 100644
--- a/ng2-components/ng2-activiti-processlist/src/components/activiti-process-instance-details.component.html
+++ b/ng2-components/ng2-activiti-processlist/src/components/activiti-process-instance-details.component.html
@@ -1,16 +1,16 @@
diff --git a/ng2-components/ng2-alfresco-search/src/components/alfresco-search.component.ts b/ng2-components/ng2-alfresco-search/src/components/alfresco-search.component.ts
index 94dcd60bd0..1c7e457348 100644
--- a/ng2-components/ng2-alfresco-search/src/components/alfresco-search.component.ts
+++ b/ng2-components/ng2-alfresco-search/src/components/alfresco-search.component.ts
@@ -22,7 +22,7 @@ import { AlfrescoTranslationService } from 'ng2-alfresco-core';
import { NodePaging, Pagination } from 'alfresco-js-api';
@Component({
- selector: 'alfresco-search',
+ selector: 'adf-search, alfresco-search',
styleUrls: ['./alfresco-search.component.css'],
templateUrl: './alfresco-search.component.html'
})
diff --git a/ng2-components/ng2-alfresco-tag/README.md b/ng2-components/ng2-alfresco-tag/README.md
index 52494085c5..729706dbd2 100644
--- a/ng2-components/ng2-alfresco-tag/README.md
+++ b/ng2-components/ng2-alfresco-tag/README.md
@@ -45,9 +45,9 @@ In this component are present three different tags:
## alfresco-tag-node-actions-list
```html
-
-
+
```
### Properties
@@ -61,9 +61,9 @@ In this component are present three different tags:
## alfresco-tag-node-list
```html
-
-
+
```
### Properties
diff --git a/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.ts b/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.ts
index 6d28dd5070..8d079e9a97 100644
--- a/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.ts
+++ b/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.ts
@@ -27,7 +27,7 @@ import { AlfrescoTranslationService } from 'ng2-alfresco-core';
*/
@Component({
- selector: 'alfresco-tag-node-actions-list',
+ selector: 'adf-tag-node-actions-list, alfresco-tag-node-actions-list',
templateUrl: './tag-actions.component.html',
styleUrls: ['./tag-actions.component.css']
})
diff --git a/ng2-components/ng2-alfresco-tag/src/components/tag-list.component.ts b/ng2-components/ng2-alfresco-tag/src/components/tag-list.component.ts
index 8db185e749..c2c06b1081 100644
--- a/ng2-components/ng2-alfresco-tag/src/components/tag-list.component.ts
+++ b/ng2-components/ng2-alfresco-tag/src/components/tag-list.component.ts
@@ -26,7 +26,7 @@ import { TagService } from '../services/tag.service';
*/
@Component({
- selector: 'alfresco-tag-list',
+ selector: 'adf-tag-list, alfresco-tag-list',
templateUrl: './tag-list.component.html'
})
export class TagList {
diff --git a/ng2-components/ng2-alfresco-tag/src/components/tag-node-list.component.ts b/ng2-components/ng2-alfresco-tag/src/components/tag-node-list.component.ts
index 20193f34cb..e6435c2429 100644
--- a/ng2-components/ng2-alfresco-tag/src/components/tag-node-list.component.ts
+++ b/ng2-components/ng2-alfresco-tag/src/components/tag-node-list.component.ts
@@ -26,7 +26,7 @@ import { TagService } from '../services/tag.service';
*/
@Component({
- selector: 'alfresco-tag-node-list',
+ selector: 'adf-tag-node-list, alfresco-tag-node-list',
templateUrl: './tag-node-list.component.html',
styleUrls: ['./tag-node-list.component.css']
})
diff --git a/ng2-components/ng2-alfresco-upload/README.md b/ng2-components/ng2-alfresco-upload/README.md
index 0ce4fa1eff..137faa4880 100644
--- a/ng2-components/ng2-alfresco-upload/README.md
+++ b/ng2-components/ng2-alfresco-upload/README.md
@@ -64,14 +64,14 @@ npm install ng2-alfresco-upload
## UploadButtonComponent
```html
-
-
+
```
@@ -105,10 +105,10 @@ The UploadButtonComponent provides the event permissionEvent that is raised when
You can subscribe to this event from your component and use the NotificationService to show a message.
```html
-
-
+
```
```ts
@@ -131,10 +131,10 @@ You can easily disable the button when the user doesn't own the permission to pe
The UploadButtonComponent provides the property disableWithNoPermission that can be true. In this way the button should be disabled if the delete permission is missing for the node.
```html
-
-
+
```

@@ -144,11 +144,11 @@ The UploadButtonComponent provides the property disableWithNoPermission that can
This component, provide a drag and drop are to upload files to alfresco.
```html
-
+
diff --git a/ng2-components/ng2-alfresco-upload/src/components/file-uploading-list.component.ts b/ng2-components/ng2-alfresco-upload/src/components/file-uploading-list.component.ts
index 2b399be04d..15152242cf 100644
--- a/ng2-components/ng2-alfresco-upload/src/components/file-uploading-list.component.ts
+++ b/ng2-components/ng2-alfresco-upload/src/components/file-uploading-list.component.ts
@@ -20,7 +20,7 @@ import { FileModel, FileUploadStatus } from '../models/file.model';
import { UploadService } from '../services/upload.service';
@Component({
- selector: 'alfresco-file-uploading-list',
+ selector: 'adf-file-uploading-list, alfresco-file-uploading-list',
templateUrl: './file-uploading-list.component.html',
styleUrls: ['./file-uploading-list.component.css']
})
diff --git a/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts b/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts
index 0530fe1cf6..9bb2f74895 100644
--- a/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts
+++ b/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts
@@ -24,7 +24,7 @@ import { FileModel } from '../models/file.model';
import { PermissionModel } from '../models/permissions.model';
@Component({
- selector: 'alfresco-upload-button',
+ selector: 'adf-upload-button, alfresco-upload-button',
templateUrl: './upload-button.component.html',
styleUrls: ['./upload-button.component.css']
})
diff --git a/ng2-components/ng2-alfresco-upload/src/components/upload-drag-area.component.ts b/ng2-components/ng2-alfresco-upload/src/components/upload-drag-area.component.ts
index de576a7637..8eac3caa9b 100644
--- a/ng2-components/ng2-alfresco-upload/src/components/upload-drag-area.component.ts
+++ b/ng2-components/ng2-alfresco-upload/src/components/upload-drag-area.component.ts
@@ -21,7 +21,7 @@ import { UploadService } from '../services/upload.service';
import { FileModel } from '../models/file.model';
@Component({
- selector: 'alfresco-upload-drag-area',
+ selector: 'adf-upload-drag-area, alfresco-upload-drag-area',
templateUrl: './upload-drag-area.component.html',
styleUrls: ['./upload-drag-area.component.css']
})
diff --git a/ng2-components/ng2-alfresco-userinfo/README.md b/ng2-components/ng2-alfresco-userinfo/README.md
index 722f69a959..3122c33744 100644
--- a/ng2-components/ng2-alfresco-userinfo/README.md
+++ b/ng2-components/ng2-alfresco-userinfo/README.md
@@ -33,7 +33,7 @@ npm install ng2-alfresco-userinfo
## Basic usage
```html
-
+
```
### Properties
diff --git a/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.ts b/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.ts
index 915e103cad..9cd4829c18 100644
--- a/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.ts
+++ b/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.ts
@@ -26,7 +26,7 @@ declare let componentHandler: any;
declare var require: any;
@Component({
- selector: 'ng2-alfresco-userinfo',
+ selector: 'adf-userinfo, ng2-alfresco-userinfo',
styleUrls: ['./user-info.component.css'],
templateUrl: './user-info.component.html'
})
diff --git a/ng2-components/ng2-alfresco-viewer/README.md b/ng2-components/ng2-alfresco-viewer/README.md
index 7e6da41796..ccdd14aedd 100644
--- a/ng2-components/ng2-alfresco-viewer/README.md
+++ b/ng2-components/ng2-alfresco-viewer/README.md
@@ -41,20 +41,20 @@ npm install ng2-alfresco-viewer
Using with node id:
```html
-
-
+
```
Using with file url:
```html
-
-
+
```
## Properties
@@ -91,7 +91,7 @@ If you want handle other file formats that are not yet supported by the ng2-alfr
Below you can find an example where with the use of `extension-viewer` if you can handle 3d files
```html
-
@@ -105,7 +105,7 @@ Below you can find an example where with the use of `extension-viewer` if you ca
-
+
```
Note: you need adding `ng2-3d-editor` dependency to your `package.json` file to make example above work.
@@ -113,7 +113,7 @@ Note: you need adding `ng2-3d-editor` dependency to your `package.json` file to
It is possible to define multiple `extension-viewer` templates:
```html
-
@@ -133,7 +133,7 @@ It is possible to define multiple `extension-viewer` templates:
-
+
```
## Build from sources
diff --git a/ng2-components/ng2-alfresco-viewer/src/components/viewer.component.ts b/ng2-components/ng2-alfresco-viewer/src/components/viewer.component.ts
index 9360a593cf..1da533dca6 100644
--- a/ng2-components/ng2-alfresco-viewer/src/components/viewer.component.ts
+++ b/ng2-components/ng2-alfresco-viewer/src/components/viewer.component.ts
@@ -21,7 +21,7 @@ import { MinimalNodeEntryEntity } from 'alfresco-js-api';
import { AlfrescoApiService, LogService } from 'ng2-alfresco-core';
@Component({
- selector: 'alfresco-viewer',
+ selector: 'adf-viewer, alfresco-viewer',
templateUrl: './viewer.component.html',
styleUrls: ['./viewer.component.css']
})
diff --git a/ng2-components/ng2-alfresco-webscript/README.md b/ng2-components/ng2-alfresco-webscript/README.md
index e164e2e881..a100bbc1c0 100644
--- a/ng2-components/ng2-alfresco-webscript/README.md
+++ b/ng2-components/ng2-alfresco-webscript/README.md
@@ -37,7 +37,7 @@ npm install ng2-alfresco-webscript
## Basic usage
```html
-
-
+
```
Another example:
@@ -53,13 +53,13 @@ Another example:
**app.component.html**
```html
-
-
+
```
**app.component.ts**
@@ -97,13 +97,13 @@ This sample Web Scripts reside in your Alfresco Server AND you can access the
http://localhost:8080/alfresco/service/sample/folder/Company%20Home
```html
-
-
+
```

@@ -115,13 +115,13 @@ This sample demonstrates how to implement a Webscript component that renders the
http://localhost:8080/alfresco/service/sample/folder/DATATABLE
```html
-
-
+
```
If you want show the result from a webscript inside a ng2-alfresco-datatable you have to return from the GET of the webscript the datatructure below:
@@ -173,7 +173,7 @@ This sample Web Scripts reside in your Alfresco Server AND you can access the
http://localhost:8080/alfresco/service/sample/folder/JSON%EXAMPLE
```html
-
-
+
```
You can get the plain data from the webscript through the **onSuccess** event parameter and use it as you need in your application
diff --git a/ng2-components/ng2-alfresco-webscript/src/webscript.component.ts b/ng2-components/ng2-alfresco-webscript/src/webscript.component.ts
index d3f2c31c2c..d98d1f9479 100644
--- a/ng2-components/ng2-alfresco-webscript/src/webscript.component.ts
+++ b/ng2-components/ng2-alfresco-webscript/src/webscript.component.ts
@@ -20,13 +20,13 @@ import { AlfrescoApiService, LogService } from 'ng2-alfresco-core';
import { ObjectDataTableAdapter } from 'ng2-alfresco-datatable';
/**
- *
- *
+ *
*
* This component, provide a get webscript viewer
*
@@ -41,7 +41,7 @@ import { ObjectDataTableAdapter } from 'ng2-alfresco-datatable';
* @returns {WebscriptComponent} .
*/
@Component({
- selector: 'alfresco-webscript-get',
+ selector: 'adf-webscript-get, alfresco-webscript-get',
template: `
{{data | json}}
diff --git a/ng2-components/package.json b/ng2-components/package.json
index 51edfa2311..e351d9a19d 100644
--- a/ng2-components/package.json
+++ b/ng2-components/package.json
@@ -14,7 +14,7 @@
"prepublishOnly": "npm run build",
"pkg-build": "package-json-merge ng2-alfresco-core/package.json ng2-alfresco-datatable/package.json ng2-activiti-diagrams/package.json ng2-activiti-analytics/package.json ng2-activiti-form/package.json ng2-activiti-tasklist/package.json ng2-activiti-processlist/package.json ng2-alfresco-documentlist/package.json ng2-alfresco-login/package.json ng2-alfresco-search/package.json ng2-alfresco-tag/package.json ng2-alfresco-upload/package.json ng2-alfresco-viewer/package.json ng2-alfresco-webscript/package.json ng2-alfresco-webscript/package.json ng2-alfresco-userinfo/package.json ng2-alfresco-social/package.json package-base.json > package.json",
"toc": "markdown-toc -i ng2-alfresco-core/README.md && markdown-toc -i ng2-alfresco-datatable/README.md && markdown-toc -i ng2-activiti-diagrams/README.md && markdown-toc -i ng2-activiti-analytics/README.md && markdown-toc -i ng2-activiti-form/README.md && markdown-toc -i ng2-activiti-tasklist/README.md && markdown-toc -i ng2-activiti-processlist/README.md && markdown-toc -i ng2-alfresco-documentlist/README.md && markdown-toc -i ng2-alfresco-login/README.md && markdown-toc -i ng2-alfresco-search/README.md && markdown-toc -i ng2-alfresco-tag/README.md && markdown-toc -i ng2-alfresco-upload/README.md && markdown-toc -i ng2-alfresco-viewer/README.md && markdown-toc -i ng2-alfresco-webscript/README.md && markdown-toc -i ng2-alfresco-webscript/README.md && markdown-toc -i ng2-alfresco-userinfo/README.md && markdown-toc -i ng2-alfresco-social/README.md && markdown-toc -i README.md",
- "doc": "npm run toc && npm run npm run webpack -- --config config/webpack.doc.js --progress --profile --bail",
+ "doc": "npm run toc && npm run webpack -- --config config/webpack.doc.js --progress --profile --bail",
"tslint": "",
"prepublish": "",
"tsc": "",
diff --git a/scripts/README.md b/scripts/README.md
index 92edf4c6fb..7d5615cbc9 100644
--- a/scripts/README.md
+++ b/scripts/README.md
@@ -239,14 +239,13 @@ For development environment configuration please refer to [project docs](../demo
# npm-clean.sh
-***npm-clean.sh*** clean all the projects folder : ng2-components, ng2-components/*.*/demo and demo-shell-ng2.
+***npm-clean.sh*** clean all the projects folder : ng2-components and demo-shell-ng2.
## Options
| Option | Description |
| --- | --- |
| -h or --help | show the help |
-| -sd or --skipDemo | skip the demo folder clean |
# npm-check-bundles.sh
@@ -270,8 +269,6 @@ Add a package across all the pacakge json in the project
| -h or --help | show the help |
| --save | save it in dependencies |
| --save-dev | save it in dev dependencies |
-| -sd | skip the demo projects |
-
* Add a package in the project
diff --git a/scripts/npm-add-pkg.sh b/scripts/npm-add-pkg.sh
index 1eafe93a23..e101004dea 100755
--- a/scripts/npm-add-pkg.sh
+++ b/scripts/npm-add-pkg.sh
@@ -2,7 +2,6 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-eval EXEC_DEMO=true
eval NAME_PKG=''
eval SAVE_OPT=false
eval SAVE_DEV_OPT=false
@@ -11,7 +10,6 @@ show_help() {
echo "Usage: npm-clean.sh"
echo "--save"
echo "--save-dev"
- echo "-sd or -skipDemo skip the clean of the demo folder of any components"
}
eval projects=( "ng2-activiti-diagrams"
@@ -32,10 +30,6 @@ eval projects=( "ng2-activiti-diagrams"
"ng2-alfresco-webscript"
"ng2-alfresco-userinfo" )
-clea_demo() {
- EXEC_DEMO=false
-}
-
save(){
NAME_PKG=$1
SAVE_OPT=true
@@ -51,7 +45,6 @@ while [[ $1 == -* ]]; do
-h|--help|-\?) show_help; exit 0;;
--save) save $2; shift 2;;
--save-dev) save_dev $2; shift 2;;
- -sd|--skipDemo) clea_demo; shift;;
-*) echo "invalid option: $1" 1>&2; show_help; exit 0;;
esac
done
diff --git a/scripts/npm-build-all-demo.sh b/scripts/npm-build-all-demo.sh
deleted file mode 100755
index f65f92bc52..0000000000
--- a/scripts/npm-build-all-demo.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/usr/bin/env bash
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
-eval EXEC_GIT_NPM_INSTALL_JSAPI=false
-eval EXEC_BUILD=true
-eval EXEC_INSTALL=true
-
-eval projects=(
- "ng2-alfresco-core"
- "ng2-alfresco-datatable"
- "ng2-activiti-diagrams"
- "ng2-activiti-analytics"
- "ng2-activiti-form"
- "ng2-activiti-tasklist"
- "ng2-activiti-processlist"
- "ng2-alfresco-documentlist"
- "ng2-alfresco-login"
- "ng2-alfresco-search"
- "ng2-alfresco-social"
- "ng2-alfresco-tag"
- "ng2-alfresco-social"
- "ng2-alfresco-upload"
- "ng2-alfresco-viewer"
- "ng2-alfresco-webscript"
- "ng2-alfresco-userinfo" )
-
-enable_js_api_git_link() {
- GIT_ISH='git://github.com/Alfresco/alfresco-js-api.git#'$1
- EXEC_GIT_NPM_INSTALL_JSAPI=true
-}
-
-show_help() {
- echo "Usage: npm-build-all-demo.sh"
- echo ""
- echo "-t or -test build all your local component and run also the test on them , this parameter accept also a wildecard to execute test for example -t "ng2-alfresco-core" "
- echo "-gitjsapi to build all the components against a commit-ish version of the JS-API"
-}
-
-exclude_build(){
- EXEC_BUILD=false
-}
-
-exec_install(){
- EXEC_INSTALL=false
-}
-
-while [[ $1 == -* ]]; do
- case "$1" in
- -h|--help|-\?) show_help; exit 0;;
- -si|--skipinstall) exec_install; shift;;
- -sb|--skipbuild) exclude_build; shift;;
- -gitjsapi) enable_js_api_git_link $2; shift 2;;
- -*) echo "invalid option: $1" 1>&2; show_help; exit 1;;
- esac
-done
-
-cd "$DIR/../ng2-components/"
-
-for PACKAGE in ${projects[@]}
-do
- DESTDIR="$DIR/../ng2-components/$PACKAGE/demo"
- if $EXEC_GIT_NPM_INSTALL_JSAPI == true; then
- echo "====== Use the alfresco JS-API '$GIT_ISH' in $PACKAGE demo ====="
- cd $DESTDIR
- npm install $GIT_ISH
- cd "$DIR/../ng2-components/$PACKAGE/demo/node_modules/alfresco-js-api"
- npm install
- fi
- cd $DESTDIR
- npm run buil:dev
-
-done
-
diff --git a/scripts/npm-clean.sh b/scripts/npm-clean.sh
index 527195b976..4e65adb68f 100755
--- a/scripts/npm-clean.sh
+++ b/scripts/npm-clean.sh
@@ -7,7 +7,6 @@ eval EXEC_CLEAN_DEMO=true
show_help() {
echo "Usage: npm-clean.sh"
echo ""
- echo "-sd or -skipDemo skip the clean of the demo folder of any components"
}
eval projects=( "ng2-activiti-diagrams"
@@ -28,13 +27,9 @@ eval projects=( "ng2-activiti-diagrams"
"ng2-alfresco-webscript"
"ng2-alfresco-userinfo" )
-clea_demo() {
- EXEC_CLEAN_DEMO=false
-}
while [[ $1 == -* ]]; do
case "$1" in
-h|--help|-\?) show_help; exit 0;;
- -sd|--skipDemo) clea_demo; shift;;
-*) echo "invalid option: $1" 1>&2; show_help; exit 0;;
esac
done
@@ -46,15 +41,6 @@ do
echo "====== clean component: ${PACKAGE} ====="
cd "$DIR/../ng2-components/${PACKAGE}"
npm run clean
-
- if $EXEC_CLEAN_DEMO == true; then
- if [ -d "$DIR/../ng2-components/${PACKAGE}/demo" ]; then
- echo "====== clean component demo: ${PACKAGE} ====="
- cd "$DIR/../ng2-components/${PACKAGE}/demo"
- npm install rimraf
- npm run clean
- fi
- fi
done
cd "$DIR/../demo-shell-ng2"