[ADF-3538] Alfresco Process Service Cloud - new package with CLI (#3872)

* [ADF-3538] start creating new folder for cloud components

* [ADF-3538] added new package to the script and the builds

* [ADF-3538] added some more changes to scripts

* [ADF-3538] - starting the new package

* change index

* fix package

* Fix module structure with Cli

* add basic structure

* Create a library with angular cli

* Add a cloud component as example

* Skip the scss style

* add the import scss

* remove useless codes

* Add i18n example

* remove useless code

* Simplify the hello component
Fix the wrong path

* Fix process service cloud path

* Download process-service-cloud from the CS
This commit is contained in:
Maurizio Vitale
2018-10-16 18:15:11 +01:00
committed by Eugenio Romano
parent 5378df9425
commit 0ecb6c13ec
57 changed files with 1540 additions and 1010 deletions

View File

@@ -24,7 +24,7 @@ var configFileName = "doctool.config.json";
var defaultFolder = path.resolve("docs");
var sourceInfoFolder = path.resolve("docs", "sourceinfo");
var libFolders = ["core", "content-services", "process-services", "insights"];
var libFolders = ["core", "content-services", "process-services", "insights", "process-services-cloud"];
var excludePatterns = [
"**/*.spec.ts"
@@ -41,7 +41,7 @@ function updatePhase(mdCache, aggData) {
});
var filenames = Object.keys(mdCache);
for (var i = 0; i < filenames.length; i++) {
var pathname = filenames[i];
@@ -164,8 +164,8 @@ function initSourceInfo(aggData, mdCache) {
let sources = app.expandInputFiles(libFolders.map(folder => {
return path.resolve("lib", folder);
}));
}));
aggData.projData = app.convert(sources);
@@ -188,7 +188,7 @@ function initSourceInfo(aggData, mdCache) {
}
/*
if (classRef) {
aggData.classInfo[className] = new si.ComponentInfo(classRef);
aggData.classInfo[className] = new si.ComponentInfo(classRef);
}
*/
@@ -204,7 +204,7 @@ function initClassInfo(aggData) {
yamlFilenames.forEach(yamlFilename => {
var classYamlText = fs.readFileSync(path.resolve(sourceInfoFolder, yamlFilename), "utf8");
var classYaml = jsyaml.safeLoad(classYamlText);
if (program.verbose) {
console.log(classYaml.items[0].name);
}
@@ -264,7 +264,7 @@ if (sourceInfo.isDirectory()) {
files = [ sourcePath ];
}
files = files.filter(filename =>
files = files.filter(filename =>
(filename !== undefined) &&
(path.extname(filename) === ".md") &&
(filename !== "README.md")
@@ -295,4 +295,4 @@ updatePhase(mdCache, aggData);
if (program.timing) {
var endTime = process.hrtime(startTime);
console.log(`Run complete in ${endTime[0]} sec`);
}
}