Skip to content

Richargh/flavoring-branding-npm-ts-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flavoring and Branding in TypeScript (Sandbox)

This is a code example of flexible nominal typing in typescript as shown by Atomic Object and also contains their Strongly-Typed Date String.

Features

Preconditions

Usage

  • Run tests npm run test

Created via

  • node --version > .nvmrc

    1. npm init -y

      1. configure npm by setting "private": true and engines to same node version as in the nvmrc

    2. npm i -D typescript @types/node ts-node

    3. npx tsc --init and configure outdir: "dist", "target": "es2017" and other things by preference

      1. Add "build": "tsc" to package.json.

    4. Add npm install -D mocha @types/mocha earljs

      1. Add "build": "mocha"` to package.json

      2. Add .mocharc.json containing "require": ["ts-node/register"], "spec": ["test/*/.spec.ts"]

      3. Add "types": ["mocha"] to tsconfig.json

      4. Wrap EarlJs Getting Started example in a mocha test/foo.spec.ts file

About

Flavoring and Branding in TypeScript (Sandbox)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published