sentry-webpack-plugin:Sentry https的官方Webpack插件

  • p1_831309
    了解作者
  • 141.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-11 02:01
    上传日期
Sentry Webpack插件 一个Webpack插件,充当的接口。 安装 使用npm: $ npm install @sentry/webpack-plugin --save-dev 使用纱: $ yarn add @sentry/webpack-plugin --dev CLI配置 您可以使用描述的.sentryclirc文件或ENV变量。 用法 const SentryCliPlugin = require ( '@sentry/webpack-plugin' ) ; const config = { plugins : [ new SentryCliPlugin ( { include : '.' , ignoreFile : '.sentrycliignore' , ignore : [ 'node_modules' , '
sentry-webpack-plugin-master.zip
  • sentry-webpack-plugin-master
  • .gitignore
    78B
  • .eslintrc
    98B
  • package.json
    1.3KB
  • src
  • sentry.loader.js
    412B
  • sentry-webpack.module.js
    25B
  • index.js
    13.2KB
  • __tests__
  • index.spec.js
    16.3KB
  • cjs.js
    45B
  • jest.config.js
    113B
  • LICENSE
    1KB
  • CHANGELOG.md
    2.5KB
  • .github
  • workflows
  • codeql-analysis.yml
    2.3KB
  • release.yml
    1.2KB
  • build.yml
    488B
  • ci.yml
    685B
  • scripts
  • craft-pre-release.sh
    183B
  • README.md
    8.6KB
  • example
  • package.json
    532B
  • webpack.config.js
    784B
  • index.js
    71B
  • bar.js
    62B
  • test.js
    607B
  • yarn.lock
    98.5KB
  • .vscode
  • settings.json
    287B
  • extensions.json
    177B
  • .craft.yml
    255B
  • .npmignore
    86B
  • .prettierrc
    97B
  • yarn.lock
    232KB
  • index.d.ts
    5.8KB
内容介绍
<p align="center"> <a href="https://sentry.io" target="_blank" align="center" rel='nofollow' onclick='return false;'> <img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" width="280"> </a> <br/> <h1>Sentry Webpack Plugin</h1> </p> [![Travis](https://img.shields.io/travis/getsentry/sentry-webpack-plugin.svg?maxAge=2592000)](https://travis-ci.org/getsentry/sentry-webpack-plugin) [![codecov](https://codecov.io/gh/getsentry/sentry-webpack-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/getsentry/sentry-webpack-plugin) [![npm version](https://img.shields.io/npm/v/@sentry/webpack-plugin.svg)](https://www.npmjs.com/package/@sentry/webpack-plugin) [![npm dm](https://img.shields.io/npm/dm/@sentry/webpack-plugin.svg)](https://www.npmjs.com/package/@sentry/webpack-plugin) [![npm dt](https://img.shields.io/npm/dt/@sentry/webpack-plugin.svg)](https://www.npmjs.com/package/@sentry/webpack-plugin) [![deps](https://david-dm.org/getsentry/sentry-webpack-plugin/status.svg)](https://david-dm.org/getsentry/sentry-webpack-plugin?view=list) [![deps dev](https://david-dm.org/getsentry/sentry-webpack-plugin/dev-status.svg)](https://david-dm.org/getsentry/sentry-webpack-plugin?type=dev&view=list) [![deps peer](https://david-dm.org/getsentry/sentry-webpack-plugin/peer-status.svg)](https://david-dm.org/getsentry/sentry-webpack-plugin?type=peer&view=list) A webpack plugin acting as an interface to [Sentry CLI](https://docs.sentry.io/learn/cli/). ### Installation Using npm: ``` $ npm install @sentry/webpack-plugin --save-dev ``` Using yarn: ``` $ yarn add @sentry/webpack-plugin --dev ``` ### CLI Configuration You can use either `.sentryclirc` file or ENV variables described here https://docs.sentry.io/cli/configuration. ### Usage ```js const SentryCliPlugin = require('@sentry/webpack-plugin'); const config = { plugins: [ new SentryCliPlugin({ include: '.', ignoreFile: '.sentrycliignore', ignore: ['node_modules', 'webpack.config.js'], configFile: 'sentry.properties', }), ], }; ``` Also, check the [example](example) directory. #### Options | Option | Type | Required | Description | ---------|------|----------|------------- | include | `string`/`array` | required | One or more paths that Sentry CLI should scan recursively for sources. It will upload all `.map` files and match associated `.js` files. | | org | `string` | optional | The slug of the Sentry organization associated with the app. | | project | `string` | optional | The slug of the Sentry project associated with the app. | | authToken | `string` | optional | The authentication token to use for all communication with Sentry. Can be obtained from https://sentry.io/settings/account/api/auth-tokens/. Required scopes: `project:releases` (and `org:read` if `setCommits` option is used). | | url | `string` | optional | The base URL of your Sentry instance. Defaults to https://sentry.io/, which is the correct value for SAAS customers. | | vcsRemote | `string` | optional | The name of the remote in the version control system. Defaults to `origin`. | | release | `string` | optional | Unique identifier for the release. Defaults to the output of the `sentry-cli releases propose-version` command, which automatically detects values for Cordova, Heroku, AWS CodeBuild, CircleCI, Xcode, and Gradle, and otherwise uses `HEAD`'s commit SHA. (**For `HEAD` option, requires access to `git` CLI and for the root directory to be a valid repository**). | | dist | `string` | optional | Unique identifier for the distribution, used to further segment your release. Usually your build number. | | entries | `array`/`RegExp`/`function(key: string): bool` | optional | Filter for entry points that should be processed. By default, the release will be injected into all entry points. | | ignoreFile | `string` | optional | Path to a file containing list of files/directories to ignore. Can point to `.gitignore` or anything with the same format. | | ignore | `string`/`array` | optional | One or more paths to ignore during upload. Overrides entries in `ignoreFile` file. If neither `ignoreFile` nor `ignore` is present, defaults to `['node_modules']`. | | configFile | `string` | optional | Path to Sentry CLI config properties, as described in https://docs.sentry.io/product/cli/configuration/#configuration-file. By default, the config file is looked for upwards from the current path, and defaults from `~/.sentryclirc` are always loaded | | ext | `array` | optional | The file extensions to be considered. By default the following file extensions are processed: `js`, `map`, `jsbundle`, and `bundle`. | | urlPrefix | `string` | optional | URL prefix to add to the beginning of all filenames. Defaults to `~/` but you might want to set this to the full URL. This is also useful if your files are stored in a sub folder. eg: `url-prefix '~/static/js'`. | | urlSuffix | `string` | optional | URL suffix to add to the end of all filenames. Useful for appending query parameters. | | validate | `boolean` | optional | When `true`, attempts source map validation before upload if rewriting is not enabled. It will spot a variety of issues with source maps and cancel the upload if any are found. Defaults to `false` to prevent false positives canceling upload. | | stripPrefix | `array` | optional | When paired with `rewrite`, will remove a prefix from uploaded filenames. Useful for removing a path that is build-machine-specific. | | stripCommonPrefix | `boolean` | optional | When paired with `rewrite`, will add `~` to the `stripPrefix` array. Defaults to `false`.| | sourceMapReference | `boolean` | optional | Prevents the automatic detection of sourcemap references. Defaults to `false`.| | rewrite | `boolean` | optional | Enables rewriting of matching source maps so that indexed maps are flattened and missing sources are inlined if possible. Defaults to `true` | | finalize | `boolean` | optional | Determines whether Sentry release record should be automatically finalized (`date_released` timestamp added) after artifact upload. Defaults to `true` | | dryRun | `boolean` | optional | Attempts a dry run (useful for dev environments). Defaults to `false`. | | debug | `boolean` | optional | Print useful debug information. Defaults to `false`.| | silent | `boolean` | optional | Suppresses all logs (useful for `--json` option). Defaults to `false`. | | cleanArtifacts | `boolean` | optional | Remove all the artifacts in the release before the upload. Defaults to `false`. | | errorHandler | `function(err: Error, invokeErr: function(): void, compilation: Compilation): void` | optional | Function to call a when CLI error occurs. Webpack compilation failure can be triggered by calling `invokeErr` callback. Can emit a warning rather than an error (allowing compilation to continue) by setting this to `(err, invokeErr, compilation) => { compilation.warnings.push('Sentry CLI Plugin: ' + err.message) }`. Defaults to `(err, invokeErr) => { invokeErr() }`. | | setCommits | `Object` | optional | Adds commits to Sentry. See [table below](#setCommits) for details. | | deploy | `Object` | optional | Creates a new release deployment in Sentry. See [table below](#deploy) for details. | #### <a name="setCommits" rel='nofollow' onclick='return false;'></a>options.setCommits: | Option | Type | Required | Description | ---------|------|----------|------------- | repo | `string` | see notes | The full git repo name as defined in Sentry. Required if `auto` option is not `true`, otherwise optional. | | commit | `string` | see notes | The current (most recent) commit in the release. Required if `auto` option is not `true`, otherwise optional. | | previousCommit | `string` | optional | The last commit of the previous release. Defaults to the most recent commit of the previous release in Sentry, or if no previous release is found, 10 commits back from `commit`. | | auto | `boolean` | optional | Automatically set `commit` and `previousCommit`. Defaults `commit` to `HEAD` and `previousCommit`
评论
    相关推荐
    • webpack-basic:基于https
      webpack-basic:基于https
    • webpack.zip
      1、从https://github.com/vuejs-templates/webpack/releases 下载一个webpack的版本,压缩包中的内容解压到 目录 ~/.vue-templates/webpack/目录下; 2、使用如下命令进行离线方式的初始化,就能规避由于网络原因...
    • webpack
      git clone https://github.com/vedees/webpack-template webpack-template # Go to the app: cd webpack-template # Install dependencies: npm install # Server with hot reload at http://localhost:8081/ npm ...
    • webpack
      NULL 博文链接:https://munandong.iteye.com/blog/2275169
    • webpack构建代码
      NULL 博文链接:https://ruanqiangbeyond201208043532.iteye.com/blog/2377904
    • webpack实践:https:fullstackopen.comenpart7webpack
      webpack实践:https:fullstackopen.comenpart7webpack
    • kintone_webpack
      $ git clone https://github.com/TheRed/kintone_webpack.git $ cd kintone_webpack $ yarn install $ yarn watch 特征 为webpack.config.js output指定了Dropbox文件夹。如果您更改了文件夹的位置,请随时更改它。...
    • webpack-home:https
      webpack-home:https
    • GaussDB_100_1.0.1-DATABASE-REDHAT-64bit.tar.gz
      guassdb100在redhat上安装包,单机部署的包,安装步骤请看我的文中介绍,经过大量实验搭建总结出来的文档