yeoman

Unable to generate “dist” folder in yeoman angular generated webapp

跟風遠走 提交于 2019-12-11 03:42:45
问题 I am unable to generate dist folder in the web app built and generated using yeoman angular generator. I am pasting the verbose of grunt build. Please check if this is helpful. pdc1-f3t18r1:ShippingSolution administrator$ grunt --verbose build Initializing Command-line options: --verbose Reading "Gruntfile.js" Gruntfile...OK Registering Gruntfile tasks. Registering "grunt-autoprefixer" local Npm module tasks. Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules

Copy all files but change the name of some automatically in yeoman

删除回忆录丶 提交于 2019-12-11 02:09:30
问题 I am trying to create a yeoman generator where I have to copy from templatePath to destinationPath some files and folders, but I would want to have some of this files with a variable that yeoman could change by one of the user's inputs. like: "<%=name%>-plugin.php" -> "hello-plugin.php" I saw some references that this can be done but I can't find how. I am doing right now: //Copy the configuration files app: function () { this.fs.copyTpl( this.templatePath('**'), this.destinationPath(), {

Remove complete angular project built with Yeoman

房东的猫 提交于 2019-12-11 01:15:43
问题 i used yeoman to scaffolding angular project structure, but now i have problem to remove all contents under the root folder, there's this "node_modules" folder, i can't delete it. My OS is win7, does anybody know how to delete the project completely? 回答1: I encountered this same issue when I tried to remove a node based application on my own Windows 7 box. I used this tool to remove the folder. http://www.osmstudios.com/projects/path-too-long Its written in Java so that is the only

Grunt dynamic dest location sass

≡放荡痞女 提交于 2019-12-10 20:45:32
问题 This could possibly be a repeat question but I couldn't figure out a solution for my requirement I am trying to create a sass grunt task which can generate css files in a dynamic location. Here is my structure /components --> xyz --> scss --> xyz.a.scss --> xyz.b.scss --> abc --> scss --> abc.a.scss --> abc.b.scss Can the grunt task create a new folder relative to its component i.e /components --> xyz --> scss --> xyz.a.scss --> xyz.b.scss --> css --> xyz.a.css --> xyz.b.css --> abc --> scss

Do you run yeoman/gruntjs inside your vagrant (vm)

Deadly 提交于 2019-12-10 19:33:49
问题 So I want to start using yeoman (Gruntjs/requirejs/bower), but I was wondering if this could be done from inside your vm or would it be better for my workflow to have it installed on my host machine (OSX)? As far as I know you need to have a couple dependancies like node.js. Is this a subjective thing or is there a guideline? 回答1: As @matt-cooper said, it's a subjective thing. Personally, I run it on my host because that's where git and my IDE live and I consider Yeoman etc to be development

jhipster application files generated in wrong directory

余生颓废 提交于 2019-12-10 18:04:21
问题 When I try to create a jhipster application in ubuntu 13.10 with yo jhipster the generated output files are always dumped in the wrong directory. For example I run yo jhipster in the directory /mnt/mercury/jhipster-test/alpha then the files are dumped out to /mnt/mercury . In fact if I run yo jhipster in any subdirectory of /mnt/mercury they are always dumped out to /mnt/mercury . I'm using yo version 1.1.2 from the standard ubuntu repository Please advise how to generate files to be output

Yeoman generator-angular : 'task wiredep' is not in gulpfile & $.useref.restore is not a function

送分小仙女□ 提交于 2019-12-10 15:41:48
问题 I've just started using Yeoman to scaffold a new Angular app. I followed the installation guide at generator-angular but chose to use gulp instead of grunt for the task runner. After installation I received error : task 'wiredep' is not in you gulpfile . I tried running the build using gulp and received error : TypeError: $.useref.restore is not a function If I run gulp serve , the resulting page does not wire dependencies. Is there a fix to the errors above? I noticed that Yeoman uses grunt,

How i can use yeoman to work with Sass files?

谁都会走 提交于 2019-12-10 15:33:22
问题 I try to use yeoman to compile a styles.sass file founded in app/styles directory. In my index.html i write : <!-- build:css(.tmp/styles) styles/styles.css --> <link rel="stylesheet" href="styles/style.sass" /> <!-- endbuild --> When i launch grunt server Sass file is watched and compiled into .tmp/styles/ But in my dist/styles directory, nothing is written in my xxxxxxx.styles.css may i miss something? 回答1: Your Sass is compiled into .tmp/styles when running grunt server , since it's only

yeoman print code character in templates

僤鯓⒐⒋嵵緔 提交于 2019-12-10 14:46:10
问题 when i copy a template with this.copyTpl yeoman print code cacharter of quotes and not quotes ...here what im doing in index.js this.dependencies["fontawesome"] = "4.2"; this.dependencies["jQuery"] = "~1.11.1"; this.dependencies["responsive-nav"] = "1.0.34"; this.dependencies["superfish"] = "1.7.5"; this.dep = JSON.stringify(this.dependencies); console.log(this.dep) display {"fontawesome":"4.2","jQuery":"~1.11.1","responsive-nav":"1.0.34","superfish":"1.7.5"} this.fs.copyTpl( this

Jhispter installation: The package karma does not satisfy its siblings' peerDependencies requirements

岁酱吖の 提交于 2019-12-10 14:36:12
问题 I'm trying to generete jhipster project by yo. But when I run it, a strange error occurs: The package karma does not satisfy its siblings' peerDependencies requirements! I uninstalled the nodejs completely and installed it again, but still same error. When I search for there are some solution advices like this or this. I have 64 bit win7, node -v v0.10.26 npm -v 1.4.3 error peerinvalid The package karma does not satisfy its siblings' peerDependencies requirements! error peerinvalid Peer karma