yeoman-generator

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,

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

How to redirect users to original request after authentication, Angular-Fullstack Yeoman?

假装没事ソ 提交于 2019-12-09 20:31:41
问题 I'm using the Angular-Fullstack yeoman generator as the basis for my project: https://github.com/DaftMonk/generator-angular-fullstack I cannot figure out how to redirect users to the link they originally requested after logging in. Example of what I want to happen: Unauthenticated user requests http://myapp/videos/video1 User is directed to log in User successfully authenticates User is automatically redirected to http://myapp/videos/video1 I am using both the boilerplate local login and

Creating empty directories in a Yeoman Generator

久未见 提交于 2019-12-08 15:55:07
问题 How does one create an empty directory via a yeoman generator? I've looked at mem-fs-editor, but as far as I can tell, directories are only created when a child file is created. I've tried creating a file in a sub directory and then deleting the file, but this doesn't work (I assume because mem-fs is prebuilt completely in memory, when it comes to write to disk, empty directories are not written). 回答1: mem-fs-editor (the file library used by Yeoman) do not support empty folders. This is very

Using two yeoman generators?

北战南征 提交于 2019-12-08 14:52:26
问题 Is it possible to use two generators on one project with yeoman? For example: I want to use the angular-generator but also want to use another generator, whether it be custom or one of the bootstrap generators. I know you can add dependencies through bower, but that doesn't add anything to my workflow(e.g. compiling less), does it? 回答1: Yes, it is not only possible, but common. Example: When you use JS-MV* generator in the project ( generator-angular for instance) you will probably use

Publishing Outlook add-in which uses Outlook preview element - SupportsSharedFolders

只愿长相守 提交于 2019-12-08 02:34:18
问题 I am developing Outlook add-in which will work with shared mailboxes. Currently, office add-ins are not available on delegate scenarios but MS has released preview build which supports these scenarios. https://docs.microsoft.com/en-us/office/dev/add-ins/reference/manifest/supportssharedfolders My problem is since the manifest.xml has preview elements; I can't upload the it at outlook.office365.com under my add-ins . I get following error. This app can't be installed. The manifest file doesn't

Yeoman Generator: CLI+File Instead of Prompt

北战南征 提交于 2019-12-07 18:15:53
问题 I've been using a few Yeoman Generators that prompt me for user input. I'd prefer to put my inputs in a JSON file though. I can see that yo-rc.json gets generated afterwards, but I'd like to use that (or a file like it) as an input to Yeoman. Example using JHipster: Current Behavior $ yo jhipster Welcome to the JHipster Generator v2.16.1 ? (1/15) What is the base name of your application? (jhipster) helpme ? (2/15) What is your default Java package name? com.mycompany.helpme ... # Yeoman

How to ignore files in Yeoman with fs.copyTpl

試著忘記壹切 提交于 2019-12-07 11:43:46
问题 how can i ignore files? i want to exclude all file starting with _ in any subdirectory. i have no success with these two approaches: this.fs.copyTpl( this.templatePath('basicFiles/'), this.destinationPath(''), answers, {ignore:"_*.*"} ); this.fs.copyTpl( [!*.*,this.templatePath('basicFiles/')], this.destinationPath(''), answers ); More general, would like to merge(deep copy) every basic/_exmaple.json into additionalConfig/example.json to desitnationPaht/exmaple.json (merged). Every idea is

Unable to create yeoman webapp

自闭症网瘾萝莉.ら 提交于 2019-12-07 11:15:51
问题 I get this when I try to create a webapp with yeoman . /usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:66 throw err; ^ Error: EACCES, permission denied '/root/.config/configstore/insight-yo.yml' You don't have access to this file. at Object.fs.openSync (fs.js:436:18) at Object.fs.writeFileSync (fs.js:975:15) at Object.create.all.set (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:56:8) at Object