14.0.4 • Published 2 months ago

textlint-scripts v14.0.4

Weekly downloads
70
License
MIT
Repository
github
Last release
2 months ago

textlint-scripts

textlint scripts help you to create textlint rule.

Documentation of creating a textlint rule:

Install

Install with npm:

npm install textlint-scripts --save-dev

Usage

Use textlint-scripts as npm-scripts.

{
    "scripts" : {
        "build": "textlint-scripts build",
        "test": "textlint-scripts test"
    }
}

:memo: TypeScript

textlint-scripts support TypeScript.

textlint-scripts detect the project is TypeScript by tsconfig.json in project root directory.

textlint-scripts build

Build source codes in src/ and output to lib/.

It is built by Babel with env preset.

Additionally, build command inline Node fs calls with babel-plugin-static-fs for browser compatibility. (Web Browser does not support Node.js's fs module, this inlining feature improve compatibility between Node.js and Web Browser.)

:memo: Disable inlining by $ NO_INLINE=1 textlint-scripts build.

textlint-scripts test

Test test codes in test/ by Mocha.

Usually test textlint rule using textlint-tester.

Notes: register script

textlint-scripts also provide register script for run-time build. It will help to run tests from your IDE like WebStorm.

# js
mocha --require textlint-scripts/register "test/**/*.js"
# ts
mocha --require textlint-scripts/register-ts "test/**/*.ts"

Changelog

See Releases page.

Author

License

MIT © azu

14.0.4

2 months ago

14.0.3

3 months ago

14.0.2

3 months ago

14.0.0

3 months ago

14.0.1

3 months ago

13.4.2-next.0

3 months ago

13.4.1

5 months ago

13.4.0

6 months ago

13.3.3

10 months ago

13.3.1

1 year ago

13.1.3

1 year ago

13.3.2

1 year ago

13.1.4

1 year ago

13.1.1

1 year ago

13.3.0

1 year ago

13.1.2

1 year ago

13.1.0

1 year ago

12.6.1

1 year ago

12.6.0

1 year ago

13.0.4

1 year ago

13.0.5

1 year ago

13.2.0

1 year ago

13.0.2

1 year ago

13.0.3

1 year ago

13.0.0

1 year ago

13.0.1

1 year ago

12.5.2

1 year ago

12.3.0

1 year ago

12.4.0

1 year ago

12.3.1

1 year ago

12.5.0

1 year ago

12.2.3

1 year ago

12.2.4

1 year ago

12.2.2

2 years ago

12.2.1

2 years ago

12.2.0

2 years ago

12.1.0

2 years ago

12.1.1

2 years ago

12.0.2

3 years ago

12.0.0-beta.2

3 years ago

12.0.0-beta.3

3 years ago

12.0.0-beta.1

3 years ago

12.0.0

3 years ago

12.0.1

3 years ago

3.0.0

5 years ago

3.0.0-beta.2

5 years ago

3.0.0-beta.1

5 years ago

3.0.0-beta.0

5 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago