Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nobrainr/typescript_server

nobrainr10ISC1.0.0

null

readme

create-ts-lib Backers on Open Collective Sponsors on Open Collective CircleCI Npm Package

Quick Start

You can execute the create-ts-lib CLI using npx or by installing it globally with npm i -g create-ts-lib.

# Use NPX or npm install -g create-ts-lib to install it as a global package
npx create-ts-lib@latest my-typescript-lib
cd my-typescript-lib && npm start

Build and Serve it

  • Browse http://localhost:3000/ to see your bootstrapped module.
  • A bundle is created under /dist folder.
  • Create a minified bundle with npm run build.

Features

You don’t need to install or configure tools like Webpack, Typescript, Karma or Jasmine.
They are preconfigured so that you can focus on the code, but as a starter kit you still can modify all the configuration files.

  • <input checked="" disabled="" type="checkbox"> (Application Type) Typescript 3
  • <input checked="" disabled="" type="checkbox"> (Bundler) Webpack 4
  • <input checked="" disabled="" type="checkbox"> Karma, Jasmine

Create a Typescript project

# Use NPX or npm install -g create-ts-lib to install it as a global package
npx create-ts-lib@latest my-typescript-lib
cd my-typescript-lib && npm start

Calling create-ts-lib with my-typescript-lib as an argument creates a directory my-typescript-lib inside the current directory.
Inside that directory, the initial file structure of the project is generated with all the devDependencies installed.

my-typescript-lib
├── node_modules
├── src
│   └── index.html
│   └── index.ts
│   └── MyLibrary.ts
│   └── MyLibrary.spec.ts
├── tests
│    └── unit
│        └── spec-bundle.js
├── README.md
├── package.json
├── .gitignore
├── karma.conf.js
├── tsconfig.json
├── tslint.json
└── webpack.config.js

No configuration or complicated folder structures, just the files you need to start your app / package / module.

npm start or npm run server:prod

Runs the app in development / production mode using Webpack dev server. Open http://localhost:3000 🎉 to view it in the browser.

npm test

Runs the unit tests using Karma as test runner and Jasmine as testing framework.

npm run build or npm run build:prod

Creates a bundle into the dist folder:

dist
├── MyLibrary.d.ts # - Example of a 'd.ts' declaration file
├── app.bundle.js # - Main bundle of the application. name from webpack.config
├── app.bundle.js.map # - Sourcemap
├── index.d.ts
└── index.html # - html page referencing app.bundle.js

Development

We'd love to have your helping hand on create-ts-lib! See CONTRIBUTING.md for more information on what we're looking for and how to get started.

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.1.0 (2018-02-10)

Bug Fixes

Features

  • Build: Run production build by default when running npm run build. (66c5489)
  • CI: Commit before this one says everything (7cff6db)
  • CI: Update Travis steps (48d1026)
  • CI: Update travis steps. Run E2E Tests (4fdcbb2)
  • CLI: 😒 (d01e35c)
  • CLI: Add CLI basic feature to handle project creation (95fec55)
  • CLI: Add mandatory shebang (0bc7b08)
  • CLI: Add template folder with minimal files to start the module / application (38657f9)
  • CLI: Ensure the cli is installed globally (9c52d42)
  • CLI: Script to create a basic typescript boilerplate with no build configuration (39f9c07)
  • configurations: Simplify the web pack configuration using a single file. Add cross-env dependency (4cadd5c)
  • continuous-integration: Continuous integration with Travis (fd5fa82)
  • dev-server: Add webpack-dashboard plugin to dev configuration (8d6e908)
  • dev-server: Add webpack-dev-server. (7e56319)
  • Remove create-ts-lib dependency. Add Lerna to handle multiple packages (4cc0d71)
  • Setup: Open the Browser tab when running npm start (9f78fd8)
  • Fix lerna version for all packages (efb8098)
  • Use Main project as a proxy for the CLI and scaffold a app when npm start (8f8f31b)
  • Doc: Add Development Section. Add CONTRIBUTING.md file (f0b6dc4)
  • Doc: Add framework info (e6f1ad1)
  • Doc: update readme.md (e11b027)
  • E2E: Add npm run build command to Test (fd57296)
  • Test: Add end to end test as another package (244c512)
  • Test: Show Unit Tests timing (cd663fe)
  • Tests: Minimal working configuration for Unit Tests and coverage with Karma, TypeScript and WebPack (4f7c84a)
  • Webpack: Add istanbul instrumenter loader configuration. File formatting (91a40c5)
  • webpack-dashboard: Integrate the Webpack dashboard (f8180af)