Skip to content

Commit 163a551

Browse files
authored
Merge pull request #201 from pharindoko/dev
merge Dev
2 parents 2df8a69 + f3c639a commit 163a551

Some content is hidden

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

93 files changed

+44555
-7667
lines changed

.DS_Store

2 KB
Binary file not shown.

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,11 @@ jspm_packages
66
.serverless
77
/dist
88
.env
9-
.webpack
9+
.webpack
10+
**/**/lerna_backup
11+
**/**/lerna-debug.log
12+
**/package.json.lerna_backup
13+
**/**/appconfig.json
14+
**/**/serverlessconfig.json
15+
**/.DS_Store
16+
.npmrc

.travis.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
sudo: required
22
dist: trusty
3-
3+
git:
4+
depth: false
45
language: node_js
56
cache:
67
directories:
@@ -9,18 +10,30 @@ notifications:
910
email: true
1011
node_js:
1112
- '10'
12-
install: npm ci
13+
install: make install
1314
jobs:
1415
include:
15-
- stage: build
16+
- stage: build-server
17+
before_script: cd packages/server
1618
script:
1719
- npm run build
18-
- stage: test
20+
- stage: build-cli
21+
before_script: cd packages/cli
22+
script:
23+
- npm run build
24+
- bin/run --version
25+
- stage: test-server
26+
before_script: cd packages/server
1927
script:
2028
- npm run test
2129
- npx snyk test
2230
- stage: release
23-
if: branch = master
31+
if: (type = push AND branch = master)
32+
before_script:
33+
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
34+
- git remote add pub https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
35+
- git fetch pub master
36+
- git checkout master
2437
script:
25-
- npx semantic-release
26-
38+
- make fake-credentials
39+
- make publish

docs/CHANGELOG.md renamed to CHANGELOG.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,58 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
## [1.5.7](https://github.com/pharindoko/json-serverless/compare/v1.5.6...v1.5.7) (2019-12-31)
7+
8+
**Note:** Version bump only for package json-serverless
9+
10+
11+
12+
13+
## [1.5.6](https://github.com/pharindoko/json-serverless/compare/v1.5.3...v1.5.6) (2019-12-30)
14+
15+
16+
### Features
17+
18+
* **cli:** add cli to json-serverless project ([bf1213a](https://github.com/pharindoko/json-serverless/commit/bf1213a1ad18c59ae3cafacd8a6cb3c737caf6cc))
19+
20+
21+
### Reverts
22+
23+
* Revert "v0.1.0-alpha.0" ([ccc6a6d](https://github.com/pharindoko/json-serverless/commit/ccc6a6d3e6bb349d8c51b83375610f8db25a762f))
24+
* Revert "v0.0.6-alpha.16" ([8a7f087](https://github.com/pharindoko/json-serverless/commit/8a7f08784289b7936c704caecfbb8f757719b876))
25+
* Revert "v0.0.6-alpha.10" ([dfb59d2](https://github.com/pharindoko/json-serverless/commit/dfb59d2458dfa2fb3e1426f1749409abfa4dd37d))
26+
27+
28+
29+
30+
31+
## [1.5.5](https://github.com/pharindoko/json-serverless/compare/v1.5.4...v1.5.5) (2019-12-30)
32+
33+
**Note:** Version bump only for package json-serverless
34+
35+
36+
37+
38+
39+
## [0.0.6](https://github.com/pharindoko/json-serverless/compare/v1.5.3...v0.0.6) (2019-12-30)
40+
41+
42+
### Features
43+
44+
* **cli:** add cli to json-serverless project ([bf1213a](https://github.com/pharindoko/json-serverless/commit/bf1213a1ad18c59ae3cafacd8a6cb3c737caf6cc))
45+
46+
47+
### Reverts
48+
49+
* Revert "v0.1.0-alpha.0" ([ccc6a6d](https://github.com/pharindoko/json-serverless/commit/ccc6a6d3e6bb349d8c51b83375610f8db25a762f))
50+
* Revert "v0.0.6-alpha.16" ([8a7f087](https://github.com/pharindoko/json-serverless/commit/8a7f08784289b7936c704caecfbb8f757719b876))
51+
* Revert "v0.0.6-alpha.10" ([dfb59d2](https://github.com/pharindoko/json-serverless/commit/dfb59d2458dfa2fb3e1426f1749409abfa4dd37d))
52+
53+
54+
55+
156
## [1.5.3](https://github.com/pharindoko/json-serverless/compare/v1.5.2...v1.5.3) (2019-12-15)
257

358

Makefile

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
SHELL := /bin/bash
2+
.DEFAULT_GOAL := help
3+
4+
.PHONY: help
5+
help: ## help target to show available commands with information
6+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
7+
8+
.PHONY: install
9+
install:
10+
npm i
11+
npx lerna bootstrap
12+
13+
.PHONY: download
14+
download:
15+
npm i -g json-serverless
16+
jsonsls
17+
18+
.PHONY: publish-manually
19+
publish-manually:
20+
ifndef GH_TOKEN
21+
$(error GH_TOKEN is undefined)
22+
endif
23+
make install
24+
npx lerna version --include-merged-tags --force-publish --conventional-commits --create-release github
25+
npx lerna publish from-git --yes
26+
27+
.PHONY: publish
28+
publish:
29+
ifndef GH_TOKEN
30+
$(error GH_TOKEN is undefined)
31+
endif
32+
make install
33+
git status
34+
npx lerna version patch -m "chore(release): Travis CI update [ci skip]" --include-merged-tags --force-publish --conventional-commits --create-release github --yes --git-remote pub
35+
npx lerna publish from-git --yes
36+
37+
.PHONY: start-test
38+
start-test:
39+
make install
40+
npx lerna run --scope json-serverless --stream test:start
41+
42+
.PHONY: deploy-test
43+
deploy-test:
44+
make install
45+
npx lerna run --scope json-serverless --stream test:create-stack
46+
47+
.PHONY: fake-credentials
48+
fake-credentials:
49+
mkdir -p ~/.aws
50+
touch ~/.aws/credentials
51+
echo -e "[default]\naws_access_key_id=xxxx\naws_secret_access_key=xxx" > ~/.aws/credentials
52+
echo -e "[profile default]\nregion=eu-central-1" > ~/.aws/config

config/serverlessconfig.json

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

db.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"posts": [
3-
{ "id": 1, "title": "json-server", "author": "typicode" }
3+
{ "id": 1, "title": "json-server", "author": "typicode" },
4+
{ "id": 2, "title": "test", "author": "yourAuthor" }
45
],
56
"comments": [
67
{ "id": 1, "body": "some comment", "postId": 1 }

lerna.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"packages": [
3+
"packages/cli",
4+
"packages/cli/template",
5+
"packages/server"
6+
],
7+
"version": "1.5.7"
8+
}

0 commit comments

Comments
 (0)