Browse Source

add flow

pull/1/head
Cian Butler 4 years ago
parent
commit
533c8f916e
Signed by: butlerx GPG Key ID: B37CA765BAA89170
8 changed files with 331 additions and 80 deletions
  1. +1
    -0
      .babelrc
  2. +9
    -25
      .eslintrc
  3. +7
    -0
      .flowconfig
  4. +101
    -1
      README.md
  5. +14
    -7
      package.json
  6. +16
    -13
      src/checkEventJson.js
  7. +23
    -16
      src/generate.js
  8. +160
    -18
      yarn.lock

+ 1
- 0
.babelrc View File

@@ -1,5 +1,6 @@
{
"presets": [
"flow",
"es2015"
],
"plugins": [


+ 9
- 25
.eslintrc View File

@@ -1,21 +1,17 @@
{
"extends": "standard",
"env": {
"es6": true,
"jest": true,
"browser": true,
"node": true,
"jquery": true
},
"parser": "babel-eslint",
"plugins": [
"json"
"flowtype"
],
"globals": {
"GENTLY": true,
"start": true
"extends": [
"standard",
"plugin:flowtype/recommended"
],
"env": {
"es6": true,
"node": true
},
"rules": {
"no-console": 0,
"no-multi-spaces": 0,
"comma-dangle": [
"error",
@@ -36,18 +32,6 @@
}
}
],
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"


+ 7
- 0
.flowconfig View File

@@ -0,0 +1,7 @@
[ignore]

[include]

[libs]

[options]

+ 101
- 1
README.md View File

@@ -1,2 +1,102 @@
# events
# Events Page

Static event page generator using handlebar.js

## Installation

yarn add event-page

## Usage

To build your page, from Command line run:

event-gen

or from node

```javascript
const event = ('event-page');

event({
title: "Amazing event",
source: "source",
output: "public",
schema: "./schema.json",
menu: [{
title: "Home",
url: ""
}, {
"title": "Speaker List",
"url": "Speakers"
}, {
"title": "Call For Talks",
"url": "CFT"
}],
theme: 'theme',
helper: 'helpers',
templates: 'templates'
});
```

## Docs

### `generate.js`

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### render

Render pages with handle bar template

**Parameters**

- `template` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
- `page` **{}**
- `url` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**

#### generateMenu

Generate a menu based on the file names in the pages dir
index.[md|json] is called Home

#### validate

Validate all json files obey the schema

**Parameters**

- `schemaPath` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**

#### checkJson

Check json object against schema

**Parameters**

- `filename` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
- `json` **{}**

Returns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**

### `checkEventJson.js`

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### validate

Validate all json files obey the schema

**Parameters**

- `schemaPath` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**

#### checkJson

Check json object against schema

**Parameters**

- `filename` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
- `json` **{}**

Returns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**

+ 14
- 7
package.json View File

@@ -1,8 +1,11 @@
{
"name": "event-js",
"version": "1.0.0",
"name": "event-page",
"version": "1.0.1",
"description": "simple static site generator for events",
"main": "index.js",
"main": "lib/generate.js",
"bin": {
"event-gen": "bin/app.js"
},
"author": "butlerx",
"license": "MIT",
"scripts": {
@@ -14,26 +17,30 @@
"dependencies": {
"glob": "^7.1.2",
"handlebars": "^4.0.10",
"json-front-matter": "^1.0.0",
"json-matter": "^1.0.2",
"jsonschema": "^1.1.1",
"marked": "^0.3.6"
},
"devDependencies": {
"babel-cli": "6.24.1",
"babel-cli": "^6.24.1",
"babel-core": "6.24.1",
"babel-eslint": "7.2.3",
"babel-eslint": "^7.2.3",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-es6-promise": "1.1.1",
"babel-plugin-syntax-async-functions": "6.13.0",
"babel-plugin-transform-async-to-generator": "6.24.1",
"babel-plugin-transform-object-assign": "6.22.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-flow": "^6.23.0",
"es6-promise": "^4\n",
"eslint": "3.19.0",
"eslint-config-standard": "10.2.1",
"eslint-plugin-flowtype": "^2.33.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-json": "^1.2.0",
"eslint-plugin-node": "^4.2.2",
"eslint-plugin-promise": "3.5.0",
"eslint-plugin-standard": "3.0.1"
"eslint-plugin-standard": "3.0.1",
"flow-bin": "^0.47.0"
}
}

+ 16
- 13
src/checkEventJson.js View File

@@ -1,19 +1,18 @@
/* @flow */
const fs = require('fs');
const glob = require('glob');
const fm = require('json-front-matter');
const fm = require('json-matter');
const path = require('path');
const validate = require('jsonschema').validate;
const config = require(path.join(process.cwd(), 'config.json'));
let schemaPath = '../schema.json';
if (config.schema) {
schemaPath = path.join(process.cwd(), config.schema);
}
const schema = require(schemaPath);

module.exports = {
validate () {
/**
* Validate all json files obey the schema
**/
validate (schemaPath: string) {
glob(
path.join(process.cwd(), config.source, '*'),
path.join(process.cwd(), config.source, '*.json'),
{
ignore: 'node_modules',
},
@@ -24,9 +23,7 @@ module.exports = {
if (err) throw err;
const file = fm.parse(data);
const json = file.attributes;
if (json.template === 'schedule') {
checkJson(i, json);
}
checkJson(i, json, schemaPath);
});
}
}
@@ -34,11 +31,17 @@ module.exports = {
},
};

function checkJson (filename, json) {
/**
* Check json object against schema
**/
function checkJson (filename: string, json: {}, schemaPath: string): boolean {
const schema = require(schemaPath);
try {
validate(json, schema, { throwError: true });
return true;
} catch (err) {
if (err) throw err;
console.error(filename, err);
process.exit(1);
return false;
}
}

+ 23
- 16
src/generate.js View File

@@ -1,8 +1,9 @@
/* @flow */
const Handlebars = require('handlebars');
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const fm = require('json-front-matter');
const fm = require('json-matter');
const marked = require('marked');
const checkJson = require('./checkEventJson');
const config = require(path.join(process.cwd(), 'config.json'));
@@ -14,7 +15,10 @@ glob.sync(path.join(process.cwd(), config.theme || 'theme', config.helper || 'he
Handlebars.registerHelper(require(path.resolve(file)));
});

function render (template, page, url) {
/**
* Render pages with handle bar template
**/
function render (template: string, page: {}, url: string) {
template = `${template}.hbs`;
// Load template and compile
const output = Handlebars.compile(fs.readFileSync(path.join(process.cwd(), config.theme || 'theme', config.template || 'templates', template), 'utf-8'))(page);
@@ -35,25 +39,30 @@ function render (template, page, url) {
});
}

/**
* Generate a menu based on the file names in the pages dir
* index.[md|json] is called Home
**/
function generateMenu () {
config.menu = [];
config.menu.push({
title : "Home",
url : "",
title: 'Home',
url : '',
});
fs.readdirSync(source).forEach(file => {
if (file !== 'index.md') {
if (file.substring(0, file.lastIndexOf('.')) !== 'index') {
console.log(file);
config.menu.push({
title : file.substring(0, file.lastIndexOf('.')),
url : file.substring(0, file.lastIndexOf('.')),
title: file.substring(0, file.lastIndexOf('.')),
url : file.substring(0, file.lastIndexOf('.')),
});
}
})
});
}

module.exports = () => {
// Validate JSON against schema
checkJson.validate();
checkJson.validate(path.join(process.cwd(), config.schema) || './schema.json');
// Generate Menu if not in Config
if (!config.menu) {
generateMenu();
@@ -65,13 +74,11 @@ module.exports = () => {
fs.readFile(path.join(source, page), 'utf-8', (err, data) => {
if (err) throw err;
const file = fm.parse(data);
const json = file.attributes;
json.site = config;
// inject md in to body
json.body = marked(file.body);
render(json.template, json, url);
file.site = config;
// render md in to html
file.body = marked(file.__content__);
render(file.template || 'schedule', file, url);
});
}
});
}

};

+ 160
- 18
yarn.lock View File

@@ -139,7 +139,7 @@ aws4@^1.2.1:
version "1.6.0"
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e"

babel-cli@6.24.1:
babel-cli@^6.24.1:
version "6.24.1"
resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.24.1.tgz#207cd705bba61489b2ea41b5312341cf6aca2283"
dependencies:
@@ -192,7 +192,7 @@ babel-core@6.24.1, babel-core@^6.24.1:
slash "^1.0.0"
source-map "^0.5.0"

babel-eslint@7.2.3:
babel-eslint@^7.2.3:
version "7.2.3"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-7.2.3.tgz#b2fe2d80126470f5c19442dc757253a897710827"
dependencies:
@@ -326,6 +326,10 @@ babel-plugin-syntax-async-functions@6.13.0, babel-plugin-syntax-async-functions@
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"

babel-plugin-syntax-flow@^6.18.0:
version "6.18.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d"

babel-plugin-transform-async-to-generator@6.24.1:
version "6.24.1"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761"
@@ -502,6 +506,13 @@ babel-plugin-transform-es2015-unicode-regex@^6.24.1:
babel-runtime "^6.22.0"
regexpu-core "^2.0.0"

babel-plugin-transform-flow-strip-types@^6.22.0:
version "6.22.0"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf"
dependencies:
babel-plugin-syntax-flow "^6.18.0"
babel-runtime "^6.22.0"

babel-plugin-transform-object-assign@6.22.0:
version "6.22.0"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-assign/-/babel-plugin-transform-object-assign-6.22.0.tgz#f99d2f66f1a0b0d498e346c5359684740caa20ba"
@@ -558,6 +569,12 @@ babel-preset-es2015@6.24.1:
babel-plugin-transform-es2015-unicode-regex "^6.24.1"
babel-plugin-transform-regenerator "^6.24.1"

babel-preset-flow@^6.23.0:
version "6.23.0"
resolved "https://registry.yarnpkg.com/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz#e71218887085ae9a24b5be4169affb599816c49d"
dependencies:
babel-plugin-transform-flow-strip-types "^6.22.0"

babel-register@^6.24.1:
version "6.24.1"
resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.24.1.tgz#7e10e13a2f71065bdfad5a1787ba45bca6ded75f"
@@ -659,7 +676,7 @@ buffer-shims@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51"

builtin-modules@^1.1.1:
builtin-modules@^1.0.0, builtin-modules@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"

@@ -928,6 +945,12 @@ entities@~1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.1.tgz#6e5c2d0a5621b5dadaecef80b90edfb5cd7772f0"

error-ex@^1.2.0:
version "1.3.1"
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc"
dependencies:
is-arrayish "^0.2.1"

es5-ext@^0.10.14, es5-ext@^0.10.9, es5-ext@~0.10.14:
version "0.10.21"
resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.21.tgz#19a725f9e51d0300bbc1e8e821109fd9daf55925"
@@ -954,6 +977,10 @@ es6-map@^0.1.3:
es6-symbol "~3.1.1"
event-emitter "~0.3.5"

"es6-promise@^4\n":
version "4.1.0"
resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.1.0.tgz#dda03ca8f9f89bc597e689842929de7ba8cebdf0"

es6-set@~0.1.5:
version "0.1.5"
resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1"
@@ -1012,9 +1039,15 @@ eslint-module-utils@^2.0.0:
debug "2.2.0"
pkg-dir "^1.0.0"

eslint-plugin-flowtype@^2.33.0:
version "2.33.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.33.0.tgz#b2783814ed2ddcf729953b8f65ff73c90cabee4b"
dependencies:
lodash "^4.15.0"

eslint-plugin-import@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.2.0.tgz#72ba306fad305d67c4816348a4699a4229ac8b4e"
version "2.3.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.3.0.tgz#37c801e0ada0e296cbdf20c3f393acb5b52af36b"
dependencies:
builtin-modules "^1.1.1"
contains-path "^0.1.0"
@@ -1025,7 +1058,7 @@ eslint-plugin-import@^2.2.0:
has "^1.0.1"
lodash.cond "^4.3.0"
minimatch "^3.0.3"
pkg-up "^1.0.0"
read-pkg-up "^2.0.0"

eslint-plugin-json@^1.2.0:
version "1.2.0"
@@ -1207,6 +1240,12 @@ find-up@^1.0.0:
path-exists "^2.0.0"
pinkie-promise "^2.0.0"

find-up@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7"
dependencies:
locate-path "^2.0.0"

flat-cache@^1.2.1:
version "1.2.2"
resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.2.2.tgz#fa86714e72c21db88601761ecf2f555d1abc6b96"
@@ -1216,6 +1255,10 @@ flat-cache@^1.2.1:
graceful-fs "^4.1.2"
write "^0.2.1"

flow-bin@^0.47.0:
version "0.47.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.47.0.tgz#a2a08ab3e0d1f1cb57d17e27b30b118b62fda367"

for-in@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
@@ -1407,6 +1450,10 @@ home-or-tmp@^2.0.0:
os-homedir "^1.0.0"
os-tmpdir "^1.0.1"

hosted-git-info@^2.1.4:
version "2.4.2"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.4.2.tgz#0076b9f46a270506ddbaaea56496897460612a67"

htmlparser2@3.8.x:
version "3.8.3"
resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.8.3.tgz#996c28b191516a8be86501a7d79757e5c70c1068"
@@ -1476,6 +1523,10 @@ invariant@^2.2.0:
dependencies:
loose-envify "^1.0.0"

is-arrayish@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"

is-binary-path@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898"
@@ -1486,6 +1537,12 @@ is-buffer@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc"

is-builtin-module@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe"
dependencies:
builtin-modules "^1.0.0"

is-dotfile@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.2.tgz#2c132383f39199f8edc268ca01b9b007d205cc4d"
@@ -1639,9 +1696,9 @@ jshint@^2.8.0:
shelljs "0.3.x"
strip-json-comments "1.0.x"

json-front-matter@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/json-front-matter/-/json-front-matter-1.0.0.tgz#011ebb6de75f7ac724fc4b70a2498d18a30a2fe1"
json-matter@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/json-matter/-/json-matter-1.0.2.tgz#e34ab52a7f454dd8300339f22f7fdaae747dfdf9"

json-schema@0.2.3:
version "0.2.3"
@@ -1699,6 +1756,22 @@ levn@^0.3.0, levn@~0.3.0:
prelude-ls "~1.1.2"
type-check "~0.3.2"

load-json-file@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8"
dependencies:
graceful-fs "^4.1.2"
parse-json "^2.2.0"
pify "^2.0.0"
strip-bom "^3.0.0"

locate-path@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"
dependencies:
p-locate "^2.0.0"
path-exists "^3.0.0"

lodash.cond@^4.3.0:
version "4.5.2"
resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5"
@@ -1707,7 +1780,7 @@ lodash@3.7.x:
version "3.7.0"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.7.0.tgz#3678bd8ab995057c07ade836ed2ef087da811d45"

lodash@^4.0.0, lodash@^4.2.0, lodash@^4.3.0:
lodash@^4.0.0, lodash@^4.15.0, lodash@^4.2.0, lodash@^4.3.0:
version "4.17.4"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"

@@ -1759,7 +1832,7 @@ minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4, minimatc
dependencies:
brace-expansion "^1.1.7"

minimist@0.0.8, minimist@~0.0.1:
minimist@0.0.8:
version "0.0.8"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"

@@ -1767,6 +1840,10 @@ minimist@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"

minimist@~0.0.1:
version "0.0.10"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf"

"mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1:
version "0.5.1"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
@@ -1814,6 +1891,15 @@ nopt@^4.0.1:
abbrev "1"
osenv "^0.1.4"

normalize-package-data@^2.3.2:
version "2.3.8"
resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.3.8.tgz#d819eda2a9dedbd1ffa563ea4071d936782295bb"
dependencies:
hosted-git-info "^2.1.4"
is-builtin-module "^1.0.0"
semver "2 || 3 || 4 || 5"
validate-npm-package-license "^3.0.1"

normalize-path@^2.0.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
@@ -1899,6 +1985,16 @@ output-file-sync@^1.1.0:
mkdirp "^0.5.1"
object-assign "^4.1.0"

p-limit@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.1.0.tgz#b07ff2d9a5d88bec806035895a2bab66a27988bc"

p-locate@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43"
dependencies:
p-limit "^1.1.0"

parse-glob@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c"
@@ -1908,12 +2004,22 @@ parse-glob@^3.0.4:
is-extglob "^1.0.0"
is-glob "^2.0.0"

parse-json@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9"
dependencies:
error-ex "^1.2.0"

path-exists@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b"
dependencies:
pinkie-promise "^2.0.0"

path-exists@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515"

path-is-absolute@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
@@ -1926,6 +2032,12 @@ path-parse@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1"

path-type@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73"
dependencies:
pify "^2.0.0"

performance-now@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5"
@@ -1950,12 +2062,6 @@ pkg-dir@^1.0.0:
dependencies:
find-up "^1.0.0"

pkg-up@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26"
dependencies:
find-up "^1.0.0"

pluralize@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45"
@@ -2004,6 +2110,21 @@ rc@^1.1.7:
minimist "^1.2.0"
strip-json-comments "~2.0.1"

read-pkg-up@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be"
dependencies:
find-up "^2.0.0"
read-pkg "^2.0.0"

read-pkg@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8"
dependencies:
load-json-file "^2.0.0"
normalize-package-data "^2.3.2"
path-type "^2.0.0"

readable-stream@1.1:
version "1.1.13"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.13.tgz#f6eef764f514c89e2b9e23146a75ba106756d23e"
@@ -2184,7 +2305,7 @@ safe-buffer@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7"

semver@5.3.0, semver@^5.3.0:
"semver@2 || 3 || 4 || 5", semver@5.3.0, semver@^5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"

@@ -2242,6 +2363,20 @@ source-map@^0.5.0, source-map@^0.5.6, source-map@~0.5.1:
version "0.5.6"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412"

spdx-correct@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40"
dependencies:
spdx-license-ids "^1.0.2"

spdx-expression-parse@~1.0.0:
version "1.0.4"
resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c"

spdx-license-ids@^1.0.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57"

sprintf-js@~1.0.2:
version "1.0.3"
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
@@ -2431,6 +2566,13 @@ v8flags@^2.0.10:
dependencies:
user-home "^1.1.1"

validate-npm-package-license@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc"
dependencies:
spdx-correct "~1.0.0"
spdx-expression-parse "~1.0.0"

verror@1.3.6:
version "1.3.6"
resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c"


Loading…
Cancel
Save