Skip to content
This repository was archived by the owner on Dec 21, 2019. It is now read-only.

Commit

Permalink
fix(releasing): fixes how src module is bundled and stored
Browse files Browse the repository at this point in the history
affects: remark-lint-are-links-valid-alive, remark-lint-are-links-valid-core,
remark-lint-are-links-valid-duplicate

It was previously stored outside of packages/
  • Loading branch information
sobolevn committed Aug 6, 2017
1 parent cff2bb2 commit 588283b
Show file tree
Hide file tree
Showing 9 changed files with 103 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ node_js:

install:
- npm install -g yarn lerna
- lerna bootstrap && yarn install
- yarn install

script:
- yarn coveralls
Expand Down
12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@
],
"license": "MIT",
"scripts": {
"build:src": "babel src -d dist",
"build:packages": "lerna run build",
"build": "npm run build:src && npm run build:packages",
"build": "lerna bootstrap && lerna run build",
"coveralls": "npm run test && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"test:code": "cross-env NODE_ENV=test nyc mocha && nyc report --reporter=lcov",
"test": "npm run build && npm run test:code && npm run lint",
"lint": "eslint src/ test/ packages/*/src.js"
"lint": "eslint test/ packages/*/src.js"
},
"eslintConfig": {
"extends": "standard"
Expand Down Expand Up @@ -77,12 +75,6 @@
"url": "https://github.com/wemake-services/remark-lint-are-links-valid/issues"
},
"homepage": "https://github.com/wemake-services/remark-lint-are-links-valid",
"main": "dist/are-links-valid.js",
"dependencies": {
"object.defaults": "^1.1.0",
"unified-lint-rule": "^1.0.1",
"unist-util-visit": "^1.1.3"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-lerna-changelog"
Expand Down
9 changes: 5 additions & 4 deletions packages/alive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"scripts": {
"build": "../../node_modules/.bin/rollup -c ../../rollup.config.js -i src.js -o index.js"
},
"dependencies": {
"broken-link-checker": "^0.7.6",
"remark-lint-are-links-valid-core": "^0.1.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/wemake-services/remark-lint-are-links-valid.git"
Expand All @@ -22,8 +26,5 @@
"bugs": {
"url": "https://github.com/wemake-services/remark-lint-are-links-valid/issues"
},
"homepage": "https://github.com/wemake-services/remark-lint-are-links-valid#readme",
"dependencies": {
"broken-link-checker": "^0.7.6"
}
"homepage": "https://github.com/wemake-services/remark-lint-are-links-valid#readme"
}
2 changes: 1 addition & 1 deletion packages/alive/src.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const blc = require('broken-link-checker')
const main = require('../../dist')
const main = require('remark-lint-are-links-valid-core')

function handleLinkDuplicateError (file, link, reason) {
const message = `Link ${link.link.href} is not responding: ${reason}`
Expand Down
31 changes: 31 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "remark-lint-are-links-valid-core",
"version": "0.1.0",
"description": "Checks if links are valid",
"main": "index.js",
"scripts": {
"build": "../../node_modules/.bin/rollup -c ../../rollup.config.js -i src.js -o index.js"
},
"dependencies": {
"object.defaults": "^1.1.0",
"unified-lint-rule": "^1.0.1",
"unist-util-visit": "^1.1.3"
},
"repository": {
"type": "git",
"url": "git+https://github.com/wemake-services/remark-lint-are-links-valid.git"
},
"keywords": [
"remark",
"remark-lint",
"links",
"validation",
"markdown"
],
"author": "Nikita Sobolev",
"license": "MIT",
"bugs": {
"url": "https://github.com/wemake-services/remark-lint-are-links-valid/issues"
},
"homepage": "https://github.com/wemake-services/remark-lint-are-links-valid#readme"
}
File renamed without changes.
59 changes: 59 additions & 0 deletions packages/core/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


array-each@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/array-each/-/array-each-1.0.1.tgz#a794af0c05ab1752846ee753a1f211a05ba0c44f"

array-slice@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/array-slice/-/array-slice-1.0.0.tgz#e73034f00dcc1f40876008fd20feae77bd4b7c2f"

[email protected]:
version "3.1.0"
resolved "https://registry.yarnpkg.com/co/-/co-3.1.0.tgz#4ea54ea5a08938153185e15210c68d9092bc1b78"

for-in@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"

for-own@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/for-own/-/for-own-1.0.0.tgz#c63332f415cedc4b04dbfe70cf836494c53cb44b"
dependencies:
for-in "^1.0.1"

isobject@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"

object.defaults@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/object.defaults/-/object.defaults-1.1.0.tgz#3a7f868334b407dea06da16d88d5cd29e435fecf"
dependencies:
array-each "^1.0.1"
array-slice "^1.0.0"
for-own "^1.0.0"
isobject "^3.0.0"

sliced@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/sliced/-/sliced-1.0.1.tgz#0b3a662b5d04c3177b1926bea82b03f837a2ef41"

unified-lint-rule@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/unified-lint-rule/-/unified-lint-rule-1.0.1.tgz#1bf733d40e667bf1915c7156a83663ed00666c57"
dependencies:
wrapped "^1.0.1"

unist-util-visit@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-1.1.3.tgz#ec268e731b9d277a79a5b5aa0643990e405d600b"

wrapped@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/wrapped/-/wrapped-1.0.1.tgz#c783d9d807b273e9b01e851680a938c87c907242"
dependencies:
co "3.1.0"
sliced "^1.0.1"
3 changes: 3 additions & 0 deletions packages/duplicate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"scripts": {
"build": "../../node_modules/.bin/rollup -c ../../rollup.config.js -i src.js -o index.js"
},
"dependencies": {
"remark-lint-are-links-valid-core": "^0.1.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/wemake-services/remark-lint-are-links-valid.git"
Expand Down
2 changes: 1 addition & 1 deletion packages/duplicate/src.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const main = require('../../dist')
const main = require('remark-lint-are-links-valid-core')

function handleLinkDuplicateError (file, link) {
const message = `Link is a duplicate: ${link.link.href}`
Expand Down

0 comments on commit 588283b

Please sign in to comment.