Angular 2 karma setup issue -- Karma starts but doesn't run tests - unit-testing

In brief,
I'm creating a project starting with the Plunker code for the Angular
2 "Routing" example (access through the Angular 2 Advanced Tutorial
for Routing link). That source doesn't have the Karma or Jasmine
configuration baked in.
I've been trying unsatisfactorily to add this to the existing
project. My current setup runs karma but doesn't see any tests, either .js or .ts.
14 01 2017 19:16:44.080:WARN [karma]: No captured browser, open http://localhost:9876/
14 01 2017 19:16:44.112:INFO [karma]: Karma v1.4.0 server started at http://0.0.0.0:9876/
14 01 2017 19:16:44.112:INFO [launcher]: Launching browser Chrome with unlimited concurrency
14 01 2017 19:16:44.268:INFO [launcher]: Starting browser Chrome
14 01 2017 19:16:46.895:INFO [Chrome 55.0.2883 (Windows 10 0.0.0)]: Connected on socket [SNIP]
First I started with the the Angular 2 Advanced Tutorial for Testing link. That says I should create /app/1st.spec.ts:
describe('lst tests', () => {
it('true is true', () => expect(false).toBe(true));
});
I then ran npm test, but found I had no Karma capability. Since then I've installed a variety of packages, based on advice from a programmer's blog. My installations have become:
npm install karma –save-dev
npm install karma-jasmine jasmine-core –save-dev
npm install karma-chrome-launcher –save-dev
npm install karma-cli
npm install angular-mocks
npm install requirejs karma-requirejs
I ran "karma init" and answered questions best I could. My current karma.conf.js is (condensed):
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine', 'requirejs'],
files: [
{pattern: 'app/*.js', included: false},
{pattern: 'app/*.spec.js', included: false},
{pattern: 'app/**/*.js', included: false}
],
exclude: [ ],
preprocessors: { },
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
concurrency: Infinity
})
}
My package.json is:
{
"name": "MyProgram",
"version": "0.1.0",
"license": "MIT",
"description": "MyProgram description",
"scripts": {
"start": "gulp copy-jit && concurrently \"npm run tsc:w\" \"npm run lite\" ",
"lite": "lite-server",
"tsc": "tsc",
"tsc:w": "tsc -w",
"aot": "ngc -p tsconfig-aot.json",
"rollup": "rollup -c rollup-config.js",
"start-aot": "npm run aot && npm run rollup && gulp copy-aot && npm run lite",
"test": "karma start karma.conf.js"
},
"dependencies": {
"#angular/common": "~2.2.4",
"#angular/compiler": "~2.2.4",
"#angular/compiler-cli": "~2.2.4",
"#angular/core": "~2.2.4",
"#angular/forms": "~2.2.4",
"#angular/http": "~2.2.4",
"#angular/platform-browser": "~2.2.4",
"#angular/platform-browser-dynamic": "~2.2.4",
"#angular/platform-server": "^2.2.4",
"#angular/router": "~3.2.4",
"#angular/upgrade": "~2.2.4",
"angular-in-memory-web-api": "~0.1.5",
"core-js": "^2.4.1",
"reflect-metadata": "^0.1.8",
"rxjs": "5.0.0-beta.12",
"systemjs": "0.19.39",
"zone.js": "^0.6.25"
},
"devDependencies": {
"#types/core-js": "^0.9.34",
"#types/jasmine": "^2.5.35",
"#types/node": "^6.0.45",
"#types/selenium-webdriver": "^2.53.32",
"concurrently": "^3.0.0",
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-gzip": "^1.4.0",
"gulp-load-plugins": "^1.3.0",
"gulp-rename": "^1.2.2",
"gulp-task-listing": "^1.0.1",
"gulp-util": "^3.0.7",
"jasmine-core": "^2.5.2",
"karma": "^1.4.0",
"karma-chrome-launcher": "^2.0.0",
"karma-jasmine": "^1.1.0",
"karma-requirejs": "^1.1.0",
"lite-server": "^2.2.2",
"rollup": "^0.36.1",
"rollup-plugin-commonjs": "^5.0.4",
"rollup-plugin-node-resolve": "^2.0.0",
"rollup-plugin-uglify": "^1.0.1",
"typescript": "^2.0.3"
}
}
The things I hope to resolve through your responses are:
A proper Angular 2 project configuration for Karma and Jasmine
testing.
The ability to create Typescript source code tests and have them detected and run in Karma.
Thanks,
Jerome.

