GithubHelp home page GithubHelp logo

renovate-tests / proem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wunderdogsw/proem

0.0 0.0 0.0 676 KB

Typescript standard library

License: MIT License

JavaScript 4.85% TypeScript 95.15%

proem's Introduction

CircleCI branch Commitizen friendly npm

Proem

TypeScript standard library.

Developing

You need yarn

Commits should be made with commitizen. There is a node script for it in package.json, so instead of git commit just write:

yarn commit

You can write the commit message yourself, but it has to comply with the "conventional" commit structure. See https://github.com/conventional-changelog/commitlint#what-is-commitlint

Don't forget to add your name into package/package.json contributors!

Test with

yarn test

Run tests in watch mode

yarn test:watch

Add dependencies

The project uses yarn workspaces.

The root package.json is the workspace root, and package/package.json is the actual npm package.

You can add a dependency for the root project with

yarn add -W dep1

and adding deps to the proem library works with

yarn workspace proem add dep1 dep2

Build with

yarn build

The compiled files can be found at package/. The files in package/ are never committed to the repository, except for package.json. The reason for this strange structure is that multi-file packages are difficult to handle with npm.

We want the proem package to consist of many submodules that can be imported with a syntax like import * as array from 'proem/array'. Because of the way node module resolution works, this is only possible if all the files are at the root of the npm package folder. Usually we would deploy the repository root as the npm package, but we don't want to pollute it with compilation artifacts. By building the files into package/ and treating it as the proem npm package root, we can have the nice imports, and not make a mess of the repository root.

This of course means that if proem needs dependencies, they should be added to package/package.json, but those should be rare. The whole point of proem is to provide useful utilities while avoiding a ton of external dependencies.

You can clean the package/ folder with the command

yarn clean

proem's People

Contributors

deiga avatar dependabot-support avatar dependabot[bot] avatar katis avatar renovate-bot avatar villhei 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.