firefly-compiler 0.4.48 → 0.4.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/Release.ff +39 -21
- package/package.json +1 -1
- package/vscode/package.json +1 -1
package/bin/Release.ff
CHANGED
|
@@ -25,34 +25,49 @@ release(
|
|
|
25
25
|
runSuccessful(system, "node", ["output/js/ff/compiler/Main.mjs", "bootstrap"], system.path(".."))
|
|
26
26
|
runSuccessful(system, "node", ["output/js/ff/compiler/Main.mjs", "bootstrap"], system.path(".."))
|
|
27
27
|
runSuccessful(system, "node", ["output/js/ff/compiler/Main.mjs", "bootstrap"], system.path(".."))
|
|
28
|
-
bumpMinorVersion(system, system.path("../package.json"))
|
|
28
|
+
let version = bumpMinorVersion(system, system.path("../package.json"))
|
|
29
29
|
bumpMinorVersion(system, system.path("../vscode/package.json"))
|
|
30
30
|
runSuccessful(system, "npm", ["publish"], system.path(".."))
|
|
31
31
|
runSuccessful(system, "vsce", ["publish"], system.path("../vscode"))
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
releaseFireflyPackage(system, accessKeyId, secretAccessKey, "compiler")
|
|
33
|
+
releaseFireflyPackage(system, accessKeyId, secretAccessKey, "core")
|
|
34
|
+
releaseFireflyPackage(system, accessKeyId, secretAccessKey, "lux")
|
|
35
|
+
releaseFireflyPackage(system, accessKeyId, secretAccessKey, "postgresql")
|
|
36
|
+
releaseFireflyPackage(system, accessKeyId, secretAccessKey, "rpc")
|
|
37
|
+
releaseFireflyPackage(system, accessKeyId, secretAccessKey, "s3")
|
|
38
|
+
releaseFireflyPackage(system, accessKeyId, secretAccessKey, "unsafejs")
|
|
39
|
+
releaseFireflyPackage(system, accessKeyId, secretAccessKey, "webserver")
|
|
40
|
+
runSuccessful(system, "git", ["commit", "-a", "-m", "Autorelease " + version], system.path(".."))
|
|
41
|
+
runSuccessful(system, "git", ["push"], system.path(".."))
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
releaseFireflyPackage(
|
|
45
|
+
system: NodeSystem
|
|
46
|
+
accessKeyId: String
|
|
47
|
+
secretAccessKey: String
|
|
48
|
+
packageName: String
|
|
49
|
+
): Unit {
|
|
50
|
+
let temporary = system.path("../" + packageName + "/.firefly/temporary")
|
|
51
|
+
if(!temporary.exists()) {temporary.createDirectory()}
|
|
52
|
+
let tarGz = temporary.slash("ff_" + packageName + "_0_0_0.tar.gz")
|
|
53
|
+
if(tarGz.exists()) {
|
|
54
|
+
tarGz.delete()
|
|
55
|
+
system.writeLine("Deleted " + tarGz.absolute())
|
|
38
56
|
}
|
|
39
|
-
internalMakeTarGz(
|
|
40
|
-
system.writeLine("Created " +
|
|
57
|
+
internalMakeTarGz(tarGz, system.path("../" + packageName))
|
|
58
|
+
system.writeLine("Created " + tarGz.absolute())
|
|
41
59
|
S3.put(
|
|
42
60
|
system
|
|
43
61
|
accessKeyId
|
|
44
62
|
secretAccessKey
|
|
45
63
|
"eu-central-1"
|
|
46
64
|
"firefly-site"
|
|
47
|
-
"site/packages/ff/
|
|
48
|
-
|
|
65
|
+
"site/packages/ff/" + packageName + "/" + tarGz.base()
|
|
66
|
+
tarGz.readBuffer()
|
|
49
67
|
headers = [
|
|
50
68
|
Pair("Content-Type", "application/x-gzip")
|
|
51
69
|
]
|
|
52
70
|
)
|
|
53
|
-
|
|
54
|
-
// git commit
|
|
55
|
-
// git push
|
|
56
71
|
}
|
|
57
72
|
|
|
58
73
|
requireNpmLoggedIn(system: NodeSystem, workingDirectory: Path) {
|
|
@@ -95,9 +110,9 @@ runSuccessful(system: NodeSystem, command: String, arguments: List[String], work
|
|
|
95
110
|
out.standardOut
|
|
96
111
|
}
|
|
97
112
|
|
|
98
|
-
bumpMinorVersion(system: NodeSystem, packageJsonPath: Path) {
|
|
113
|
+
bumpMinorVersion(system: NodeSystem, packageJsonPath: Path): String {
|
|
99
114
|
let prefix = " \"version\": \""
|
|
100
|
-
mutable
|
|
115
|
+
mutable newVersions = []
|
|
101
116
|
system.writeLine("")
|
|
102
117
|
system.writeLine("Bumping version in " + packageJsonPath.absolute())
|
|
103
118
|
let newContent = packageJsonPath.readText().lines().map {
|
|
@@ -108,18 +123,21 @@ bumpMinorVersion(system: NodeSystem, packageJsonPath: Path) {
|
|
|
108
123
|
} {
|
|
109
124
|
patch.getInt() | Some(p)
|
|
110
125
|
} =>
|
|
111
|
-
bumps += 1
|
|
112
126
|
let newVersion = major + "." + minor + "." + (p + 1)
|
|
127
|
+
newVersions = [...newVersions, newVersion]
|
|
113
128
|
system.writeLine("Will bump version: " + v + " to " + newVersion)
|
|
114
129
|
prefix + newVersion + "\","
|
|
115
130
|
| line =>
|
|
116
131
|
line
|
|
117
132
|
}.join("\n")
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
133
|
+
newVersions.{
|
|
134
|
+
| [newVersion] =>
|
|
135
|
+
packageJsonPath.writeText(newContent)
|
|
136
|
+
newVersion
|
|
137
|
+
| _ =>
|
|
138
|
+
system.writeErrorLine("Failed to bump version.")
|
|
139
|
+
system.exit(1)
|
|
121
140
|
}
|
|
122
|
-
packageJsonPath.writeText(newContent)
|
|
123
141
|
}
|
|
124
142
|
|
|
125
143
|
internalMakeTarGz(tarGzPath: Path, path: Path): Unit
|
package/package.json
CHANGED