mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-20 05:14:44 +00:00
.
This commit is contained in:
parent
beb1329f9f
commit
2b95e76931
7736 changed files with 1874747 additions and 51184 deletions
23
node_modules/babel-preset-jest/LICENSE
generated
vendored
Normal file
23
node_modules/babel-preset-jest/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
MIT License
|
||||
|
||||
For Jest software
|
||||
|
||||
Copyright (c) 2014-present, Facebook, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
33
node_modules/babel-preset-jest/README.md
generated
vendored
Normal file
33
node_modules/babel-preset-jest/README.md
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
# babel-preset-jest
|
||||
|
||||
> Babel preset for all Jest plugins. This preset is automatically included when using [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest).
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
$ npm install --save-dev babel-preset-jest
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Via `babel.config.js` (Recommended)
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
presets: ['jest'],
|
||||
};
|
||||
```
|
||||
|
||||
### Via CLI
|
||||
|
||||
```sh
|
||||
$ babel script.js --presets jest
|
||||
```
|
||||
|
||||
### Via Node API
|
||||
|
||||
```javascript
|
||||
require('@babel/core').transform('code', {
|
||||
presets: ['jest'],
|
||||
});
|
||||
```
|
13
node_modules/babel-preset-jest/index.js
generated
vendored
Normal file
13
node_modules/babel-preset-jest/index.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
module.exports = () => ({
|
||||
plugins: [
|
||||
require.resolve('babel-plugin-jest-hoist'),
|
||||
require.resolve('@babel/plugin-syntax-object-rest-spread'),
|
||||
],
|
||||
});
|
59
node_modules/babel-preset-jest/package.json
generated
vendored
Normal file
59
node_modules/babel-preset-jest/package.json
generated
vendored
Normal file
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
"babel-preset-jest@24.6.0",
|
||||
"/Users/eric/repos/actions/setup-node"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "babel-preset-jest@24.6.0",
|
||||
"_id": "babel-preset-jest@24.6.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-pdZqLEdmy1ZK5kyRUfvBb2IfTPb2BUvIJczlPspS8fWmBQslNNDBqVfh7BW5leOVJMDZKzjD8XEyABTk6gQ5yw==",
|
||||
"_location": "/babel-preset-jest",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "babel-preset-jest@24.6.0",
|
||||
"name": "babel-preset-jest",
|
||||
"escapedName": "babel-preset-jest",
|
||||
"rawSpec": "24.6.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "24.6.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/babel-jest"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-24.6.0.tgz",
|
||||
"_spec": "24.6.0",
|
||||
"_where": "/Users/eric/repos/actions/setup-node",
|
||||
"bugs": {
|
||||
"url": "https://github.com/facebook/jest/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-syntax-object-rest-spread": "^7.0.0",
|
||||
"babel-plugin-jest-hoist": "^24.6.0"
|
||||
},
|
||||
"description": "> Babel preset for all Jest plugins. This preset is automatically included when using [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest).",
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
},
|
||||
"gitHead": "04e6a66d2ba8b18bee080bb28547db74a255d2c7",
|
||||
"homepage": "https://github.com/facebook/jest#readme",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "babel-preset-jest",
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.0.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/jest.git",
|
||||
"directory": "packages/babel-preset-jest"
|
||||
},
|
||||
"version": "24.6.0"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue