GithubHelp home page GithubHelp logo

mkwtys / selenic-webpack-plugin Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 3.26 MB

webpack plugin to add license header to bundle

License: MIT License

JavaScript 11.16% TypeScript 88.84%
webpack plugin license

selenic-webpack-plugin's Introduction

@selenic/webpack-plugin

Actions Status codecov npm version

@selenic/webpack-plugin is add license header to your bundle as follows.

/**
 * @license
 *
 * @selenic/webpack-plugin:
 *   version: 0.9.0
 *   license: MIT
 *   author: mkwtys <[email protected]>
 *
 * @selenic/core:
 *   version: 0.11.0
 *   license: MIT
 *   author: mkwtys <[email protected]>
 *   homepage: https://github.com/mkwtys/selenic
 *
 * base64-js:
 *   version: 1.3.1
 *   license: MIT
 *   author: T. Jameson Little <[email protected]>
 *   homepage: https://github.com/beatgammit/base64-js
 *
 * buffer:
 *   version: 4.9.2
 *   license: MIT
 *   author: Feross Aboukhadijeh <[email protected]>
 *   contributors: Romain Beauxis <[email protected]>, James Halliday <[email protected]>
 *   homepage: https://github.com/feross/buffer
 *
 * find-up:
 *   version: 3.0.0
 *   license: MIT
 *   author: Sindre Sorhus <[email protected]>
 *   homepage: https://github.com/sindresorhus/find-up
 *
 * ieee754:
 *   version: 1.1.13
 *   license: BSD-3-Clause
 *   author: Feross Aboukhadijeh <[email protected]>
 *   contributors: Romain Beauxis <[email protected]>
 *   homepage: https://github.com/feross/ieee754
 *
 * isarray:
 *   version: 1.0.0
 *   license: MIT
 *   author: Julian Gruber <[email protected]>
 *   homepage: https://github.com/juliangruber/isarray
 *
 * locate-path:
 *   version: 3.0.0
 *   license: MIT
 *   author: Sindre Sorhus <[email protected]>
 *   homepage: https://github.com/sindresorhus/locate-path
 *
 * p-limit:
 *   version: 2.2.0
 *   license: MIT
 *   author: Sindre Sorhus <[email protected]>
 *   homepage: https://github.com/sindresorhus/p-limit
 *
 * p-locate:
 *   version: 3.0.0
 *   license: MIT
 *   author: Sindre Sorhus <[email protected]>
 *   homepage: https://github.com/sindresorhus/p-locate
 *
 * p-try:
 *   version: 2.2.0
 *   license: MIT
 *   author: Sindre Sorhus <[email protected]>
 *   homepage: https://github.com/sindresorhus/p-try
 *
 * path-browserify:
 *   version: 0.0.1
 *   license: MIT
 *   author: James Halliday <[email protected]>
 *   homepage: https://github.com/substack/path-browserify
 *
 * path-exists:
 *   version: 3.0.0
 *   license: MIT
 *   author: Sindre Sorhus <[email protected]>
 *   homepage: https://github.com/sindresorhus/path-exists
 *
 * pkg-up:
 *   version: 3.1.0
 *   license: MIT
 *   author: Sindre Sorhus <[email protected]>
 *   homepage: https://github.com/sindresorhus/pkg-up
 *
 * process:
 *   version: 0.11.10
 *   license: MIT
 *   author: Roman Shtylman <[email protected]>
 *   homepage: https://github.com/shtylman/node-process
 *
 * punycode:
 *   version: 1.4.1
 *   license: MIT
 *   author: Mathias Bynens
 *   contributors: Mathias Bynens, John-David Dalton
 *   homepage: https://mths.be/punycode
 *
 * querystring-es3:
 *   version: 0.2.1
 *   license: MIT
 *   author: Irakli Gozalishvili <[email protected]>
 *   homepage: https://github.com/mike-spainhower/querystring
 *
 * semver:
 *   version: 7.3.2
 *   license: ISC
 *   homepage: https://github.com/npm/node-semver
 *
 * source-list-map:
 *   version: 2.0.1
 *   license: MIT
 *   author: Tobias Koppers @sokra
 *   homepage: https://github.com/webpack/source-list-map
 *
 * source-map:
 *   version: 0.6.1
 *   license: BSD-3-Clause
 *   author: Nick Fitzgerald <[email protected]>
 *   contributors: Tobias Koppers <[email protected]>, Duncan Beevers <[email protected]>, Stephen Crane <[email protected]>, Ryan Seddon <[email protected]>, Miles Elam <[email protected]>, Mihai Bazon <[email protected]>, Michael Ficarra <[email protected]>, Todd Wolfson <[email protected]>, Alexander Solovyov <[email protected]>, Felix Gnass <[email protected]>, Conrad Irwin <[email protected]>, usrbincc <[email protected]>, David Glasser <[email protected]>, Chase Douglas <[email protected]>, Evan Wallace <[email protected]>, Heather Arthur <[email protected]>, Hugh Kennedy <[email protected]>, David Glasser <[email protected]>, Simon Lydell <[email protected]>, Jmeas Smith <[email protected]>, Michael Z Goddard <[email protected]>, azu <[email protected]>, John Gozde <[email protected]>, Adam Kirkton <[email protected]>, Chris Montgomery <[email protected]>, J. Ryan Stinnett <[email protected]>, Jack Herrington <[email protected]>, Chris Truter <[email protected]>, Daniel Espeset <[email protected]>, Jamie Wong <[email protected]>, Eddy Bruël <[email protected]>, Hawken Rives <[email protected]>, Gilad Peleg <[email protected]>, djchie <[email protected]>, Gary Ye <[email protected]>, Nicolas Lalevée <[email protected]>
 *   homepage: https://github.com/mozilla/source-map
 *
 * url:
 *   version: 0.11.0
 *   license: MIT
 *   homepage: https://github.com/defunctzombie/node-url
 *
 * webpack:
 *   version: 4.43.0
 *   license: MIT
 *   author: Tobias Koppers @sokra
 *   homepage: https://github.com/webpack/webpack
 *
 * webpack-sources:
 *   version: 1.4.3
 *   license: MIT
 *   author: Tobias Koppers @sokra
 *   homepage: https://github.com/webpack/webpack-sources
 *
 */
