Added logging, changed some directory structure

This commit is contained in:
2018-01-13 21:33:40 -05:00
parent f079a5f067
commit 8e72ffb917
73656 changed files with 35284 additions and 53718 deletions

View File

@@ -0,0 +1,3 @@
node_modules
*.log
src

View File

@@ -0,0 +1,35 @@
# babel-plugin-syntax-flow
## Installation
```sh
$ npm install babel-plugin-syntax-flow
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["syntax-flow"]
}
```
### Via CLI
```sh
$ babel --plugins syntax-flow script.js
```
### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["syntax-flow"]
});
```

View File

@@ -0,0 +1,13 @@
"use strict";
exports.__esModule = true;
exports.default = function () {
return {
manipulateOptions: function manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push("flow");
}
};
};
module.exports = exports["default"];

View File

@@ -0,0 +1,44 @@
{
"_args": [
[
"babel-plugin-syntax-flow@6.18.0",
"C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\torrent-project"
]
],
"_from": "babel-plugin-syntax-flow@6.18.0",
"_id": "babel-plugin-syntax-flow@6.18.0",
"_inBundle": false,
"_integrity": "sha1-TDqyCiryaqIM0lmVw5jE63AxDI0=",
"_location": "/babel-preset-react/babel-plugin-syntax-flow",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "babel-plugin-syntax-flow@6.18.0",
"name": "babel-plugin-syntax-flow",
"escapedName": "babel-plugin-syntax-flow",
"rawSpec": "6.18.0",
"saveSpec": null,
"fetchSpec": "6.18.0"
},
"_requiredBy": [
"/babel-preset-react/babel-plugin-transform-flow-strip-types"
],
"_resolved": "https://registry.npmjs.org/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz",
"_spec": "6.18.0",
"_where": "C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\torrent-project",
"dependencies": {},
"description": "Allow parsing of the flow syntax",
"devDependencies": {},
"keywords": [
"babel-plugin"
],
"license": "MIT",
"main": "lib/index.js",
"name": "babel-plugin-syntax-flow",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-flow"
},
"version": "6.18.0"
}