GithubHelp home page GithubHelp logo

selenic's Introduction

@selenic/core

Actions Status codecov npm version

selenic is create license header of packages.

Install

npm install @selenic/core

Usage

import { createLicenseHeader } from '@selenic/core'

createLicenseHeader({
  main: {
    name: 'main-pakcage',
    license: 'MIT'
  },
  deps: {
    'dep-package': {
      name: 'dep-package',
      license: 'MIT'
    },
    'dep-package2': [
      {
        name: 'dep-package2',
        version: '1.0.0',
        license: 'MIT'
      },
      {
        name: 'dep-package2',
        version: '2.0.0',
        license: 'MIT'
      },
      {
        name: 'dep-package2',
        version: '3.0.0',
        license: 'ISC'
      }
    ]
  }
})

// /**
//  * @license
//  *
//  * main-pakcage:
//  *   license: MIT
//  *
//  * dep-package:
//  *   license: MIT
//  *
//  * dep-package2:
//  *   version: 1.0.0, 2.0.0
//  *   license: MIT
//  *
//  *   version: 3.0.0
//  *   license: ISC
//  *
//  */

Related

License

MIT © mkwtys

selenic's People

Contributors

renovate-bot avatar renovate[bot] avatar mkwtys avatar dependabot[bot] avatar

Stargazers

Roman avatar

Watchers

 avatar  avatar

selenic's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/nodejs.yml
  • actions/checkout v4
  • actions/setup-node v4
  • codecov/codecov-action v4
npm
package.json
  • semver ^7.3.2
  • @babel/cli 7.24.8
  • @babel/preset-env 7.24.8
  • @babel/preset-typescript 7.24.7
  • @types/jest 29.5.12
  • @types/node 20.14.11
  • @types/semver 7.5.8
  • jest 29.7.0
  • rimraf 6.0.1
  • typescript 5.5.3

  • Check this box to trigger a request for Renovate to run again on this repository

cli

  • selenic command
  • based on project package.json, create a license header of dependencies

core: multi versions

If the package is bundled with multiple versions, to group headers by package

dependencies:

.
├── [email protected] (MIT)
│   └── [email protected] (MIT)
└── [email protected] (MIT)
    └── [email protected] (ISC)

current:

/**
 * @license
 *
 * a:
 *   version: 1.0.0
 *   license: MIT
 *
 * b:
 *   version: 1.0.0
 *   license: MIT
 *
 * c:
 *   version: 1.0.0
 *   license: MIT
 *
 * c:
 *   version: 2.0.0
 *   license: ISC
 *
 */

expected:

/**
 * @license
 *
 * a:
 *   version: 1.0.0
 *   license: MIT
 *
 * b:
 *   version: 1.0.0
 *   license: MIT
 *
 * c:
 *   version: 1.0.0
 *   license: MIT
 *
 *   version: 2.0.0
 *   license: ISC
 *
 */

babel build

specify targets using @babel/preset-env

{
  "presets": [
    [
      "@babel/preset-env",
      {
        "targets": {
          "node": 8
        }
      }
    ]
  ]
}

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.