...

Install

npm install --save-dev @selenic/webpack-plugin

Usage

To use @selenic/webpack-plugin, you need to set the optimize.minimize option to false. If you want to minify, use the minify plugin.

webpack.config.js:

import { SelenicWebpackPlugin } from '@selenic/webpack-plugin'
import TerserWebpackPlugin from 'terser-webpack-plugin'

...
plugins: [
  new TerserWebpackPlugin(options),
  new SelenicWebpackPlugin()
],
optimization: {
  minimize: false
}
...

License

MIT © mkwtys

selenic-webpack-plugin's People

Contributors

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

Stargazers

 avatar

Watchers

 avatar  avatar

selenic-webpack-plugin's Issues

multi versions

mkwtys/selenic#14

deps type changed.

function createLicenseHeader({ main, deps }?: {
    main?: Package;
    deps?: {
        [key: string]: Package | Package[];
    };
}): string;

add repository

When different from the homepage. Do not display if same.

{
  "homepage": "https://example.com",
  "repository": {
    "type": "git",
    "url": "git+ssh://[email protected]/mkwtys/selenic-webpack-plugin.git"
  }
}
 *   homepage: https://example.com
 *   repository: https://github.com/mkwtys/selenic-webpack-plugin

same:

{
  "homepage": "https://github.com/mkwtys/selenic-webpack-plugin",
  "repository": {
    "type": "git",
    "url": "git+ssh://[email protected]/mkwtys/selenic-webpack-plugin.git"
  }
}
 *   homepage: https://github.com/mkwtys/selenic-webpack-plugin

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: Cannot find preset's package (github>whitesource/merge-confidence:beta)

Dependency Dashboard

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

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/nodejs.yml
  • actions/checkout v4
  • actions/setup-node v4
  • codecov/codecov-action v3
npm
package.json
  • @selenic/core ^0.11.0
  • pkg-up ^4.0.0
  • webpack-sources ^3.0.0
  • @babel/cli 7.23.4
  • @babel/preset-env 7.23.6
  • @babel/preset-typescript 7.23.3
  • @types/jest 29.5.11
  • @types/memory-fs 0.3.7
  • @types/node 20.10.5
  • @types/pkg-up 3.1.0
  • @types/terser-webpack-plugin 3.0.0
  • @types/webpack 4.41.38
  • @types/webpack-sources 3.2.3
  • jest 29.7.0
  • memory-fs 0.5.0
  • rimraf 5.0.5
  • terser-webpack-plugin 3.1.0
  • typescript 5.3.3
  • webpack 4.47.0

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

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.