yeoman

'define' is not defined error on RequireJS & Webapp Yo generator

北慕城南 提交于 2019-12-06 14:32:06
问题 I have struggled a few days to figure this out,, but finally I need your help today. my repo: https://github.com/seoyoochan/bitsnut-web what I want to achieve : - Load and optimize r.js - Write bower tasks for RequireJS and r.js : tasks are: minify & uglify & concatenation for RequireJS, and optimise with r.js on production - How to exclude js script tags in index.html when using wiredep tasks and load them through RequireJS loader? I use Yeoman 'Webapp' generator and generated the scaffold

Use Foundation instead of Bootstrap with SASS in a yeoman created application

喜夏-厌秋 提交于 2019-12-06 14:17:59
问题 I've created an AngularJS application with yeoman. Now I want to switch the front-end framework from bootstrap to foundation. After I installed foundation with bower install foundation --save Grunt will add the following line to my index.html file. <link rel="stylesheet" href="bower_components/foundation/css/foundation.css" /> How can I force grunt to use the sass way. For the sass way the index.html is untouched (except js files) but the main.scss file nedds the following line or simliar

How do I change the path for generated files for the generator-angular in yeoman

流过昼夜 提交于 2019-12-06 13:58:55
My question: From the readme on https://github.com/yeoman/generator-angular yo angular:controller user Produces app/scripts/controllers/user.js How do I make it produce app/js/controllers/user.js What I've looked at: I don't think I can configure the path since the source shows that the path is hard codded: Generator.prototype.createControllerFiles = function createControllerFiles() { this.appTemplate('controller', 'scripts/controllers/' + this.name); this.testTemplate('spec/controller', 'controllers/' + this.name); this.addScriptToIndex('controllers/' + this.name); }; https://github.com

Grunt: jit-grunt: Plugin for the “protractor” task not found

谁说我不能喝 提交于 2019-12-06 13:17:21
I am new to yeoman/grunt/bower and I am working on setting up a angularjs project with: yo angular I made some changes to gruntfile myself and recently I found protractor very useful and I wanted to add that to my project. I followed a lot of instructions online (like this one Integrating Protractor with Yeoman via Grunt 2 years ago) but I still cannot get protractor properly installed. Here is my Gruntfile.js : (only showed relevant parts) 'use strict'; module.exports = function (grunt) { // Time how long tasks take. Can help when optimizing build times require('time-grunt')(grunt); //

windows中安装yeoman构建angularJs项目

醉酒当歌 提交于 2019-12-06 12:13:54
yeoman是什么东西我在這里就不介绍了,网上一搜一大把,我们直接进入正题。 一、环境配置 (1). Ruby ,下载地址: http://rubyinstaller.org/downloads/ ‍ 1.1.安装文件直接安装就好了,命令行输入 ruby --version可以看到版本就安装成功,否则请设置环境变量(此不详说) 1.2. 设置gem源为 淘宝的ruby源 , cmd中输入如下内容 gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/$ gem sources -l (2).ruby安装完成之后请安装compass,安装步骤见官方: http://compass-style.org/install/ (3).安装nodejs,官网直接下载安装即可 (4)安装python,此处需要注意的是:1.版本(建议是2.7.3, v3.x.x不支持 );2.配置环境变量 (5)安装node-gyp,安装命令:npm install -g node-gyp (6)安装yoeman,grunt,bower;命令:npm install -g yo grunt-cli bower (7)测试安装情况输入:yo --version & grunt --version & bower -

Grunt keeps removing my absolute paths

拜拜、爱过 提交于 2019-12-06 09:47:53
I have references to some external JS files in my index.html like this: <!-- build:js(app) /scripts/vendor.js --> <!-- bower:js --> <script src="/bower_components/jquery/jquery.js"></script> <script src="/bower_components/angular/angular.js"></script> <script src="/bower_components/jquery-ui/ui/jquery-ui.js"></script> <!-- endbower --> <!-- endbuild --> Every time I run grunt serve ( generator-angular-fullstack ), the initial slashes are removed ( "/bower_components/..." → "bower_components/..." ), which ruins my pages >1 steps down in the hierarchy. Is there a quick fix? From https://github

Template not loading in a Backbone.js app - built using Yeoman

妖精的绣舞 提交于 2019-12-06 09:43:24
问题 I am using an .ejs template in my view. But for some reason the view does not load the given template. It returns undefined. Here's the code: sandplate2.applicationView = Backbone.View.extend({ el: 'div', template: _.template($("appl.ejs").html()), initialize: function(){ console.log("Application view initialize"); _.bindAll(this, "render"); this.render(); }, render: function(){ console.log("Application view rendering"); this.$el.html(this.template()); return this; } }); Do I have to

Errors installing Yo and while using angular generator

守給你的承諾、 提交于 2019-12-06 09:28:20
问题 I am trying to install Yeoman using NPM, but am greeted by the following error: Jaspers-MacBook-Pro:Sites Jasper$ sudo npm install --global yo > fullname-native@0.1.1 install /usr/local/lib/node_modules/yo/node_modules/fullname/node_modules/fullname-native > node-gyp rebuild gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: EPERM, utime '/Users/Jasper/.node-gyp/0.10.29' gyp ERR! System Darwin 13.3.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js

Building Yeoman app breaks CSS background images

China☆狼群 提交于 2019-12-06 07:51:04
问题 I'm trying to migrate an existing project to Yeoman/Grunt/Bower. After changing the paths inside Gruntfile.js I noticed the image paths aren't built correctly: background:transparent url(/Users/lucian/Projects/[PROJECT]/src/main/resources/com/app/public/portal/.tmp/images/bg.header.png) center top no-repeat scroll; After checking everything thoroughly I went back to the Yeoman AngularJS generated project and checked to see if the same thing happens. So I added to main.css : .marketing {

Replacing ng-router with ui-router on the Angular-fullstack

丶灬走出姿态 提交于 2019-12-06 07:48:36
问题 problem 1: url:/home, templateUrl: 'index.html is rendering twice. problem 2: views: templateUrl: 'views/partials/main.html is not being rendered at all What am I missing? How do I properly integrate ui-router into yeoman's angular-fullstack generator? app/scripts/app.js: .config(function($stateProvider, $urlRouterProvider, $locationProvider) { $urlRouterProvider.otherwise('/home'); $stateProvider .state('home', { url: '/home', templateUrl: 'index.html', views: { '': { templateUrl: 'views