diff --git a/.circleci/smoke.sh b/.circleci/smoke.sh index b4fe29bce..561457bc6 100755 --- a/.circleci/smoke.sh +++ b/.circleci/smoke.sh @@ -26,7 +26,7 @@ install fury install apib-parser install openapi2-parser install openapi3-parser -install fury-adapter-apiary-blueprint-parser +install apiaryb-parser install apib-serializer install fury-cli diff --git a/packages/fury-adapter-apiary-blueprint-parser/.eslintignore b/packages/apiaryb-parser/.eslintignore similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/.eslintignore rename to packages/apiaryb-parser/.eslintignore diff --git a/packages/fury-adapter-apiary-blueprint-parser/.gitignore b/packages/apiaryb-parser/.gitignore similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/.gitignore rename to packages/apiaryb-parser/.gitignore diff --git a/packages/fury-adapter-apiary-blueprint-parser/CHANGELOG.md b/packages/apiaryb-parser/CHANGELOG.md similarity index 94% rename from packages/fury-adapter-apiary-blueprint-parser/CHANGELOG.md rename to packages/apiaryb-parser/CHANGELOG.md index 1a74c5118..4f3868b2d 100644 --- a/packages/fury-adapter-apiary-blueprint-parser/CHANGELOG.md +++ b/packages/apiaryb-parser/CHANGELOG.md @@ -1,4 +1,8 @@ -# Changelog +# API Elements: Apiary Blueprint Parser Changelog + +## 0.1.0 (2020-04-30) + +The package has been renamed to `@apielements/apiaryb-parser`. ## 3.0.0-beta.11 (2020-04-20) diff --git a/packages/fury-adapter-apiary-blueprint-parser/README.md b/packages/apiaryb-parser/README.md similarity index 59% rename from packages/fury-adapter-apiary-blueprint-parser/README.md rename to packages/apiaryb-parser/README.md index 18929c42e..a97efa469 100644 --- a/packages/fury-adapter-apiary-blueprint-parser/README.md +++ b/packages/apiaryb-parser/README.md @@ -1,7 +1,7 @@ -# Fury Apiary Blueprint Parser +# API Elements: Apiary Blueprint Parser -[![NPM version](https://img.shields.io/npm/v/fury-adapter-apiary-blueprint-parser.svg)](https://www.npmjs.org/package/fury-adapter-apiary-blueprint-parser) -[![License](https://img.shields.io/npm/l/fury-adapter-apiary-blueprint-parser.svg)](https://www.npmjs.org/package/fury-adapter-apiary-blueprint-parser) +[![NPM version](https://img.shields.io/npm/v/@apielements/apiaryb-parser.svg)](https://www.npmjs.org/package/@apielements/apiaryb-parser) +[![License](https://img.shields.io/npm/l/@apielements/apiaryb-parser.svg)](https://www.npmjs.org/package/@apielements/apiaryb-parser) This adapter provides support for parsing the deprecated [Apiary Blueprint](https://github.com/apiaryio/blueprint-parser) format in @@ -12,14 +12,14 @@ the legacy format. ## Installation ```shell -$ npm install fury-adapter-apiary-blueprint-parser +$ npm install @apielements/apiaryb-parser ``` ## Usage ```javascript import fury from 'fury'; -import apiaryBlueprintAdapter from 'fury-adapter-apiary-blueprint-parser'; +import apiaryBlueprintAdapter from '@apielements/apiaryb-parser'; fury.use(apiaryBlueprintAdapter); diff --git a/packages/fury-adapter-apiary-blueprint-parser/lib/adapter.js b/packages/apiaryb-parser/lib/adapter.js similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/lib/adapter.js rename to packages/apiaryb-parser/lib/adapter.js diff --git a/packages/fury-adapter-apiary-blueprint-parser/lib/apiary-blueprint-parser.pegjs b/packages/apiaryb-parser/lib/apiary-blueprint-parser.pegjs similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/lib/apiary-blueprint-parser.pegjs rename to packages/apiaryb-parser/lib/apiary-blueprint-parser.pegjs diff --git a/packages/fury-adapter-apiary-blueprint-parser/lib/ast.js b/packages/apiaryb-parser/lib/ast.js similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/lib/ast.js rename to packages/apiaryb-parser/lib/ast.js diff --git a/packages/fury-adapter-apiary-blueprint-parser/lib/parser.js b/packages/apiaryb-parser/lib/parser.js similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/lib/parser.js rename to packages/apiaryb-parser/lib/parser.js diff --git a/packages/fury-adapter-apiary-blueprint-parser/package.json b/packages/apiaryb-parser/package.json similarity index 76% rename from packages/fury-adapter-apiary-blueprint-parser/package.json rename to packages/apiaryb-parser/package.json index 12f155ef7..ccd9ec72a 100644 --- a/packages/fury-adapter-apiary-blueprint-parser/package.json +++ b/packages/apiaryb-parser/package.json @@ -1,18 +1,18 @@ { - "name": "fury-adapter-apiary-blueprint-parser", - "version": "3.0.0-beta.11", - "description": "Parser for Fury.js for the deprecated Apiary Blueprint language", + "name": "@apielements/apiaryb-parser", + "version": "0.1.0", + "description": "API Elements parser for deprecated Apiary Blueprint language", "author": "Apiary.io ", "license": "MIT", "main": "./lib/adapter.js", "files": [ "lib/*.js" ], - "homepage": "https://github.com/apiaryio/api-elements.js/tree/master/packages/fury-adapter-apiary-blueprint-parser", + "homepage": "https://github.com/apiaryio/api-elements.js/tree/master/packages/apiaryb-parser", "repository": { "type": "git", "url": "https://github.com/apiaryio/api-elements.js.git", - "directory": "packages/fury-adapter-apiary-blueprint-parser" + "directory": "packages/apiaryb-parser" }, "scripts": { "lint": "eslint .", diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/adapter-test.js b/packages/apiaryb-parser/test/adapter-test.js similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/adapter-test.js rename to packages/apiaryb-parser/test/adapter-test.js diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/ast-test.js b/packages/apiaryb-parser/test/ast-test.js similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/ast-test.js rename to packages/apiaryb-parser/test/ast-test.js diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/description.json b/packages/apiaryb-parser/test/fixtures/description.json similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/description.json rename to packages/apiaryb-parser/test/fixtures/description.json diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/description.txt b/packages/apiaryb-parser/test/fixtures/description.txt similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/description.txt rename to packages/apiaryb-parser/test/fixtures/description.txt diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/example.json b/packages/apiaryb-parser/test/fixtures/example.json similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/example.json rename to packages/apiaryb-parser/test/fixtures/example.json diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/example.txt b/packages/apiaryb-parser/test/fixtures/example.txt similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/example.txt rename to packages/apiaryb-parser/test/fixtures/example.txt diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/host-metadata.json b/packages/apiaryb-parser/test/fixtures/host-metadata.json similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/host-metadata.json rename to packages/apiaryb-parser/test/fixtures/host-metadata.json diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/host-metadata.txt b/packages/apiaryb-parser/test/fixtures/host-metadata.txt similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/host-metadata.txt rename to packages/apiaryb-parser/test/fixtures/host-metadata.txt diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/host-path.json b/packages/apiaryb-parser/test/fixtures/host-path.json similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/host-path.json rename to packages/apiaryb-parser/test/fixtures/host-path.json diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/host-path.txt b/packages/apiaryb-parser/test/fixtures/host-path.txt similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/host-path.txt rename to packages/apiaryb-parser/test/fixtures/host-path.txt diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/host-trailing-slash-path.json b/packages/apiaryb-parser/test/fixtures/host-trailing-slash-path.json similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/host-trailing-slash-path.json rename to packages/apiaryb-parser/test/fixtures/host-trailing-slash-path.json diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/host-trailing-slash-path.txt b/packages/apiaryb-parser/test/fixtures/host-trailing-slash-path.txt similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/host-trailing-slash-path.txt rename to packages/apiaryb-parser/test/fixtures/host-trailing-slash-path.txt diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/json-validations-host-path.json b/packages/apiaryb-parser/test/fixtures/json-validations-host-path.json similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/json-validations-host-path.json rename to packages/apiaryb-parser/test/fixtures/json-validations-host-path.json diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/json-validations-host-path.txt b/packages/apiaryb-parser/test/fixtures/json-validations-host-path.txt similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/json-validations-host-path.txt rename to packages/apiaryb-parser/test/fixtures/json-validations-host-path.txt diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/json-validations.json b/packages/apiaryb-parser/test/fixtures/json-validations.json similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/json-validations.json rename to packages/apiaryb-parser/test/fixtures/json-validations.json diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/json-validations.txt b/packages/apiaryb-parser/test/fixtures/json-validations.txt similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/json-validations.txt rename to packages/apiaryb-parser/test/fixtures/json-validations.txt diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/title.json b/packages/apiaryb-parser/test/fixtures/title.json similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/title.json rename to packages/apiaryb-parser/test/fixtures/title.json diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/title.txt b/packages/apiaryb-parser/test/fixtures/title.txt similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/title.txt rename to packages/apiaryb-parser/test/fixtures/title.txt diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/unnamed-section.json b/packages/apiaryb-parser/test/fixtures/unnamed-section.json similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/unnamed-section.json rename to packages/apiaryb-parser/test/fixtures/unnamed-section.json diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/fixtures/unnamed-section.txt b/packages/apiaryb-parser/test/fixtures/unnamed-section.txt similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/fixtures/unnamed-section.txt rename to packages/apiaryb-parser/test/fixtures/unnamed-section.txt diff --git a/packages/fury-adapter-apiary-blueprint-parser/test/parser-test.js b/packages/apiaryb-parser/test/parser-test.js similarity index 100% rename from packages/fury-adapter-apiary-blueprint-parser/test/parser-test.js rename to packages/apiaryb-parser/test/parser-test.js diff --git a/packages/fury-cli/lib/fury.js b/packages/fury-cli/lib/fury.js index 3c2e0cb71..1a0188b93 100755 --- a/packages/fury-cli/lib/fury.js +++ b/packages/fury-cli/lib/fury.js @@ -13,7 +13,7 @@ const { JSON06Serialiser } = require('minim'); const fury = require('fury'); const apiBlueprintParser = require('@apielements/apib-parser'); const apiBlueprintSerializer = require('@apielements/apib-serializer'); -const apiaryBlueprintParser = require('fury-adapter-apiary-blueprint-parser'); +const apiaryBlueprintParser = require('@apielements/apiaryb-parser'); const oas2Parser = require('@apielements/openapi2-parser'); const oas3Parser = require('@apielements/openapi3-parser'); const pkg = require('../package.json'); @@ -21,7 +21,7 @@ const pkg = require('../package.json'); const adapters = [ '@apielements/apib-parser', '@apielements/apib-serializer', - 'fury-adapter-apiary-blueprint-parser', + '@apielements/apiaryb-parser', '@apielements/openapi2-parser', '@apielements/openapi3-parser', ]; diff --git a/packages/fury-cli/package.json b/packages/fury-cli/package.json index 3d65b8ca6..10969d41d 100644 --- a/packages/fury-cli/package.json +++ b/packages/fury-cli/package.json @@ -22,6 +22,7 @@ "test": "exit 0" }, "dependencies": { + "@apielements/apiaryb-parser": "^0.1.0", "@apielements/apib-parser": "^0.19.0", "@apielements/apib-serializer": "^0.15.0", "@apielements/openapi2-parser": "^0.30.0", @@ -29,7 +30,6 @@ "cardinal": "^2.1.1", "commander": "^5.1.0", "fury": "3.0.0-beta.14", - "fury-adapter-apiary-blueprint-parser": "3.0.0-beta.11", "js-yaml": "^3.12.0", "minim": "^0.23.4" },