@kiwicom/overlord
A layer on top of Next.js for building customer-facing Kiwi.com apps
Last updated 36 minutes ago by robincsl_kiwi .
Repository · Original npm · Tarball · package.json
$ cnpm install @kiwicom/overlord 
SYNC missed versions from official npm registry.

Overlord

???? One package to rule them all,

???? One package to find them,

✈️ One package to bring them all,

???? and in the awesomeness bind them.


Overlord:

  • is a Kiwi.com tailored layer on top of Next.js,
  • will power customer-facing FE apps,
  • handles setting up tooling and deps management.

► developers take care of developing features.

Repository: https://gitlab.skypicker.com/frontend/overlord Documentation: Coming soon.

Installation

To add @kiwicom/overlord to your project, run

yarn add @kiwicom/overlord
# or
npm i --save @kiwicom/overlord

You can also bootstrap a new frontend application with

npx @kiwicom/overlord init <destination-folder>

overlord CLI

Usage

$ npm install -g @kiwicom/overlord
$ overlord COMMAND
running command...
$ overlord (-v|--version|version)
@kiwicom/overlord/2.4.0 darwin-x64 node-v12.19.0
$ overlord --help [COMMAND]
USAGE
  $ overlord COMMAND
...

Commands

overlord copy-smartfaq-keys

A helper to add SmartFAQ's translation keys to Nitro-generated data/tkeys.json file. It should run before 'yarn nitro translations'.

USAGE
  $ overlord copy-smartfaq-keys

overlord help [COMMAND]

display help for overlord

USAGE
  $ overlord help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

overlord init [DESTINATION]

Initialize a new Overlord-powered FE app

USAGE
  $ overlord init [DESTINATION]

OPTIONS
  --name=name

EXAMPLES
  $ overlord init <destination>
  $ overlord init <destination> --name @kiwicom/fe-app

overlord keys

[deprecated] Extract translation keys from files in the current directory

USAGE
  $ overlord keys

OPTIONS
  -e, --extensions=extensions  [default: ts,tsx,js,jsx] comma-separated list of file extensions to extract translations
                               keys

  -p, --paths=paths            [default: pages,components,src] comma-separated list of folders to extract translations
                               keys

EXAMPLES
  $ overlord keys
  $ overlord keys -p pages,components,src -e ts,tsx

overlord static-scripts [DESTINATION]

Generate static data scripts

USAGE
  $ overlord static-scripts [DESTINATION]

ARGUMENTS
  DESTINATION  [default: public/data/scripts] output files destination

OPTIONS
  --data=data  [default: data] data folder with static data fetched by Nitro, required by Nitro's load function

EXAMPLE
  $ overlord static-scripts <destination>

overlord test

Run test suite in your project

USAGE
  $ overlord test

DESCRIPTION
  This is just a convenience wrapper for Jest. Out of the box, it will use some default configuration which should cover 
  most of the needs for Kiwi.com frontends.
     Should you need to tweak the configuration, you could create a 'jest.config.js' file, with the following contents 
  to add a file to 'setupFilesAfterEnv' for example:
     ```
     const defaultConfig = require('@kiwicom/overlord/bin/config/jest').default;

     module.exports = {
      ...defaultConfig,
      setupFilesAfterEnv: [...defaultConfig.setupFilesAfterEnv, 'your-file'],
     }
     ```

EXAMPLES
  $ overlord test
  $ overlord test --coverage
  $ overlord test --watch
  $ overlord test [--flags accepted by jest]

Current Tags

  • 2.4.0                                ...           latest (36 minutes ago)

27 Versions

  • 2.4.0                                ...           36 minutes ago
  • 2.3.3                                ...           9 days ago
  • 2.3.2                                ...           12 days ago
  • 2.3.1                                ...           13 days ago
  • 2.3.0                                ...           15 days ago
  • 2.2.2                                ...           19 days ago
  • 2.2.1                                ...           20 days ago
  • 2.2.0 [deprecated]           ...           21 days ago
  • 2.1.1                                ...           a month ago
  • 2.1.0                                ...           a month ago
  • 2.0.1                                ...           2 months ago
  • 2.0.0                                ...           2 months ago
  • 1.6.0                                ...           2 months ago
  • 1.5.0                                ...           2 months ago
  • 1.4.0                                ...           4 months ago
  • 1.3.1                                ...           4 months ago
  • 1.3.0 [deprecated]           ...           5 months ago
  • 1.2.0                                ...           5 months ago
  • 1.1.0                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
  • 0.1.6                                ...           7 months ago
  • 0.1.5                                ...           8 months ago
  • 0.1.4                                ...           8 months ago
  • 0.1.3                                ...           9 months ago
  • 0.1.2                                ...           9 months ago
  • 0.1.1                                ...           9 months ago
  • 0.1.0                                ...           9 months ago
Downloads
Today 8
This Week 8
This Month 68
Last Day 0
Last Week 8
Last Month 59
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |