1.3.5 • Published 4 years ago

@faast/ts-config v1.3.5

Weekly downloads
292
License
MIT
Repository
github
Last release
4 years ago

faast-ts-config

Common typescript config

Usage

npm i -D go-faast/faast-ts-config

Extend the files needed.

Examples

jest.config.js

const base = require('@faast/ts-config/library/jest.config.js')

module.exports = Object.assign({}, base, {
  // overrides here
})

tsconfig.json

{
  "extends": "@faast/ts-config/library/tsconfig.json",
  "compilerOptions": {
    "baseUrl": ".",
    "outDir": "dist/lib",
    "declarationDir": "dist/types",
    "paths": {
      "#/*": ["./src/*"],
    }
  },
  "exclude": ["node_modules", "dist"]
}

Templates

To initialize a new project from scratch copy the entire template directory. If migrating an existing project you'll need to copy over only desired files manually to avoid overwriting src and package.json.

For Libraries

cp -r ./template/library/. /path/to/empty/project

For Servers

cp -r ./template/server/. /path/to/empty/project

For React Frontends (using webpack)

cp -r ./template/react/. /path/to/empty/project
1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.10

5 years ago