yeoman

npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm

╄→гoц情女王★ 提交于 2019-12-09 07:50:14
问题 I am installing node.js on a CentOS 7 server, and am getting the following error when I try to install yeoman: npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm The install of yeoman seems to otherwise work correctly. Is there something that I can do to avoid this warning? What are the implications of leaving it unhandled? Here is the rest of the first part of the terminal output from the yeoman install: [root@localhost ~

Best way for deploy angular.js application made with yeoman?

我的未来我决定 提交于 2019-12-09 05:29:48
问题 I´m building application SPA using angular.js with yeoman which connect with a API RESTful made in Java using spring-MVC . i´m begginer for deploy web applications in angular and so i want to know some differents alternatives or best practice , for example deploy in http-server as apache, inside war using application-server as tomcat , or another option or suggestions . Thanks a lot for help . 回答1: Then your frontend code is production-ready, just run $ grunt build and serve static resources

Cannot use grunt on simple Yeoman angular

北城余情 提交于 2019-12-09 04:22:12
问题 Trying to just startup a simple angular app via Yeoman, using steps in this guide http://www.sitepoint.com/kickstart-your-angularjs-development-with-yeoman-grunt-and-bower/ and get this error when trying to run grunt or grunt server : Loading "Gruntfile.js" tasks...ERROR Error: Cannot find module 'load-grunt-tasks' Warning: Task "default" not found. Use --force to continue. Here are my versions: yo --version && grunt --version && bower --version 1.1.2< grunt-cli v0.1.13 grunt v0.4.4 1.3.1 See

Howto bootstrap Backbone app with yeoman having require.js enabled

与世无争的帅哥 提交于 2019-12-08 17:40:02
问题 I'm playing with yeoman for a time now. I wonder how I accomplish bootstrapping a Backbone application and having require.js enabled at the same time. yeoman init provides me with a setup where I can work with modules in AMD style. yeoman init backbone:all provides me with a Backbone scaffold but I had to "include" all my models, collection etc. manually in index.html. Is there a way to have both? Regards Felix 回答1: There's already an open issue for this. Add your thoughts there :) 回答2: We

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

Installing Yeoman - “Yo command not found”

亡梦爱人 提交于 2019-12-08 15:29:33
I have installed node.js and set up npm on my Yosemite install using the npm-g_nosudo script. When I then run npm install -g yo I see a bunch of content scroll through my terminal window, with no errors, and it completes. I then type yo and OS X tells me that it can't find the command. Sullys-MacBook-Pro:~ Sully$ npm install -g yo /Users/Sully/npm/bin/yo -> /Users/Sully/npm/lib/node_modules/yo/lib/cli.js > yo@1.4.6 postinstall /Users/Sully/npm/lib/node_modules/yo > yodoctor Yeoman Doctor Running sanity checks on your system ✔ Global configuration file is valid ✔ NODE_PATH matches the npm root

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

Why is the node_modules folder not committed to Git?

泪湿孤枕 提交于 2019-12-08 14:46:33
问题 When I create an AngularJS project with yo angular it creates a node_modules/ directory but puts that directory in .gitignore. When I clone the project elsewhere and run grunt server I get Fatal error: Unable to find local grunt. If you're seeing this message, either a Gruntfile wasn't found or grunt hasn't been installed locally to your project. For more information about installing and configuring grunt, please see the Getting Started guide: The getting started guide doesn't say anything

How to change/set the main view using Yeoman with Angular Fullstack

…衆ロ難τιáo~ 提交于 2019-12-08 13:41:40
I created a project using Yeoman (angular-fullstack). And now I would like to know how the change/set the main view to login.html. So normally when you start the application you first get the main view where you can chose to login or register. What I want is when the application start the page starts direct on the login.html in your app.js file located at client\app\app.js , in the angular config add the following: $stateProvider .run(function ($state) { $state.go('login'); }); So it should look like: .config(function ($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider) {

How to make grunt watch subfolder for handlebars templates (ember.js app with Yeoman)

瘦欲@ 提交于 2019-12-08 13:34:40
问题 When you create an ember app with Yeoman, it create a handlebars templates folder for you (.hbs). The yeoman config is set that way : watch: { ember_templates: { files: '<%= yeoman.app %>/templates/**/*.hbs', tasks: ['ember_templates', 'livereload'] }, When a template is in the folder root, it works When a template is in a subfolder template/mySubfolder the template is not rendered (no html is returned) When a template is missing, ember throw an error So when the template is in a subfolder,