electrodejs / deprecated-generator-electrode-component Goto Github PK
View Code? Open in Web Editor NEWYeoman generator for Electrode-React Components
License: Other
Yeoman generator for Electrode-React Components
License: Other
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)
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.
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!
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).
$ 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.
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
}
}
Is nearly a duplicate of this question. These should be the same 99% of the time. So why ask the question. Save questions for bigger code splits.
What is your Package/GitHub project name? (e.g., 'wysiwyg-component') my-electrode-component
Should have a npm start script and npm test script, by default.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.