GithubHelp home page GithubHelp logo

electrodejs / deprecated-generator-electrode-component Goto Github PK

View Code? Open in Web Editor NEW
60.0 60.0 5.0 40 KB

Yeoman generator for Electrode-React Components

License: Other

JavaScript 87.28% CSS 7.79% HTML 4.93%

deprecated-generator-electrode-component's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deprecated-generator-electrode-component's Issues

Gulp Check error

Ran into an issue working through an example in the docs ( http://www.electrode.io/docs/create_reusable_component.html ) and got the following error on gulp check

-d was unexpected at this time.

I was able to duplicate this by running the following

yo electrode-component

gulp check

resulting in a string of errors referencing the message above

Here is the full output of gulp check

gulp check
[14:57:01] Using gulpfile ~\Documents\Dev\my-electrode-component\gulpfile.js
[14:57:01] Starting 'check'...
[14:57:01] Starting 'check-dep'...
Check dependencies passed
[14:57:01] Finished 'check-dep' after 167 ms
[14:57:01] Starting 'lint'...
[14:57:01] Starting 'lint-stylus'...
-d was unexpected at this time.
[14:57:01] 'lint-stylus' errored after 7.12 ms
[14:57:01] Error: command exit code 1
at error (C:\Users\Nathan\Documents\Dev\my-electrode-component\node_modules\electrode-gulp-helper\lib\exec.js:6:15)
at C:\Users\Nathan\Documents\Dev\my-electrode-component\node_modules\electrode-gulp-helper\lib\exec.js:19:29
at C:\Users\Nathan\Documents\Dev\my-electrode-component\node_modules\shelljs\src\exec.js:180:7
at ChildProcess.exithandler (child_process.js:220:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
[14:57:01] 'check' errored after 181 ms
[14:57:01] Error in plugin 'run-sequence(lint-stylus)'
Message:
command exit code 1
Details:
stdout:
stderr: -d was unexpected at this time.

Stack:
Error: command exit code 1
at error (C:\Users\Nathan\Documents\Dev\my-electrode-component\node_modules\electrode-gulp-helper\lib\exec.js:6:15)
at C:\Users\Nathan\Documents\Dev\my-electrode-component\node_modules\electrode-gulp-helper\lib\exec.js:19:29
at C:\Users\Nathan\Documents\Dev\my-electrode-component\node_modules\shelljs\src\exec.js:180:7
at ChildProcess.exithandler (child_process.js:220:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
[14:57:01] 'lint' errored after 16 ms
[14:57:01] Error in plugin 'run-sequence(check)'
Message:
command exit code 1
Details:
stdout:
stderr: -d was unexpected at this time.

Stack:
Error: command exit code 1
at error (C:\Users\Nathan\Documents\Dev\my-electrode-component\node_modules\electrode-gulp-helper\lib\exec.js:6:15)
at C:\Users\Nathan\Documents\Dev\my-electrode-component\node_modules\electrode-gulp-helper\lib\exec.js:19:29
at C:\Users\Nathan\Documents\Dev\my-electrode-component\node_modules\shelljs\src\exec.js:180:7
at ChildProcess.exithandler (child_process.js:220:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
[14:57:01] 'lint' errored after 20 ms
[14:57:01] Error in plugin 'run-sequence(lint-stylus)'
Message:
command exit code 1
Details:
stdout:
stderr: -d was unexpected at this time.

Stack:
Error: command exit code 1
at error (C:\Users\Nathan\Documents\Dev\my-electrode-component\node_modules\electrode-gulp-helper\lib\exec.js:6:15)
at C:\Users\Nathan\Documents\Dev\my-electrode-component\node_modules\electrode-gulp-helper\lib\exec.js:19:29
at C:\Users\Nathan\Documents\Dev\my-electrode-component\node_modules\shelljs\src\exec.js:180:7
at ChildProcess.exithandler (child_process.js:220:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

Bug: tmp directory

The generator creates (or maybe gulp?) a directory name tmp in the root of the project. If a temp directory is needed, should respect the systems tmp. If its not a temp directory, should have a different name.

Allow for Bitbucket in addition to Github

When using the generator, it assumes the user is using Github, but that is not always the case. While not a huge deal, it means the user needs to go modify the package.json as soon as generation has been completed.

Other than that, this generator rocks!

Update documentation to include information about internationalization

It appears that the internationalization provided by the generator is not included in any documentation (if it is, please point me in the right direction). It would be helpful to have this included in the documentation as well as instructions for removing it or adding to it.

The concept of multi-tenancy is also not discussed in the documentation, but shows up under src\lang\tenants (as well as other places).

Enhancment: Use the directory name as the repo name default

$ What is your Package/GitHub project name? (e.g., 'wysiwyg-component') (wysiwyg-component)

should be

$ What is your Package/GitHub project name? (e.g.,'my-electrode-component') (my-electrode-component)

where my-electrode-component is the name of your component.

Enhancement: Port configuration

I would assume there would be many component dev environments running at any given time. So it would be great if the http listen port was configurable via environment and/or config section in the package.json.

$ HTTP_PORT=4001 gulp dev
$ HTTP_PORT=4002 npm start

//package.json

"config": {
   "electrode":{
     "port":4002
   }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.