Skip to content

Commit dd1b0c6

Browse files
Compile after installer build improvement
1 parent 5125a14 commit dd1b0c6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

gulpfile.babel.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,23 @@ import pkg from "./package.json";
1717
import config from "./source/config.json";
1818
import buffer from "vinyl-buffer";
1919
import sourceStream from "vinyl-source-stream";
20+
import fs from "fs";
2021

2122
var dir = __dirname,
2223
dest = `${dir}/build`,
2324
source = `${dir}/source`,
2425
context = {
2526
context: {
2627
package: pkg,
27-
config: config
28+
config: config,
29+
compileAfter: ""
2830
}
2931
};
3032

3133
gulp.task("prepare", (cb) => {
34+
context.context.compileAfter = fs.readdirSync(`${ source }/cache`).filter(
35+
name => name !== "README.md" && name !== "VisualEditor.Installer"
36+
).map(name => name.replace(/\.cls$/, "")).join(", ");
3237
return rimraf(dest, cb);
3338
});
3439

source/cache/VisualEditor.Installer.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// This class installs and removes <!-- @echo package.printableName -->. Once the class is
33
/// compiled, the application will be installed into Caché system. Then open the web-application
44
/// [host]/<!-- @echo config.webApplicationName -->/ (slash at the end is required).
5-
Class VisualEditor.Installer Extends %Projection.AbstractProjection [ CompileAfter = (VisualEditor.Router, VisualEditor.REST.StaticContent, VisualEditor.REST.Informer, VisualEditor.REST.Content) ]
5+
Class VisualEditor.Installer Extends %Projection.AbstractProjection [ CompileAfter = (<!-- @echo compileAfter -->) ]
66
{
77

88
Projection Reference As Installer;

0 commit comments

Comments
 (0)