I too was trying to go thru the process. I know that if you do ng new using the Angular CLI it will create a project for you with all the Karma stuff setup correctly.
ng test is similar to npm test but seems to spin up far faster too.
The package.json "scripts" section controls the "test" command line option.
I attempted to copy it into the Tour Of Heroes part 6 and managed to successfully do the 1st.spec.ts and get Karma to launch and flip true = true to true = false.
But at the point it said you could load up 1st.spec.ts in Chrome things wouldn't work for me either (Point 5 here).
I documented the way to copy files across here.
You also have the added nuisance that Karma used a version of Node that is behind the times using the LTS release cycle. So it's wise to setup nvm. See here

Related

RN Android Build Issue - Execution failed for task ':app:packageDebug'

My client app is already published on Google Play and it crashes
It maybe a stupid behavior from me , when I noted it works well for IOS,
I quickly deployed it for Android and published it
I tried to run it in my development environment using
sudo react-native run-android
it makes the below error
What's the potential errors ?
I'm using MAC High Sierra
my package.json file
{
"name": "WOFA",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"accordion-collapse-react-native": "^0.1.10",
"is-email": "^1.0.0",
"native-base": "^2.12.1",
"react": "16.8.3",
"react-native": "0.59.9",
"react-native-easy-grid": "^0.2.1",
"react-native-firebase": "~5.5.4",
"react-native-gesture-handler": "^1.3.0",
"react-native-grid-list": "^1.0.9",
"react-native-image-picker": "^1.0.1",
"react-native-image-slider-show": "^1.0.3",
"react-native-modal": "^11.1.0",
"react-native-paypal-lib": "^1.0.9",
"react-native-side-drawer": "^1.1.7",
"react-native-slider": "^0.11.0",
"react-native-snackbar": "^1.0.1",
"react-native-svg": "^9.5.1",
"react-native-touchable-safe": "^1.1.2",
"react-navigation": "^3.11.0"
},
"devDependencies": {
"#babel/core": "^7.5.0",
"#babel/runtime": "^7.5.1",
"babel-jest": "^24.8.0",
"jest": "^24.8.0",
"metro-react-native-babel-preset": "^0.54.1",
"react-test-renderer": "16.8.3"
},
"jest": {
"preset": "react-native"
}
}
the packages which need native linking are : [react-native-firebase , react-native-gesture-handler , react-native-image-picker , react-native-paypal-lib , react-native-svg]
I got similar error on Windows 10.
In my case the culprit was node v.12.
Uninstall node and install LTS version of node.
(Currently node v.10.16.0)
Best Luck. 👍

Illegal Operation on a Directory with Unknown Broccoli Plugin

Output from ember version --verbose && npm --version:
ember-cli: 2.12.1
http_parser: 2.7.0
node: 6.10.2
v8: 5.1.281.98
uv: 1.9.1
zlib: 1.2.11
ares: 1.10.1-DEV
icu: 58.2
modules: 48
openssl: 1.0.2k
os: darwin x64
3.10.10
When I try ember s I have the following error,
Livereload server on http://localhost:49153
Serving on http://localhost:4200/
The Broccoli Plugin: [object Object] failed with:
Error: EISDIR: illegal operation on a directory, read
at Error (native)
at Object.fs.readSync (fs.js:732:19)
at tryReadSync (fs.js:487:20)
at Object.fs.readFileSync (fs.js:535:19)
at /Users/li-xinyang/Desktop/XX_MemoCycle_Firebase/node_modules/broccoli-flatiron/index.js:33:16
at Array.forEach (native)
at readDirectory (/Users/li-xinyang/Desktop/XX_MemoCycle_Firebase/node_modules/broccoli-flatiron/index.js:28:31)
at /Users/li-xinyang/Desktop/XX_MemoCycle_Firebase/node_modules/broccoli-flatiron/index.js:21:15
at tryCatch (/Users/li-xinyang/Desktop/XX_MemoCycle_Firebase/node_modules/rsvp/dist/rsvp.js:539:12)
at invokeCallback (/Users/li-xinyang/Desktop/XX_MemoCycle_Firebase/node_modules/rsvp/dist/rsvp.js:554:13)
The broccoli plugin was instantiated at:
undefined
Below is a list of devDependencies,
package.json File
{
"name": "memo-cycle",
"version": "0.0.0",
"description": "A study tool for serious learner",
"license": "MIT",
"author": "",
"directories": {
"doc": "doc",
"test": "tests"
},
"repository": "",
"scripts": {
"build": "ember build",
"start": "ember server",
"test": "ember test"
},
"devDependencies": {
"broccoli-asset-rev": "^2.4.5",
"ember-ajax": "^2.4.1",
"ember-cli": "2.12.1",
"ember-cli-app-version": "^2.0.0",
"ember-cli-babel": "^5.1.7",
"ember-cli-dependency-checker": "^1.3.0",
"ember-cli-eslint": "^3.0.0",
"ember-cli-gravatar": "^3.8.1",
"ember-cli-htmlbars": "^1.1.1",
"ember-cli-htmlbars-inline-precompile": "^0.3.6",
"ember-cli-inject-live-reload": "^1.4.1",
"ember-cli-qunit": "^3.1.0",
"ember-cli-sass": "^6.1.2",
"ember-cli-shims": "^1.0.2",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^1.2.0",
"ember-export-application-global": "^1.0.5",
"ember-in-viewport": "^2.1.1",
"ember-inline-svg": "^0.1.10",
"ember-load-initializers": "^0.6.0",
"ember-paper": "^1.0.0-alpha.19",
"ember-power-select": "^1.6.1",
"ember-power-select-with-create": "^0.3.1",
"ember-resolver": "^2.0.3",
"ember-route-action-helper": "^2.0.2",
"ember-simple-auth": "^1.2.2",
"ember-source": "~2.12.0",
"loader.js": "^4.2.3"
},
"engines": {
"node": ">= 4"
},
"private": true
}
It was working fine before my last to commit. What I have done in the last two commits are I remove all .DS_Store files in the last commit and added Firebase deploy config files and install cloud function dependencies via Yarn in the last second commit.
What I have tried to resolve the issues, but the issue persists.
1) Delete all node modules via rm -rf node_modules and re-install them npm install (dependencies were installed via Yarn)
2) Remove the project and clone from the origin
3) Revert back to early commit (issue persists even I revert back to the initial commit and re-install all the dependencies of course)
4) Restart Mac 😅
5) Update .ember-cli file and re-run ember init setup process
The issues is caused by
That plugin looks like it was built for an older version of broccoli, but the basic problem seems that its write function doesn't handle symlinks to directories.
See this GitHub issue for more details
https://github.com/ember-cli/ember-cli/issues/6981

Failed to start Ember after upgrade, es5-shim.js not found

I upgraded embercli, emberjs and ember data. After I run ember init. Then when I ember server, I got below stuff. I have tried to redo everything (upgrading). Same result. There is no error. Only a couple warnings when I upgrade embercli. I attached the warning at the end. I am not sure if they are relevant.
[jusfeel#localhost hillwave-ember-js]$ ember serve
version: 2.4.2
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
Livereload server on http://localhost:49152
Serving on http://localhost:4200/
The Broccoli Plugin: [SourceMapConcat: Concat: Vendor /assets/vendor.js] failed with:
Error: ENOENT: no such file or directory, stat '/home/jusfeel/ember/hillwave-ember-js/tmp/source_map_concat-input_base_path-CxIUyeSW.tmp/0/bower_components/es5-shim/es5-shim.js'
at Error (native)
at Object.fs.statSync (fs.js:893:18)
at ConcatWithMaps.keyForFile (/home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-caching-writer/index.js:90:20)
at Array.map (native)
at ConcatWithMaps.CachingWriter._conditionalBuild (/home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-caching-writer/index.js:112:65)
at /home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-caching-writer/node_modules/broccoli-plugin/read_compat.js:61:34
at lib$rsvp$$internal$$tryCatch (/home/jusfeel/ember/hillwave-ember-js/node_modules/rsvp/dist/rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (/home/jusfeel/ember/hillwave-ember-js/node_modules/rsvp/dist/rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (/home/jusfeel/ember/hillwave-ember-js/node_modules/rsvp/dist/rsvp.js:1019:11)
at lib$rsvp$asap$$flush (/home/jusfeel/ember/hillwave-ember-js/node_modules/rsvp/dist/rsvp.js:1198:9)
The broccoli plugin was instantiated at:
at ConcatWithMaps.Plugin (/home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-caching-writer/node_modules/broccoli-plugin/index.js:10:31)
at ConcatWithMaps.CachingWriter [as constructor] (/home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-caching-writer/index.js:21:10)
at new ConcatWithMaps (/home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-concat/concat.js:22:17)
at module.exports (/home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-concat/index.js:26:10)
at EmberApp.concatFiles (/home/jusfeel/ember/hillwave-ember-js/node_modules/ember-cli/lib/broccoli/ember-app.js:329:10)
at EmberApp.javascript (/home/jusfeel/ember/hillwave-ember-js/node_modules/ember-cli/lib/broccoli/ember-app.js:1190:12)
at EmberApp.toArray (/home/jusfeel/ember/hillwave-ember-js/node_modules/ember-cli/lib/broccoli/ember-app.js:1542:10)
at EmberApp.toTree (/home/jusfeel/ember/hillwave-ember-js/node_modules/ember-cli/lib/broccoli/ember-app.js:1564:30)
at module.exports (/home/jusfeel/ember/hillwave-ember-js/ember-cli-build.js:38:14)
at Class.module.exports.Task.extend.setupBroccoliBuilder (/home/jusfeel/ember/hillwave-ember-js/node_modules/ember-cli/lib/models/builder.js:55:19)
My bower.json
{
"name": "hillwave-ember-js",
"dependencies": {
"ember": "2.4.2",
"ember-cli-shims": "0.1.0",
"ember-cli-test-loader": "0.2.2",
"jquery": "~2.1.0",
"bootstrap": "~3.3.6",
"showdown": "~1.3.0",
"fastclick": "^1.0.6"
},
"resolutions": {
"ember": "2.3.1"
},
"devDependencies": {
"blanket": "~1.1.5",
"ember-qunit-notifications": "0.1.0"
}
}
My package.json
{
"name": "hillwave-ember-js",
"version": "0.0.0",
"description": "Small description for hillwave-ember-js goes here",
"private": true,
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"build": "ember build",
"start": "ember server",
"test": "ember test"
},
"repository": "",
"engines": {
"node": ">= 0.10.0"
},
"author": "",
"license": "MIT",
"devDependencies": {
"broccoli-asset-rev": "^2.2.0",
"ember-ajax": "0.7.1",
"ember-cli": "^2.4.2",
"ember-cli-app-version": "^1.0.0",
"ember-cli-babel": "^5.1.5",
"ember-cli-blanket": "0.8.0",
"ember-cli-dependency-checker": "^1.2.0",
"ember-cli-deploy": "0.5.1",
"ember-cli-deploy-build": "0.1.1",
"ember-cli-deploy-display-revisions": "0.1.1",
"ember-cli-deploy-revision-data": "0.1.1",
"ember-cli-deploy-rsync": "0.0.4",
"ember-cli-deploy-ssh-index": "0.2.0",
"ember-cli-document-title": "0.3.0",
"ember-cli-es5-shim": "^0.1.1",
"ember-cli-fastclick": "1.1.0",
"ember-cli-flash": "1.3.8",
"ember-cli-htmlbars": "^1.0.1",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-inject-live-reload": "^1.3.1",
"ember-cli-qunit": "^1.2.1",
"ember-cli-release": "0.2.8",
"ember-cli-showdown": "2.5.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^1.2.0",
"ember-data": "^2.4.0",
"ember-disable-proxy-controllers": "^1.0.1",
"ember-export-application-global": "^1.0.4",
"ember-i18n": "4.2.0",
"ember-infinity": "0.2.1",
"ember-lazy-image": "https://github.com/twokul/ember-lazy-image.git",
"ember-load-initializers": "^0.5.0",
"ember-page-object": "1.1.1",
"ember-resolver": "^2.0.3",
"ember-route-history": "0.1.3",
"ember-simple-auth": "1.0.1",
"ember-suave": "1.2.3",
"emberx-select": "2.0.2",
"fastclick": "1.0.6",
"graceful-fs": "^4.1.3",
"memory-scroll": "0.2.0"
},
"dependencies": {
"fonts.css": "^1.4.0",
"loader.js": "^4.0.0"
}
}
Some warnings when upgrade embercli from 2.2.0 to 2.4.2.
npm WARN deprecated lodash-node#2.4.1: This package has been discontinued in favor of lodash#^4.0.0.
npm WARN deprecated graceful-fs#3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs#^4.0.0 as soon as possible.
npm WARN prefer global marked#0.3.5 should be installed with -g
npm WARN prefer global npm#2.14.21 should be installed with -g
Edit
/*jshint node:true*/
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
// Add options here
minifyCSS: {
enabled: true,
compatibility: '-properties.backgroundSizeMerging'
}
});
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
app.import('bower_components/bootstrap/dist/css/bootstrap.css');
app.import('bower_components/bootstrap/dist/css/bootstrap.css.map',{
destDir: 'assets'
});
app.import('vendor/royal_preloader/royal_preloader.css');
app.import('bower_components/bootstrap/dist/js/bootstrap.js');
app.import('vendor/royal_preloader/royal_preloader.min.js');
app.import('vendor/jquery.qrcode.min.js');
app.import('vendor/royal_preloader/config.js');
return app.toTree();
};
It's a mistake I made. When I do ember init, I didn't pay attention to remove es5-shim from package.json and left it there. That's why this issue caught me.
I guess I should be much much more careful when I do ember init like the release doc actually had warned.
The most common source of upgrade pain is missing changes in this
step.

Testing react and redux with karma and mocha

I've started working with React and Redux and I'd like to write tests for it using Karma with Mocha and PhantomJS2. I'm using the sources here as base: https://github.com/reactjs/redux/tree/master/examples/counter . I basically want to run the tests there in Karma using Phantom instead of using node and the "npm test".
I've set up and installed the required packages for karma:
package.json
"scripts": {
"test:karma": "karma start",
},
"karma": "^0.13.21",
"karma-babel-preprocessor": "^6.0.1",
"karma-mocha": "^0.2.2",
"karma-phantomjs2-launcher": "^0.5.0",
"phantomjs2": "^2.2.0",
And I've tried to figure out how to build my karma.config.js but I don't seem to get my tests to run and this is where I need the help.
karma.config.js
module.exports = function(config) {
process.env.PHANTOMJS_BIN = './node_modules/phantomjs2/lib/phantom/bin';
config.set({
basePath: './',
frameworks: ['mocha'],
plugins: [ 'karma-mocha', 'karma-phantomjs2-launcher', 'karma-babel-preprocessor' ],
files: [
"components/Counter.js",
"test/components/Counter.spec.js"
],
preprocessors: {
"components/Counter.js": ["babel"],
"test/components/Counter.spec.js": ["babel"]
},
babelPreprocessor: {
options: {
"presets": ["es2015", "react"],
}
},
reporters: ['progress'],
browsers: ['PhantomJS2'],
port: 9099,
runnerPort: 9100,
urlRoot: '/',
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
singleRun: false,
concurrency: Infinity
})
}
For react-boilerplate, we have that exact setup – take a look at our karma.conf.js and the PR that implemented Karma and let me know if that helps!

Could not find module `simple-auth-devise/configuration`

