Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-textlint-rule

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-textlint-rule - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

4

bin/cmd.js

@@ -16,2 +16,3 @@ #!/usr/bin/env node

--yarn Use yarn for installing
--typescript Create TypeScript project
--yes Pass --yes all for initializing process

@@ -24,2 +25,4 @@

$ create-textlint-rule .
# create textlint-rule-example directory is based on TypeScript
$ create-textlint-rule example --typescript
`,

@@ -50,2 +53,3 @@ {

yarn: cli.flags.yarn,
typescript: cli.flags.typescript,
cwd: process.cwd()

@@ -52,0 +56,0 @@ })

@@ -14,2 +14,3 @@ // MIT © 2016 azu

* yarn: boolean
* typescript: boolean
* cwd: string

@@ -22,2 +23,3 @@ * }} [options]

const useYes = options.yes !== undefined;
const useTypeScript = options.typescript !== undefined;
const isInitInCurrentDir = projectName === ".";

@@ -31,4 +33,7 @@ const ruleName = isInitInCurrentDir

const ruleDir = isInitInCurrentDir ? options.cwd : path.join(options.cwd, ruleName);
const gitRepositoryUrl = useTypeScript
? "https://github.com/textlint/textlint-rule-template-ts.git"
: "https://github.com/textlint/textlint-rule-template.git";
return spawn(`git`, [
"clone", "--depth=1", "https://github.com/textlint/textlint-rule-template.git",
"clone", "--depth=1", gitRepositoryUrl,
isInitInCurrentDir ? "." : ruleName

@@ -35,0 +40,0 @@ ], {

2

package.json

@@ -12,3 +12,3 @@ {

"name": "create-textlint-rule",
"version": "1.3.0",
"version": "1.4.0",
"description": "Create textlint rule project with no configuration.",

@@ -15,0 +15,0 @@ "main": "lib/create-textlint-rule.js",

@@ -7,3 +7,2 @@ # create-textlint-rule [![Build Status](https://travis-ci.org/textlint/create-textlint-rule.svg?branch=master)](https://travis-ci.org/textlint/create-textlint-rule)

## Install

@@ -21,3 +20,2 @@

$ create-textlint-rule --help
Usage

@@ -29,2 +27,3 @@ $ create-textlint-rule rule-name

--yarn Use yarn for installing
--typescript Create TypeScript project
--yes Pass --yes all for initializing process

@@ -37,3 +36,5 @@

$ create-textlint-rule .
# create textlint-rule-example directory is based on TypeScript
$ create-textlint-rule example --typescript
Create textlint rule project by following command:

@@ -47,4 +48,5 @@

You can start to develop textlint rule.
(See [textlint-scripts](https://github.com/textlint/textlint-scripts "textlint-scripts") for more details.)
For more details, see [textlint-scripts](https://github.com/textlint/textlint-scripts "textlint-scripts").
### Build

@@ -84,2 +86,5 @@

- [textlint/textlint-rule-template: This is TEMPLATE REPOSITORY for creating textlint rule.](https://github.com/textlint/textlint-rule-template)
- JavaScript Template
- [https://github.com/textlint/textlint-rule-template-ts#textlint-rule-template](https://github.com/textlint/textlint-rule-template-ts#textlint-rule-template)
- TypeScript Template
- [textlint/textlint-scripts: textlint npm-run-scripts CLI help to create textlint rule.](https://github.com/textlint/textlint-scripts)

@@ -86,0 +91,0 @@ - [facebookincubator/create-react-app: Create React apps with no build configuration.](https://github.com/facebookincubator/create-react-app "facebookincubator/create-react-app: Create React apps with no build configuration.")

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc