Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renames @monorepo-lint/all to monorepolint #21

Merged
merged 7 commits into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github_changelog_generator
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
issues-wo-labels=false
release-branch=master
pr-wo-labels=true
user=monorepo-lint
project=monorepo-lint
user=monorepolint
project=monorepolint
2 changes: 1 addition & 1 deletion monorepo-lint.config.ts → .monorepolint.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Copyright (c) 2018 monorepo-lint (http://monorepo-lint.com). All Right Reserved.
* Copyright (c) 2018 monorepolint (http://monorepolint.com). All Right Reserved.
*
* Licensed under the MIT license. See LICENSE file in the project root for details.
*
Expand Down
26 changes: 13 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# Change Log

## [v0.1.9](https://github.com/monorepo-lint/monorepo-lint/tree/v0.1.9) (2018-12-19)
## [v0.1.9](https://github.com/monorepolint/monorepolint/tree/v0.1.9) (2018-12-19)

[Full Changelog](https://github.com/monorepo-lint/monorepo-lint/compare/v0.1.6...v0.1.9)
[Full Changelog](https://github.com/monorepolint/monorepolint/compare/v0.1.6...v0.1.9)

**Implemented enhancements:**

- Adds @monorepo-lint/expect-alphabetical-dependencies [\#3](https://github.com/monorepo-lint/monorepo-lint/pull/3) ([maclockard](https://github.com/maclockard))
- Implements @monorepo-lint/expect-package-order [\#1](https://github.com/monorepo-lint/monorepo-lint/pull/1) ([maclockard](https://github.com/maclockard))
- Adds @monorepolint/expect-alphabetical-dependencies [\#3](https://github.com/monorepolint/monorepolint/pull/3) ([maclockard](https://github.com/maclockard))
- Implements @monorepolint/expect-package-order [\#1](https://github.com/monorepolint/monorepolint/pull/1) ([maclockard](https://github.com/maclockard))

**Merged pull requests:**

- Starts filling out README.md [\#6](https://github.com/monorepo-lint/monorepo-lint/pull/6) ([ericanderson](https://github.com/ericanderson))
- Adds circle config [\#5](https://github.com/monorepo-lint/monorepo-lint/pull/5) ([ericanderson](https://github.com/ericanderson))
- Updates copyright [\#4](https://github.com/monorepo-lint/monorepo-lint/pull/4) ([ericanderson](https://github.com/ericanderson))
- Adds prepublishOnly script and related [\#2](https://github.com/monorepo-lint/monorepo-lint/pull/2) ([ericanderson](https://github.com/ericanderson))
- Starts filling out README.md [\#6](https://github.com/monorepolint/monorepolint/pull/6) ([ericanderson](https://github.com/ericanderson))
- Adds circle config [\#5](https://github.com/monorepolint/monorepolint/pull/5) ([ericanderson](https://github.com/ericanderson))
- Updates copyright [\#4](https://github.com/monorepolint/monorepolint/pull/4) ([ericanderson](https://github.com/ericanderson))
- Adds prepublishOnly script and related [\#2](https://github.com/monorepolint/monorepolint/pull/2) ([ericanderson](https://github.com/ericanderson))

## [v0.1.6](https://github.com/monorepo-lint/monorepo-lint/tree/v0.1.6) (2018-12-18)
## [v0.1.6](https://github.com/monorepolint/monorepolint/tree/v0.1.6) (2018-12-18)

[Full Changelog](https://github.com/monorepo-lint/monorepo-lint/compare/8661ea28e4cc53483b489b0ea6dad728dbb52c9c...v0.1.6)
[Full Changelog](https://github.com/monorepolint/monorepolint/compare/8661ea28e4cc53483b489b0ea6dad728dbb52c9c...v0.1.6)

**Implemented enhancements:**

- Implement expect-standard-tsconfig [\#10](https://github.com/monorepo-lint/monorepo-lint/issues/10)
- Implement expect-package-script [\#9](https://github.com/monorepo-lint/monorepo-lint/issues/9)
- Implement expect-file-contents [\#8](https://github.com/monorepo-lint/monorepo-lint/issues/8)
- Implement expect-standard-tsconfig [\#10](https://github.com/monorepolint/monorepolint/issues/10)
- Implement expect-package-script [\#9](https://github.com/monorepolint/monorepolint/issues/9)
- Implement expect-file-contents [\#8](https://github.com/monorepolint/monorepolint/issues/8)



Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2018 Eric L Anderson http://monorepo-lint.com
Copyright (c) 2018 Eric L Anderson http://monorepolint.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# monorepo-lint
# monorepolint

Managing large monorepos is hard. This makes it easier to standardize them.

[![CircleCI](https://circleci.com/gh/monorepo-lint/monorepo-lint.svg?style=shield)](https://circleci.com/gh/monorepo-lint/monorepo-lint) [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/) [![Greenkeeper badge](https://badges.greenkeeper.io/monorepo-lint/monorepo-lint.svg)](https://greenkeeper.io/)
[![CircleCI](https://circleci.com/gh/monorepolint/monorepolint.svg?style=shield)](https://circleci.com/gh/monorepolint/monorepolint) [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/) [![Greenkeeper badge](https://badges.greenkeeper.io/monorepolint/monorepolint.svg)](https://greenkeeper.io/)

## Installation

```bash
yarn add @monorepo-lint/all
yarn add monorepolint
```

or

```bash
npm install @monorepo-lint/all
npm install monorepolint
```

## Running
Expand All @@ -23,7 +23,7 @@ npm install @monorepo-lint/all
Good for CI.

```bash
monorepo-lint check
monorepolint check
```

or use the shortcut (which i will only use now):
Expand All @@ -47,7 +47,7 @@ mrl check --fix

## Configuration

For now, look at [monorepo.lint.ts](./monorepo.lint.ts) in this repo.
For now, look at [.monorepolint.config.ts](./.monorepolint.config.ts) in this repo.

Sample:

Expand Down Expand Up @@ -166,4 +166,4 @@ module.exports = {

### I added a new package but I can't get it to work with the local monorepo.lint.ts. What?

The way yarn workspaces function, in order to get the right symlinks in `node_modules/@monorepo-lint/whatever` you need to run `yarn` again.
The way yarn workspaces function, in order to get the right symlinks in `node_modules/@monorepolint/whatever` you need to run `yarn` again.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "monorepo-lint",
"name": "monorepolint",
"author": "Eric L Anderson",
"url": "https://github.com/monorepo-lint/monorepo-lint",
"url": "https://github.com/monorepolint/monorepolint",
"license": "MIT",
"private": true,
"workspaces": {
Expand All @@ -28,11 +28,11 @@
"compile": "lerna run compile:typescript",
"compile:fast": "cd packages/all; tsc --build",
"compile:watch": "cd packages/all; tsc --build --watch",
"fix:lint:monorepo-lint": "monorepo-lint fix",
"fix:lint:monorepolint": "monorepolint fix",
"fix:lint:prettier": "prettier 'packages/*/src/**/*.{ts,tsx,less}' --write",
"fix:lint:typescript": "lerna run --no-bail lint:typescript -- --fix",
"lint": "npm-run-all lint:*",
"lint:monorepo-lint": "monorepo-lint check --verbose",
"lint:monorepolint": "monorepolint check --verbose",
"lint:prettier": "prettier 'packages/*/src/**/*.{ts,tsx,less}' -l",
"lint:typescript": "lerna run --no-bail lint:typescript",
"preLernaPublish": "npm-run-all clean compile lint test",
Expand Down
22 changes: 11 additions & 11 deletions packages/all/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@monorepo-lint/all",
"name": "monorepolint",
"version": "1.0.0-alpha.6+74320e3",
"license": "MIT",
"scripts": {
Expand All @@ -13,16 +13,16 @@
"test": "../../node_modules/.bin/jest --colors --passWithNoTests"
},
"dependencies": {
"@monorepo-lint/cli": "^1.0.0-alpha.6+74320e3",
"@monorepo-lint/core": "^1.0.0-alpha.6+74320e3",
"@monorepo-lint/rule-alphabetical-dependencies": "^1.0.0-alpha.6+74320e3",
"@monorepo-lint/rule-banned-dependencies": "^1.0.0-alpha.6+74320e3",
"@monorepo-lint/rule-consistent-dependencies": "^1.0.0-alpha.6+74320e3",
"@monorepo-lint/rule-file-contents": "^1.0.0-alpha.6+74320e3",
"@monorepo-lint/rule-package-order": "^1.0.0-alpha.6+74320e3",
"@monorepo-lint/rule-package-script": "^1.0.0-alpha.6+74320e3",
"@monorepo-lint/rule-standard-tsconfig": "^1.0.0-alpha.6+74320e3",
"@monorepo-lint/utils": "^1.0.0-alpha.6+74320e3"
"@monorepolint/cli": "^1.0.0-alpha.6+74320e3",
"@monorepolint/core": "^1.0.0-alpha.6+74320e3",
"@monorepolint/rule-alphabetical-dependencies": "^1.0.0-alpha.6+74320e3",
"@monorepolint/rule-banned-dependencies": "^1.0.0-alpha.6+74320e3",
"@monorepolint/rule-consistent-dependencies": "^1.0.0-alpha.6+74320e3",
"@monorepolint/rule-file-contents": "^1.0.0-alpha.6+74320e3",
"@monorepolint/rule-package-order": "^1.0.0-alpha.6+74320e3",
"@monorepolint/rule-package-script": "^1.0.0-alpha.6+74320e3",
"@monorepolint/rule-standard-tsconfig": "^1.0.0-alpha.6+74320e3",
"@monorepolint/utils": "^1.0.0-alpha.6+74320e3"
},
"publishConfig": {
"access": "public"
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"bin": {
"monorepo-lint": "./bin/monorepo-lint",
"monorepolint": "./bin/monorepolint",
"mrl": "./bin/mrl"
},
"name": "@monorepo-lint/cli",
"name": "@monorepolint/cli",
"version": "1.0.0-alpha.6+74320e3",
"license": "MIT",
"main": "lib/index.js",
Expand All @@ -19,8 +19,8 @@
"test": "../../node_modules/.bin/jest --colors --passWithNoTests"
},
"dependencies": {
"@monorepo-lint/core": "^1.0.0-alpha.6+74320e3",
"@monorepo-lint/utils": "^1.0.0-alpha.6+74320e3",
"@monorepolint/core": "^1.0.0-alpha.6+74320e3",
"@monorepolint/utils": "^1.0.0-alpha.6+74320e3",
"yargs": "^12.0.5"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*!
* Copyright (c) 2018 monorepo-lint (http://monorepo-lint.com). All Right Reserved.
* Copyright (c) 2018 monorepolint (http://monorepolint.com). All Right Reserved.
*
* Licensed under the MIT license. See LICENSE file in the project root for details.
*
*/

import * as path from "path";

import { check, Config, resolveConfig } from "@monorepo-lint/core";
import { findWorkspaceDir } from "@monorepo-lint/utils";
import { check, Config, resolveConfig } from "@monorepolint/core";
import { findWorkspaceDir } from "@monorepolint/utils";
import * as yargs from "yargs";

export default function run() {
Expand Down Expand Up @@ -45,7 +45,7 @@ interface Args {
}

function handleCheck(args: Args) {
const configPath = path.resolve(process.cwd(), "monorepo-lint.config.ts");
const configPath = path.resolve(process.cwd(), ".monorepolint.config.ts");
const config = Config.check(require(configPath));
const resolvedConfig = resolveConfig(
config,
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@monorepo-lint/core",
"name": "@monorepolint/core",
"version": "1.0.0-alpha.6+74320e3",
"author": "Eric Anderson",
"url": "https://github.com/monorepo-lint/monorepo-lint",
"url": "https://github.com/monorepolint/monorepolint",
"license": "MIT",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand All @@ -17,7 +17,7 @@
"test": "../../node_modules/.bin/jest --colors --passWithNoTests"
},
"dependencies": {
"@monorepo-lint/utils": "^1.0.0-alpha.6+74320e3",
"@monorepolint/utils": "^1.0.0-alpha.6+74320e3",
"chalk": "^2.4.1",
"minimatch": "^3.0.4",
"runtypes": "^3.1.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/Config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Copyright (c) 2018 monorepo-lint (http://monorepo-lint.com). All Right Reserved.
* Copyright (c) 2018 monorepolint (http://monorepolint.com). All Right Reserved.
*
* Licensed under the MIT license. See LICENSE file in the project root for details.
*
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/Context.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Copyright (c) 2018 monorepo-lint (http://monorepo-lint.com). All Right Reserved.
* Copyright (c) 2018 monorepolint (http://monorepolint.com). All Right Reserved.
*
* Licensed under the MIT license. See LICENSE file in the project root for details.
*
*/

import { PackageJson } from "@monorepo-lint/utils";
import { PackageJson } from "@monorepolint/utils";
import { ResolvedConfig } from "./Config";
import { WorkspaceContext } from "./WorkspaceContext";

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/PackageContext.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Copyright (c) 2018 monorepo-lint (http://monorepo-lint.com). All Right Reserved.
* Copyright (c) 2018 monorepolint (http://monorepolint.com). All Right Reserved.
*
* Licensed under the MIT license. See LICENSE file in the project root for details.
*
*/

import { PackageJson, readJson } from "@monorepo-lint/utils";
import { PackageJson, readJson } from "@monorepolint/utils";
import chalk from "chalk";
import * as path from "path";
import { ResolvedConfig } from "./Config";
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/WorkspaceContext.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Copyright (c) 2018 monorepo-lint (http://monorepo-lint.com). All Right Reserved.
* Copyright (c) 2018 monorepolint (http://monorepolint.com). All Right Reserved.
*
* Licensed under the MIT license. See LICENSE file in the project root for details.
*
*/

import { getWorkspacePackageDirs } from "@monorepo-lint/utils";
import { getWorkspacePackageDirs } from "@monorepolint/utils";
import { ResolvedConfig } from "./Config";
import { Context } from "./Context";
import { PackageContext } from "./PackageContext";
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/check.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Copyright (c) 2018 monorepo-lint (http://monorepo-lint.com). All Right Reserved.
* Copyright (c) 2018 monorepolint (http://monorepolint.com). All Right Reserved.
*
* Licensed under the MIT license. See LICENSE file in the project root for details.
*
*/

import { findWorkspaceDir } from "@monorepo-lint/utils";
import { findWorkspaceDir } from "@monorepolint/utils";
import minimatch from "minimatch";
import { ResolvedConfig } from "./Config";
import { Context } from "./Context";
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Copyright (c) 2018 monorepo-lint (http://monorepo-lint.com). All Right Reserved.
* Copyright (c) 2018 monorepolint (http://monorepolint.com). All Right Reserved.
*
* Licensed under the MIT license. See LICENSE file in the project root for details.
*
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/resolveConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Copyright (c) 2018 monorepo-lint (http://monorepo-lint.com). All Right Reserved.
* Copyright (c) 2018 monorepolint (http://monorepolint.com). All Right Reserved.
*
* Licensed under the MIT license. See LICENSE file in the project root for details.
*
Expand Down Expand Up @@ -75,7 +75,7 @@ function resolveRule(

function loadRuleModule(type: string, workspaceRootDir: string) {
const q = type.startsWith(":")
? "@monorepo-lint/rule-" + type.substring(1)
? "@monorepolint/rule-" + type.substring(1)
: type.startsWith(".")
? path.resolve(workspaceRootDir, type)
: type;
Expand Down
8 changes: 4 additions & 4 deletions packages/rule-alphabetical-dependencies/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@monorepo-lint/rule-alphabetical-dependencies",
"name": "@monorepolint/rule-alphabetical-dependencies",
"version": "1.0.0-alpha.6+74320e3",
"author": "Mac Lockard",
"url": "https://github.com/monorepo-lint/monorepo-lint",
"url": "https://github.com/monorepolint/monorepolint",
"license": "MIT",
"main": "lib/alphabeticalDependencies.js",
"typings": "lib/alphabeticalDependencies.d.ts",
Expand All @@ -17,8 +17,8 @@
"test": "../../node_modules/.bin/jest --colors --passWithNoTests"
},
"dependencies": {
"@monorepo-lint/core": "^1.0.0-alpha.6+74320e3",
"@monorepo-lint/utils": "^1.0.0-alpha.6+74320e3",
"@monorepolint/core": "^1.0.0-alpha.6+74320e3",
"@monorepolint/utils": "^1.0.0-alpha.6+74320e3",
"jest-diff": "^23.6.0",
"runtypes": "^3.1.2"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*!
* Copyright (c) 2018 monorepo-lint (http://monorepo-lint.com). All Right Reserved.
* Copyright (c) 2018 monorepolint (http://monorepolint.com). All Right Reserved.
*
* Licensed under the MIT license. See LICENSE file in the project root for details.
*
*/

import { Context, RuleModule } from "@monorepo-lint/core";
import { writeJson } from "@monorepo-lint/utils";
import { Context, RuleModule } from "@monorepolint/core";
import { writeJson } from "@monorepolint/utils";
import diff from "jest-diff";
import * as r from "runtypes";

Expand Down
8 changes: 4 additions & 4 deletions packages/rule-banned-dependencies/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@monorepo-lint/rule-banned-dependencies",
"name": "@monorepolint/rule-banned-dependencies",
"version": "1.0.0-alpha.6+74320e3",
"author": "Mac Lockard",
"url": "https://github.com/monorepo-lint/monorepo-lint",
"url": "https://github.com/monorepolint/monorepolint",
"license": "MIT",
"main": "lib/bannedDependencies.js",
"typings": "lib/bannedDependencies.d.ts",
Expand All @@ -17,8 +17,8 @@
"test": "../../node_modules/.bin/jest --colors --passWithNoTests"
},
"dependencies": {
"@monorepo-lint/core": "^1.0.0-alpha.6+74320e3",
"@monorepo-lint/utils": "^1.0.0-alpha.6+74320e3",
"@monorepolint/core": "^1.0.0-alpha.6+74320e3",
"@monorepolint/utils": "^1.0.0-alpha.6+74320e3",
"jest-diff": "^23.6.0",
"runtypes": "^3.1.2"
},
Expand Down
Loading