From 470280e367a611216f7521cacad0a96af2a7e37c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20=C3=81lvarez?= <BigChief45@users.noreply.github.com> Date: Mon, 10 Apr 2017 21:27:39 +0800 Subject: [PATCH] Add make new English error message (#4089) * Add make new English error message Currently, only Chinese error message is displayed when running make new command without arguments. * Update CONTRIBUTING.en-US --- .github/CONTRIBUTING.en-US.md | 2 +- build/bin/new.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/CONTRIBUTING.en-US.md b/.github/CONTRIBUTING.en-US.md index 04686b20f..e527744db 100644 --- a/.github/CONTRIBUTING.en-US.md +++ b/.github/CONTRIBUTING.en-US.md @@ -60,7 +60,7 @@ npm run dist ``` ## Component Developing Guidelines -- Run `make new` to create project directory for a new component. Test codes, entry file, cooking config, documentation and `package.json` are included. +- Run `make new <component-name>` to create project directory for a new component. Test codes, entry file, cooking config, documentation and `package.json` are included. - Refer to `Button` for nested components. - Refer to `Select` for components that depend on other components. diff --git a/build/bin/new.js b/build/bin/new.js index 5199aca1d..dc0018d98 100644 --- a/build/bin/new.js +++ b/build/bin/new.js @@ -6,7 +6,7 @@ process.on('exit', () => { }); if (!process.argv[2]) { - console.error('[组件名]必填.'); + console.error('[组件名]必填 - Please enter new component name'); process.exit(1); }