charlypoly / generator-yui3 Goto Github PK
View Code? Open in Web Editor NEWYUI3 project scaffolder
License: MIT License
YUI3 project scaffolder
License: MIT License
Et lister les tâches possibles
this command will update meta file and add files into lang/
folder
Example :
$myProject/myModule> yo yui3:addlang de,en,es
$myProject/myModule> "module updated !"
"shifter": {
"jsstamp": false
}
invoke shifter
like projectName
We need to find an other .generator-yui3.json
Rename an existing module
La création d'un module avec, par exemple le nom "test-module", rend la compression uglify impossible.
Fixer la ligne
"var <%= _.capitalize(name) %> = new Y.Base.create("<%= name %>", Y.Base, [], {"
capitalize('test-module') donne Test-module (qui n'est pas un nom de variable valide)
wip
WIP
warning
SASS needs ruby.
We'll need to check that sass command exists from node code.
Yo yui3:interaction ne prendrais plus de paramètre. On chercherait dans les dossiers qui sont au même niveau que le projet courant.
give some info about the current entity (project or module)
I'm trying to add templates via $yo yui3:addtemplate in one of my module directories. It seems to work just fine, save for throwing some warnings when i run the $yo yui3:build-module. The first is probably innocuous (duplicate template warning, seems to overwrite fine). The second is a little troubling though, involiving a postexec shifter clean script? Perhaps that should be packaged next to meta_join.js?
$yo yui3:build-module
... shifter stuff seems to work fine ...
stderr: shifter [err] start stderr output from "/path/to/.nvm/v0.11.12/bin/yo" yui3:handlebars
identical templates/navigation-menu.js
shifter [err] end stderr output from "/Users/derekadair/.nvm/v0.11.12/bin/yo" yui3:handlebars
shifter [err] start stderr output from "/usr/bin/ruby" ../../../../../../script/post_shifter_cleaner.rb
/usr/bin/ruby: No such file or directory -- ../../../../../../script/post_shifter_cleaner.rb (LoadError)
shifter [err] end stderr output from "/usr/bin/ruby" ../../../../../../script/post_shifter_cleaner.rb
I'm trying to add templates via $yo yui3:addtemplate in one of my module directories. It seems to work just fine, save for throwing some warnings when i run the $yo yui3:build-module. The first is probably innocuous (duplicate template warning, seems to overwrite fine). The second is a little troubling though, involiving a postexec shifter clean script? Perhaps that should be packaged next to meta_join.js?
$yo yui3:build-module
... shifter stuff seems to work fine ...
stderr: shifter [err] start stderr output from "/path/to/.nvm/v0.11.12/bin/yo" yui3:handlebars
identical templates/navigation-menu.js
shifter [err] end stderr output from "/Users/derekadair/.nvm/v0.11.12/bin/yo" yui3:handlebars
shifter [err] start stderr output from "/usr/bin/ruby" ../../../../../../script/post_shifter_cleaner.rb
/usr/bin/ruby: No such file or directory -- ../../../../../../script/post_shifter_cleaner.rb (LoadError)
shifter [err] end stderr output from "/usr/bin/ruby" ../../../../../../script/post_shifter_cleaner.rb
par defaut "yo yui3:addtemplate" créer un fichier myModuleName.handlebars.html dans le dossier myModuleName/templates.
"yo yui3:addtemplate qqchose" créer un fichier myModuleName-qqchose.handlebars.html dans le dossier myModuleName/templates.
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.