Skip to content

Commit

Permalink
refactor(monorepo): Move @textlint to @textlint directory
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Nov 27, 2017
1 parent a00ea1d commit ed75d4a
Show file tree
Hide file tree
Showing 18 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ These modules are useful for textlint rule/plugin author.

| Package | Version | Description |
|---------|---------|-------------|
| [`@textlint/ast-node-types`](/packages/ast-node-types) | [![npm](https://img.shields.io/npm/v/@textlint/ast-node-types.svg?style=flat-square)](https://www.npmjs.com/package/@textlint/ast-node-types) | [textlint AST(Abstract Syntax Tree)](./docs/txtnode.md) type definition |
| [`@textlint/ast-node-types`](/packages/@textlint/ast-node-types) | [![npm](https://img.shields.io/npm/v/@textlint/ast-node-types.svg?style=flat-square)](https://www.npmjs.com/package/@textlint/ast-node-types) | [textlint AST(Abstract Syntax Tree)](./docs/txtnode.md) type definition |
| [`textlint-tester`](/packages/textlint-tester) | [![npm](https://img.shields.io/npm/v/textlint-tester.svg?style=flat-square)](https://www.npmjs.com/package/textlint-tester) | textlint rule testing tools |
| [`textlint-scripts`](https://github.com/textlint/textlint-scripts) | [![npm](https://img.shields.io/npm/v/textlint-scripts.svg?style=flat-square)](https://www.npmjs.com/package/textlint-scripts) | textlint rule npm run-scripts |
| [`create-textlint-rule`](https://github.com/textlint/create-textlint-rule) | [![npm](https://img.shields.io/npm/v/create-textlint-rule.svg?style=flat-square)](https://www.npmjs.com/package/create-textlint-rule) | create textlint rule with no build configuration |
Expand All @@ -502,7 +502,7 @@ These modules are internal usage in the monorepo.
| Package | Version | Description |
|---------|---------|-------------|
| [`@textlint/monorepo-scripts`](/packages/textlint-monorepo-scripts) | [![npm](https://img.shields.io/npm/v/@textlint/monorepo-scripts.svg?style=flat-square)](https://www.npmjs.com/package/@textlint/monorepo-scripts) | textlint monorepo build scripts |
| [`@textlint/feature-flag`](/packages/textlint-feature-flag) | [![npm](https://img.shields.io/npm/v/@textlint/feature-flag.svg?style=flat-square)](https://www.npmjs.com/package/@textlint/feature-flag) | feature flag manager |
| [`@textlint/feature-flag`](/packages/@textlint/textlint-feature-flag) | [![npm](https://img.shields.io/npm/v/@textlint/feature-flag.svg?style=flat-square)](https://www.npmjs.com/package/@textlint/feature-flag) | feature flag manager |

## Who's using textlint?

Expand Down
4 changes: 2 additions & 2 deletions docs/txtnode.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import { ASTNodeTypes } from "@textlint/ast-node-types";
console.log(ASTNodeTypes.Str); // "Str"
```

See [packages/ast-node-types](../packages/ast-node-types) for more details.
See [packages/ast-node-types](../packages/@textlint/ast-node-types) for more details.

These types are be available at all times:

Expand Down Expand Up @@ -124,7 +124,7 @@ Following parsers are built-in.

If you want to get other type, please file issue.

- [packages/ast-node-types](../packages/ast-node-types)
- [packages/ast-node-types](../packages/@textlint/ast-node-types)

### Online Parsing Demo

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@textlint/ast-node-types",
"version": "2.0.0",
"description": "textlint AST node type difinition.",
"description": "textlint AST node type definition.",
"main": "./lib/TextLintASTNodeTypes.js",
"types": "./lib/TextLintASTNodeTypes.d.ts",
"files": [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"bugs": {
"url": "https://github.com/textlint/textlint/issues"
},
"homepage": "https://github.com/textlint/textlint/tree/master/packages/textlint-feature-flag/",
"homepage": "https://github.com/textlint/textlint/tree/master/packages/@textlint/feature-flag/",
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-preset-env": "^1.4.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const isFeatureEnabled = (flagName, { loose = false } = {}) => {
// loose-mode, return false
return false;
} else {
throw new Error(`textlint-feature-flag:Error: ${flagName} is not defined.`);
throw new Error(`@textlint/feature-flag:Error: ${flagName} is not defined.`);
}
}
const status = flagMap.get(flagName);
Expand Down
2 changes: 1 addition & 1 deletion packages/@textlint/kernel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"bugs": {
"url": "https://github.com/textlint/textlint/issues"
},
"homepage": "https://github.com/textlint/textlint/tree/master/packages/textlint-kernel/",
"homepage": "https://github.com/textlint/textlint/tree/master/packages/@textlint/textlint-kernel/",
"devDependencies": {
"@types/mocha": "^2.2.43",
"@types/node": "^8.0.28",
Expand Down
2 changes: 1 addition & 1 deletion packages/textlint/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Engine-->CLI: output

- CLI know Engine
- Engine know Core
- Core know [kernel](https://github.com/textlint/textlint/tree/master/packages/textlint-kernel/)
- Core know [kernel](https://github.com/textlint/textlint/tree/master/packages/@textlint/textlint-kernel/)

textlint apply [Separation of Concern](http://weblogs.asp.net/arturtrosin/separation-of-concern-vs-single-responsibility-principle-soc-vs-srp "Separation of Concern").

Expand Down

0 comments on commit ed75d4a

Please sign in to comment.