I've just been trying to install ember-cli-simple-authand ember-cli-simple-auth-devise.
I went through the exact same process last week and it worked fine. However, since then, Ember CLI has been updated and the install:addon command has been deprecated.
So instead of:
ember install:addon ember-cli-simple-auth
ember install:addon ember-cli-simple-auth-devise
I am using:
ember install ember-cli-simple-auth
ember install ember-cli-simple-auth-devise
However, at the end of each of these commands I get:
The ember generate command requires an entity name to be specified.
For more details, use ember help.
I tried running these commands manually, based upon the "old instructions" found here
ember generate ember-cli-simple-auth
ember generate ember-cli-simple-auth-devise
but then when I start the server I get the following error:
loader.js:110 Uncaught Error: Could not find module simple-auth-devise/configuration imported from bazmics/initializers/simple-auth-devise
and the app refuses to load.
The only way I'm able to get the app working again is to remove:
"ember-cli-simple-auth": "^0.8.0-beta.1",
"ember-cli-simple-auth-devise": "^0.8.0-beta.1",
from my packages.json, run npm install and then restart my server.
Just for good measure, I tried using npm install... rather than ember install... and then running the installers. No errors, but the same end result.
My versions:
DEBUG: -------------------------------
ember.debug.js:5197DEBUG: Ember : 1.11.1
ember.debug.js:5197DEBUG: jQuery : 1.11.2
ember.debug.js:5197DEBUG: -------------------------------
VM11004:66 Ember Inspector Active
Update: 8/4/2015
I've just tried running the following:
npm install --save-dev ember-cli-simple-auth
npm install --save-dev ember-cli-simple-auth-devise
generate ember-cli-simple-auth
generate ember-cli-simple-auth-devise
I don't get any errors, but the same thing is happening when I run ember server (nothing past the page body renders).
After the above commands the contents of my package.json is:
{
"name": "enerlytics",
"version": "0.0.0",
"description": "Small description for enerlytics goes here",
"private": true,
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"start": "ember server",
"build": "ember build",
"test": "ember test"
},
"repository": "",
"engines": {
"node": ">= 0.10.0"
},
"author": "",
"license": "MIT",
"devDependencies": {
"broccoli-asset-rev": "^2.0.2",
"broccoli-sass": "^0.6.4",
"ember-cli": "0.2.3",
"ember-cli-app-version": "0.3.3",
"ember-cli-babel": "^5.0.0",
"ember-cli-bootstrap-sass": "^0.2.11",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "0.0.8",
"ember-cli-htmlbars": "0.7.4",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-qunit": "0.3.10",
"ember-cli-simple-auth": "^0.8.0-beta.1",
"ember-cli-simple-auth-devise": "^0.8.0-beta.1",
"ember-cli-uglify": "1.0.1",
"ember-data": "1.0.0-beta.16.1",
"ember-export-application-global": "^1.0.2"
}
}
The contents of my node_modules folder is:
broccoli-asset-rev
broccoli-sass
ember-cli
ember-cli-app-version
ember-cli-babel
ember-cli-bootstrap-sass
ember-cli-content-security-policy
ember-cli-dependency-checker
ember-cli-htmlbars
ember-cli-ic-ajax
ember-cli-inject-live-reload
ember-cli-qunit
ember-cli-simple-auth
ember-cli-simple-auth-devise
ember-cli-uglify
ember-data
ember-export-application-global
The contents of my bower.json is:
{
"name": "enerlytics",
"dependencies": {
"ember": "1.11.1",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
"ember-data": "1.0.0-beta.16.1",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.4",
"ember-qunit": "0.3.1",
"ember-qunit-notifications": "0.0.7",
"ember-resolver": "~0.1.15",
"jquery": "^1.11.1",
"loader.js": "ember-cli/loader.js#3.2.0",
"qunit": "~1.17.1",
"bootstrap-sass-official": "~3.3.4",
"ember-simple-auth": "0.8.0-beta.1"
}
}
and the contents of my bower_components folder is:
bootstrap-sass-official
ember
ember-cli-shims
ember-cli-test-loader
ember-data
ember-load-initializers
ember-qunit
ember-qunit-notifications
ember-resolver
ember-simple-auth
jquery
loader.js
qunit
qunit-notifications
The error you're seeing ("The ember generate command requires an entity name to be specified. For more details, use ember help.
") is actually irrelevant as it doesn't prevent the actually important tasks from running and will be fixed in the next version of Ember CLI probably.
For now you can safely ignore it.