Browse Source

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
Andrés Álvarez 8 years ago
parent
commit
470280e367
2 changed files with 2 additions and 2 deletions
  1. 1 1
      .github/CONTRIBUTING.en-US.md
  2. 1 1
      build/bin/new.js

+ 1 - 1
.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.
 

+ 1 - 1
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);
 }