diff --git a/packages/runtime-handler/CHANGELOG.md b/packages/runtime-handler/CHANGELOG.md new file mode 100644 index 00000000..27305e6b --- /dev/null +++ b/packages/runtime-handler/CHANGELOG.md @@ -0,0 +1,10 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + + +## 1.0.1 (2021-04-16) + + + diff --git a/packages/runtime-handler/README.md b/packages/runtime-handler/README.md new file mode 100644 index 00000000..46356650 --- /dev/null +++ b/packages/runtime-handler/README.md @@ -0,0 +1,7 @@ +# `@twilio/runtime-handler` + +This package defines the Twilio Functions Runtime version. + +## License + +MIT diff --git a/packages/runtime-handler/__tests__/runtime-handler.test.ts b/packages/runtime-handler/__tests__/runtime-handler.test.ts new file mode 100644 index 00000000..88e7da8c --- /dev/null +++ b/packages/runtime-handler/__tests__/runtime-handler.test.ts @@ -0,0 +1,9 @@ +'use strict'; + +const runtimeHandler = require('..'); + +describe('@twilio/runtime-handler', () => { + test('exports nothing', () => { + expect(runtimeHandler).toEqual({}); + }); +}); diff --git a/packages/runtime-handler/jest.config.js b/packages/runtime-handler/jest.config.js new file mode 100644 index 00000000..b016a213 --- /dev/null +++ b/packages/runtime-handler/jest.config.js @@ -0,0 +1,12 @@ +const base = require('../../jest.config.base.js'); + +module.exports = { + ...base, + globals: { + 'ts-jest': { + tsConfig: './tsconfig.test.json', + }, + }, + name: 'serverless-api', + displayName: 'serverless-api', +}; diff --git a/packages/runtime-handler/package.json b/packages/runtime-handler/package.json new file mode 100644 index 00000000..7a8d1248 --- /dev/null +++ b/packages/runtime-handler/package.json @@ -0,0 +1,51 @@ +{ + "name": "@twilio/runtime-handler", + "version": "1.0.1", + "description": "Stub runtime for Twilio Functions", + "keywords": [ + "twilio", + "twilio-functions" + ], + "author": "Twilio Inc. (https://www.twilio.com/labs)", + "homepage": "https://github.com/twilio-labs/serverless-toolkit/tree/main/packages/runtime-handler#readme", + "license": "MIT", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "directories": { + "src": "src", + "test": "__tests__", + "dist": "dist" + }, + "files": [ + "dist", + "!dist/**/__tests__/*" + ], + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/twilio-labs/serverless-toolkit.git" + }, + "scripts": { + "jest": "jest", + "test": "run-s build:noemit jest", + "build": "tsc", + "watch": "tsc --watch", + "build:noemit": "tsc --noEmit", + "docs": "typedoc --options typedoc.json", + "clean": "rimraf ./dist", + "prepack": "run-s clean build" + }, + "devDependencies": { + "@types/jest": "^24.0.16", + "jest": "^24.8.0", + "npm-run-all": "^4.1.5", + "rimraf": "^2.6.3", + "ts-jest": "^24.0.2", + "typescript": "^3.8.3" + }, + "bugs": { + "url": "https://github.com/twilio-labs/serverless-toolkit/issues" + } +} diff --git a/packages/runtime-handler/src/index.ts b/packages/runtime-handler/src/index.ts new file mode 100644 index 00000000..ff7bd09c --- /dev/null +++ b/packages/runtime-handler/src/index.ts @@ -0,0 +1 @@ +// placeholder diff --git a/packages/runtime-handler/tsconfig.json b/packages/runtime-handler/tsconfig.json new file mode 100644 index 00000000..9d37ca3a --- /dev/null +++ b/packages/runtime-handler/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "declaration": true, + "outDir": "./dist" /* Redirect output structure to the directory. */ + }, + "exclude": ["node_modules", "**/*.test.ts", "dist", "**/__mocks__/*.ts"] +} diff --git a/packages/runtime-handler/tsconfig.test.json b/packages/runtime-handler/tsconfig.test.json new file mode 100644 index 00000000..8dabc9e8 --- /dev/null +++ b/packages/runtime-handler/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "incremental": true + } +}