Giter VIP home page Giter VIP logo

projen-from-git's Introduction

ProjenProjectFromGit

A projen project that can be used directly from a git repository w/o publishing.

Usage

Create your custom projen from git project with this simple command:

projen new --from @mrgrain/projen-from-git@mrgrain/projen-from-git

It is important to use the <package-name>@<git-remote> format, otherwise projen won't be able to correctly resolve the package. All protocols supported by npm are supported for <git-remote>, however limitations apply if you change the package manager (see below).

For your production packages you likely want to append a #<commit-ish> at the end of <git-remote>. For example mrgrain/projen-from-git#v0.0.0 would install the very first release of this package.

Configuration

All JsiiProject options are available and can be used as command line flag when running projen new. For a full list of the available flags, run projen new jsii --help.

projen dependency

By default, a ProjenProjectFromGit will take the latest version of projen as a dev dependency and any version as peer dependency. In practice this works okay, since most projen projects auto-updated to the latest version of projen.

However you might want to consider changing the peer dependency version constraint to the actual minimal required version.

Changed defaults

Option New default
packageManager "npm"
peerDependencyOptions.pinnedDevDependency false
projenrcTs true
releaseToNpm false

Limitations

Support for JavaScript & TypeScript only

Using a git repository requires all compiled files to be checked into version control. Currently it is not easily possible to check-in the jsii output files for any other languages.

Supported <git-remote> formats

Please refer to the documentation of your package manager for supported formats. When using yarn or pnpm the safest way is to use one of these two formats:

git+ssh://github.com/mrgrain/projen-from-git.git
git+https://github.com/mrgrain/projen-from-git.git

Authentication

Authentication is handled by package managers. Please do not open an issue if authentication does not work. The easiest way is to have a public repository and use an Open Source license.

projen-from-git's People

Contributors

mrgrain avatar projen-builder[bot] avatar

Watchers

 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.