Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/package json updates #4

Merged
merged 3 commits into from Feb 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/pr.yml
@@ -0,0 +1,24 @@
name: Serverless UI Build & Deploy Example Site

on: [pull_request]

jobs:
deploy-pr-preview:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "14.x"
- run: npm ci
- run: npm install -g @serverlessui/cli
- run: npm install -g aws-cdk
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- run: sui deploy --dir="./example-site/dist" --functions="./example-site/functions"
5 changes: 5 additions & 0 deletions README.md
@@ -1,5 +1,10 @@
# TODO

- README
- Sample site (Docs?) in this repo deployed with gh actions
- Tests
- Verify deployed packages to potentially removed cruft
- Verify Rollup build scripts
- Deploy lambda functions to the same API Gateway
- Allow for alias/buildId for predictable deploys
- Experiment with self-destructing stack
Empty file.
Empty file.
20 changes: 20 additions & 0 deletions example-site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions example-site/package.json
@@ -0,0 +1,15 @@
{
"name": "example",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@types/aws-lambda": "^8.10.71",
"typescript": "^4.1.4"
}
}
2 changes: 1 addition & 1 deletion lerna.json
Expand Up @@ -4,5 +4,5 @@
"packages": [
"packages/*"
],
"version": "0.2.0-alpha.5"
"version": "0.2.0-alpha.6"
}
7 changes: 4 additions & 3 deletions packages/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@serverlessui/cli",
"version": "0.2.0-alpha.5",
"version": "0.2.0-alpha.6",
"description": "Serverless UI CLI",
"types": "dist/types/src/cli.d.ts",
"bin": {
Expand All @@ -26,10 +26,11 @@
"docs",
"bin"
],
"author": "Jake Partusch <jakepartusch@gmail.com>",
"license": "MIT",
"dependencies": {
"@serverlessui/domain-app": "^0.2.0-alpha.5",
"@serverlessui/serverless-app": "^0.2.0-alpha.5",
"@serverlessui/domain-app": "^0.2.0-alpha.6",
"@serverlessui/serverless-app": "^0.2.0-alpha.6",
"cosmiconfig": "^7.0.0",
"glob": "^7.1.6",
"gluegun": "latest"
Expand Down
14 changes: 10 additions & 4 deletions packages/construct/package.json
@@ -1,7 +1,7 @@
{
"name": "@serverlessui/construct",
"version": "0.2.0-alpha.5",
"description": "",
"version": "0.2.0-alpha.6",
"description": "CDK constructs to support Serverless UI",
"main": "dist/index.js",
"types": "dist/types/src/index.d.ts",
"publishConfig": {
Expand All @@ -23,8 +23,14 @@
"@aws-cdk/aws-s3-deployment": "1.85.0",
"@aws-cdk/core": "1.85.0"
},
"author": "",
"license": "ISC",
"files": [
"tsconfig.json",
"dist",
"LICENSE",
"readme.md"
],
"author": "Jake Partusch <jakepartusch@gmail.com>",
"license": "MIT",
"devDependencies": {
"@rollup/plugin-typescript": "^8.1.1",
"@tsconfig/node10": "^1.0.7",
Expand Down
16 changes: 11 additions & 5 deletions packages/domain-application/package.json
@@ -1,7 +1,7 @@
{
"name": "@serverlessui/domain-app",
"version": "0.2.0-alpha.5",
"description": "",
"version": "0.2.0-alpha.6",
"description": "CDK Application to deploy a stack with a Hosted Zone and Wildcard Certificate",
"main": "dist/index.js",
"types": "dist/types/src/index.d.ts",
"publishConfig": {
Expand All @@ -14,15 +14,21 @@
},
"dependencies": {
"@aws-cdk/core": "1.85.0",
"@serverlessui/construct": "^0.2.0-alpha.5"
"@serverlessui/construct": "^0.2.0-alpha.6"
},
"devDependencies": {
"@rollup/plugin-typescript": "^8.1.1",
"@tsconfig/node10": "^1.0.7",
"rollup": "^2.38.5",
"typescript": "^4.1.3"
},
"author": "",
"license": "ISC",
"files": [
"tsconfig.json",
"dist",
"LICENSE",
"readme.md"
],
"author": "Jake Partusch <jakepartusch@gmail.com>",
"license": "MIT",
"gitHead": "4a136cf3777ae864939139dcaee277e9213fe925"
}
16 changes: 11 additions & 5 deletions packages/serverless-application/package.json
@@ -1,7 +1,7 @@
{
"name": "@serverlessui/serverless-app",
"version": "0.2.0-alpha.5",
"description": "",
"version": "0.2.0-alpha.6",
"description": "CDK Application to deploy a stack with a Hosted Zone and Wildcard Certificate",
"main": "dist/index.js",
"types": "dist/types/src/index.d.ts",
"publishConfig": {
Expand All @@ -14,7 +14,7 @@
},
"dependencies": {
"@aws-cdk/core": "1.85.0",
"@serverlessui/construct": "^0.2.0-alpha.5",
"@serverlessui/construct": "^0.2.0-alpha.6",
"nanoid": "^3.1.20"
},
"devDependencies": {
Expand All @@ -23,7 +23,13 @@
"rollup": "^2.38.5",
"typescript": "^4.1.3"
},
"author": "",
"license": "ISC",
"files": [
"tsconfig.json",
"dist",
"LICENSE",
"readme.md"
],
"author": "Jake Partusch <jakepartusch@gmail.com>",
"license": "MIT",
"gitHead": "4a136cf3777ae864939139dcaee277e9213fe925"
}