@toptal/davinci-engine

11.0.10 • Public • Published

@toptal/davinci-engine

Starts and builds your project. Under the hood, it covers webpack with the default webpack configuration.

Usage

Use it by installing yarn add @toptal/davinci-engine in your project.

Commands

Environment variables

We filter environment variables to be sure that only needed variables are handled, so if you want to have variables passed, you need to

  • use DAVINCI_ prefix. E.g. DAVINCI_PLATFORM_URL=http://localhost:3000
  • use .env file. davinci-engine reads all variables from .env irrespective of DAVINCI_ prefix. If --dotenv argument set to auto value, the variables are loaded from the environment-specific files in the following order:
    • .env.[NODE_ENV].local - for untracked, local overrides
    • .env.[NODE_ENV]
    • .env

Available environment variables

There is a global DAVINCI_RELEASE_VERSION variable that you can use inside your application, it is a unique release tag that you can pass to Sentry or Rollbar to associate javascript errors with particular releases. It is passed down on release stage of deployment process. Please don't forget to provide default value for other environments.

Setting up a reverse proxy

You can learn more about setting up and configuring Davinci's reverse proxy here.

Webpack aliases

Davinci is using resolve-ts-aliases which proxies aliases in the project's tsconfig go to the webpack config.

IDE Tooling

This package can be used directly in your IDE through these extensions

Readme

Keywords

none

Package Sidebar

Install

npm i @toptal/davinci-engine

Weekly Downloads

3,588

Version

11.0.10

License

SEE LICENSE IN LICENSE.MD

Unpacked Size

253 kB

Total Files

76

Last publish

Collaborators

  • talbot