Git Product home page Git Product logo

xunnamius / projector-lens-cli Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 3.2 MB

[TEMPLATE] CLI lens for Projector, a project management tool. This template is also a live example of a semantic-release + GitHub Actions CI/CD pipeline. Packages published by this repository are for example purposes only!

Home Page: https://www.npmjs.com/package/@xunnamius/projector

License: The Unlicense

JavaScript 46.91% Shell 0.28% TypeScript 52.81%
lint cli application app tool linting management project create creation

projector-lens-cli's Introduction

Black Lives Matter! Maintenance status Last commit timestamp Open issues Pull requests codecov Source license NPM version semantic-release

projector-lens-cli

A CLI template with GitHub Action workflows, CI/CD publishing and deployment automation scripts, and the like.

Published package not meant for public consumption! Do not install this!

Install

Note: NPM versions >=7 may need npm install --legacy-peer-deps until upstream peer dependency problems are resolved.

npm install @xunnamius/dummy-pkg-2
[additional details]

Note: you probably don't need to read through this! This information is primarily useful for those attempting to bundle this package or for people who have an opinion on ESM versus CJS.

This is a dual CJS2/ES module package. That means this package exposes both CJS2 and ESM entry points.

Loading this package via require(...) will cause Node and Webpack to use the CJS2 bundle entry point, disable tree shaking in Webpack 4, and lead to larger bundles in Webpack 5. Alternatively, loading this package via import { ... } from ... or import(...) will cause Node to use the ESM entry point in versions that support it, as will Webpack. Using the import syntax is the modern, preferred choice.

For backwards compatibility with Webpack 4 (compat with Webpack 4 is not guaranteed!) and Node versions < 14, package.json retains the module key, which points to the ESM entry point, and the main key, which points to the CJS2 entry point explicitly (using the .js file extension). For Webpack 5 and Node versions >= 14, package.json includes the exports key, which points to both entry points explicitly.

Though package.json includes { "type": "commonjs"}, note that the ESM entry points are ES module (.mjs) files. package.json also includes the sideEffects key, which is false for optimal tree shaking, and the types key, which points to a TypeScript declarations file.

Additionally, this package does not maintain shared state and so does not exhibit the dual package hazard. However, setting global configuration may not actually be "globally" recognized by third-party code importing this package.

Quick Start

import { sum } from '@xunnamius/dummy-pkg-2';

sum(2, 2); // = 4

Documentation

Project documentation can be found under docs/.

Contributing and Support

New issues and pull requests are always welcome and greatly appreciated! ๐Ÿคฉ Just as well, you can star ๐ŸŒŸ this project to let me know you found it useful! โœŠ๐Ÿฟ Thank you!

See CONTRIBUTING.md and SUPPORT.md for more information.

projector-lens-cli's People

Contributors

dependabot[bot] avatar xunn-bot avatar xunnamius avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

xunn-bot

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.