Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit 7f61cdc

Browse files
committed
fixed vars cloud compiling #1
1 parent 32d8f49 commit 7f61cdc

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v1.1.27 - 2018-02-22
2+
- fixed vars cloud compiling
3+
14
## v1.1.24 - 2018-01-25
25
- disabled functions compiling when changing "squeezer.yml" vars on local development
36
- added yarn to install the functions packages

lib/common/checksums/lib/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Data {
3737
const key = this.getKey();
3838
const apiBaseUrl = this.sqz.vars.apiBaseUrl;
3939
const endpoint = `${apiBaseUrl}/rest/v1/deployment/${key}`;
40-
resolve();
40+
4141
if (key) {
4242
request.get(endpoint, { json: true }, (error, response, body) => {
4343
if (!error && response.statusCode === 200 && body.message === 'success') {

lib/common/cli/loader/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Loader {
1313
* @name this.sqz.cli.loader.start
1414
*/
1515
start() {
16+
process.stdout.write('.');
1617
this.loaderInterval = setInterval(() => {
1718
process.stdout.write('.');
1819
}, 3000, true);
@@ -23,10 +24,11 @@ class Loader {
2324
* @name this.sqz.cli.loader.stop
2425
*/
2526
stop() {
26-
if (process.stdout.clearLine) {
27-
process.stdout.clearLine();
28-
process.stdout.cursorTo(0);
29-
}
27+
// if (process.stdout.clearLine) {
28+
// process.stdout.clearLine();
29+
// process.stdout.cursorTo(0);
30+
// }
31+
process.stdout.write('\n');
3032
clearInterval(this.loaderInterval);
3133
}
3234
}

lib/plugins/functions/lib/compile/lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class Compile {
6767
const source = path.join(functionObject.path, 'src');
6868
const output = path.join(projectPath, '.build', this.compileType, 'functions', functionObject.identifier);
6969

70+
fsExtra.emptyDirSync(output);
7071
fsExtra.ensureDirSync(output);
7172

7273
let compileCmds = [];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "squeezer-cli",
3-
"version": "1.1.24",
3+
"version": "1.1.27",
44
"preferGlobal": true,
55
"description": "Event-driven APIs & Web apps on functions, serverless ! Squeezer is a framework designed to help developers to get a better architecture on serverless zero-administration compute platforms with code that runs into cloud functions like [AWS Lambda](https://aws.amazon.com/documentation/lambda/) , [Azure Functions](https://azure.microsoft.com/en-us/services/functions/) , [Google Cloud Functions](https://cloud.google.com/functions/docs/) and [IBM OpenWhisk](https://developer.ibm.com/openwhisk/) .",
66
"homepage": "https://squeezer.io/",

0 commit comments

Comments
 (0)