Coder Social home page Coder Social logo

typescript-starter's Introduction

@ailo/typescript-starter

Ailo Typescript library repo starter.

Features:

  • TS strict preconfigured
  • unit tests using Jest
  • prettier, eslint, lint-staged, husky
  • watch mode (run yarn start to run build compiler & unit tests in watch mode)
  • two build targets: normal es2017, and esnext module

To start a new library (@ailo/new-awesome-library):

  1. git clone [email protected]:ailohq/typescript-starter.git new-awesome-library && cd new-awesome-library
  2. Create a ailohq/new-awesome-library repo on GH. (And add permissions to the ailohq/core-team.)
  3. Add the repository to #ailo-code-activity Slack channel, so that the team can track commits pushed to remote by other people. The command is: /github subscribe ailohq/typescript-starter
  4. git remote rm origin && git remote add origin [email protected]:ailohq/new-awesome-library.git
  5. Search & replace everywhere in the repo typescript-starter to new-awesome-library.
  6. Remove existing src/** files and add your own ones.
  7. Remove @ailo/ailorn from package.json dependencies. Unless you actually need it. (It's added here just for a purpose of an example.)
  8. Replace this description here with something meaningful. (For example, with description and a usage example of your library.)

Note: There's no configuration here for CI (GoCD) yet. Releasing is done manually, and linters/tests/build are being run during each git push / yarn publish.

Development

yarn
yarn start

Testing

yarn lint # prettier and eslint
yarn test # unit tests
yarn test:watch # unit tests in watch mode
yarn validate # run linters, tests and build

Releasing

Note: Releasing is done manually. This project has no CI/CD configuration.

yarn release # will automatically ask you about version bump, run tests and build, and push new version to git & npm

typescript-starter's People

Contributors

jtomaszewski avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.