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

Commit dd8a326

Browse files
authored
Merge pull request #33 from SqueezerIO/v1.1.13
V1.1.13 - added travis support,coveralls
2 parents ad7ec5f + 2de6b69 commit dd8a326

42 files changed

Lines changed: 671 additions & 459 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coveralls.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
service_name: travis-ci
2+
repo_token: izHSamsjpr2hi48a2SGeDQneN4bwijcE2

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
public/
55
test-projects/
66
/docs
7-
/lib/plugins/templates/

.eslintrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"plugins": [],
44
"env": {
55
"node": true,
6+
"browser": true,
67
"mocha": true
78
},
89
"rules": {
@@ -30,16 +31,19 @@
3031
2,
3132
30
3233
],
34+
"react/react-in-jsx-scope" : 0,
35+
"react/jsx-filename-extension" : 0,
3336
"arrow-body-style": 0,
3437
"consistent-return": 0,
3538
"no-shadow-restricted-names": 2,
36-
"no-undef": 2,
39+
"no-undef": 0,
3740
"no-use-before-define": 2,
3841
"radix": 2,
3942
"semi": 2,
4043
"space-infix-ops": 2,
4144
"key-spacing": 0,
4245
"no-multi-spaces": 0,
46+
"import/extensions" : 0,
4347
"object-shorthand": [
4448
2,
4549
"consistent"

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
language: node_js
2+
3+
node_js:
4+
- "6"
5+
6+
services:
7+
- docker
8+
9+
before_install:
10+
- pip install --user awscli
11+
- export PATH=$PATH:$HOME/.local/bin
12+
13+
install:
14+
- travis_retry npm install
15+
16+
script:
17+
- npm run eslint
18+
- npm run jsinspect
19+
- aws configure --profile squeezer-test set aws_access_key_id $aws_access_key_id
20+
- aws configure --profile squeezer-test set aws_secret_access_key $aws_secret_access_key
21+
- aws configure --profile squeezer-test set region us-east-1
22+
- aws configure --profile squeezer-test set output json
23+
- npm run test-units
24+
- npm run test-integration
25+
26+
notifications:
27+
webhooks:
28+
urls:
29+
- https://webhooks.gitter.im/e/3c87287517b9672eb7d9
30+
on_success: change
31+
on_failure: always
32+
on_start: never

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ Please note we have a code of conduct, please follow it in all your interactions
1010
1. Lock down dependency versions `npm shrinkwrap`
1111
2. TravisCI will trigger linter check, js duplicate code scan and integration tests
1212

13+
## Tests
14+
15+
### Units
16+
17+
- `npm run test-units`
18+
19+
### Integration
20+
21+
- Please make sure that you have [Docker](https://docs.docker.com/engine/installation/) installed
22+
- [Configure an AWS profile](https://docs.squeezer.io/clouds/aws/aws_profile.html) named `squeezer-test`
23+
- `npm run test-integration`
24+
1325
## Code of Conduct
1426

1527
### Our Pledge

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Squeezer Framework [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)
2-
31
![Squeezer Intro](docs/gitbook/images/introduction.png)
42

53
## [Watch video](https://www.youtube.com/watch?v=DfRnJOZvtJg&t=3s)
@@ -8,6 +6,9 @@
86
### Docs : [docs.squeezer.io](https://docs.squeezer.io)
97
### Chat : [chat.squeezer.io](http://chat.squeezer.io)
108

9+
[![Build Status](https://travis-ci.org/SqueezerIO/squeezer.svg?branch=master)](https://travis-ci.org/SqueezerIO/squeezer)
10+
[![Coverage Status](https://coveralls.io/repos/github/SqueezerIO/squeezer/badge.svg?branch=master)](https://coveralls.io/github/SqueezerIO/squeezer?branch=master)
11+
[![npm version](https://badge.fury.io/js/squeezer-cli.svg)](https://badge.fury.io/js/squeezer-cli)
1112
[![Join the chat at https://gitter.im/SqueezerIO/squeezer](https://badges.gitter.im/SqueezerIO/squeezer.svg)](https://gitter.im/SqueezerIO/squeezer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1213

1314
![Quick Getting Started](docs/gitbook/images/getting-started-tutorial-quick.gif)
@@ -57,11 +58,11 @@ like on any other trivial NodeJS project
5758

5859
You can get various templates for creating a quick project stub :
5960

60-
| template | description |
61-
|-----|--------------|
61+
| template | description | |
62+
|-----|--------------|-------|
6263
|aws-api-nodejs|AWS generic API Hello World template
6364
|aws-api-nodejs-rest|AWS NodeJS REST API template + DynamoDB + Swagger support
64-
|aws-web-nodejs-reactjs|AWS NodeJS WebApp template + Pug ( ex-Jade ) + ReactJS support + Material UI + Bootstrap 3 styling
65+
|aws-web-nodejs-reactjs|AWS NodeJS WebApp template + Pug ( ex-Jade ) + ReactJS support + Material UI + Bootstrap 3 styling|[demo](https://dg3eevr06b.execute-api.us-east-1.amazonaws.com/dev)
6566

6667

6768
### Getting started
@@ -91,7 +92,7 @@ NOTE: **Windows** users should [enable symlinks](http://answers.perforce.com/art
9192
| | cmd | description |
9293
|----|-----|--------------|
9394
| 1. | **sqz compile --production** | Compile microservices |
94-
| 2. | **sqz deploy** | Deploy your app into the cloud provider<br>*Note*: initial deployments can take longer <= **40 mins** |
95+
| 2. | **sqz deploy --stage dev** | Deploy your app into the cloud provider<br>*Note*: initial deployments can take longer <= **40 mins** |
9596

9697

9798
### Project Structure
@@ -109,4 +110,4 @@ NOTE: **Windows** users should [enable symlinks](http://answers.perforce.com/art
109110

110111
### Contributing
111112

112-
See [contributing.md](CONTRIBUTING.md) for contribution guidelines.
113+
See [contributing.md](CONTRIBUTING.md) for contribution guidelines

en.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

lib/common/cli/error/tests/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const expect = require('chai').expect;
55
module.exports = (sqz) => {
66
describe('sqz.common.cli.error.get()', () => {
77
it('should contain something', () => {
8-
expect(sqz.common.cli.error.get('DISPLAY THIS')).to.contain('DISPLAY THIS');
8+
expect(sqz.cli.error.get('DISPLAY THIS')).to.contain('DISPLAY THIS');
99
});
1010
});
1111
};

lib/common/cli/loader/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ class Loader {
2323
* @name this.sqz.cli.loader.stop
2424
*/
2525
stop() {
26-
process.stdout.clearLine();
27-
process.stdout.cursorTo(0);
26+
if (process.stdout.clearLine) {
27+
process.stdout.clearLine();
28+
process.stdout.cursorTo(0);
29+
}
2830
clearInterval(this.loaderInterval);
2931
}
3032
}

lib/common/cli/params/tests/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ const expect = require('chai').expect;
55
module.exports = (sqz) => {
66
describe('sqz.common.cli.params.list()', () => {
77
it('should be an object', () => {
8-
expect(sqz.common.cli.params.get()).to.be.an('object');
9-
});
10-
11-
it('should deep contain something', () => {
12-
expect(sqz.common.cli.params.get().options).to.deep.equal({ msg : ['hello'] });
8+
expect(sqz.cli.params.get()).to.be.an('object');
139
});
1410
});
1511
};

0 commit comments

Comments
 (0)