@bitaccess/ts-config

1.3.5 • Public • Published

ts-config

Common typescript config

Usage

npm i -D bitaccess/ts-config

Extend the files needed.

Examples

jest.config.js

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

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

tsconfig.json

{
  "extends": "@bitaccess/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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.5
    27
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.5
    27

Package Sidebar

Install

npm i @bitaccess/ts-config

Weekly Downloads

16

Version

1.3.5

License

MIT

Unpacked Size

11.9 kB

Total Files

38

Last publish

Collaborators

  • abhinavdev007
  • kite-robison-bcd
  • tyler.bit.haas
  • charzander
  • jordan-bravo
  • fduarte-bd
  • cai_bd
  • pdodgen-btcd
  • kriskrangle
  • shivbitcoin
  • g8-bd
  • bdbendavis
  • chandresh-bd
  • toby-farris-bd
  • ryanchesnut-bitcoindepot
  • ramandeep.singh_bitcoin
  • mdgart
  • rdbitaccess
  • grajbitcoindepot
  • stevenrokkala
  • rick.brennan
  • ravalesh_ba
  • gauravprabhukbitaccess
  • marcthompson
  • lpaseenba
  • charles-philippe
  • bitpotus
  • domleo