Cognizant-CDE-Australia / generator-confit

Build-tool generator for current and future web.
https://odecee.github.io/generator-confit
Other
29 stars 3 forks source link

ES6 with AngularJS 2.x and sample application fails due to missing index_template.html #19

Closed timweightman closed 8 years ago

timweightman commented 8 years ago

See below log of configuration selected. I think this is probably a medium-sized issue, as it is probably not as simple as just including an index_template.html file. Likely this issue will require completing a good baseline AngularJS 2.x sample app.

Confit App Generator
? Would you like to rebuild from the existing configuration in confit.json? No
? Choose a build-profile for your project Latest - Webpack-based build profile (23 Dec 2015)
? Use EditorConfig? Yes
Writing "app" using Webpack
Project Path Generator
? Use default/existing paths? Yes
Build CSS Generator
? Supports older browsers (i.e. less than IE10)? No
? Choose a CSS compiler stylus
Build JS Generator
? Source code language ES6
? Target output language ES5
? JavaScript Framework (optional) AngularJS 2.x
? Vendor scripts OR module-names to include (edit in confit.json): (No vendor scripts defined)
Build HTML Generator
? HTML source file extension? .html
Entry Point Generator
? Entry-points for the application (edit in confit.json):
Dev Server Generator
? Server port 3000
? Server hostname localhost
? Server protocol https
Production Server Generator
? Server port 3000
? Server hostname localhost
? Server protocol https
Verify Generator
? JavaScript linting eslint
Sample App Generator
? Create a sample app? Yes
Writing Webpack buildAssets options
Writing Webpack buildCSS options
Writing Webpack buildJS options
Writing Webpack buildHTML options
Writing Webpack build options
Writing Webpack serverDev options
Writing Grunt serverProd options
Writing Webpack unit-test options
Writing Protractor browser-test options
Writing Grunt verify options
Writing Webpack sampleApp options

events.js:141
      throw er; // Unhandled 'error' event
      ^
AssertionError: Trying to copy from a source that does not exist: /Users/timweightman/.nvm/versions/node/v4.2.6/lib/node_modules/generator-confit/lib/../buildTool/webpack/sampleApp/templates/es6ng2/index-template.html
    at EditionInterface.exports._copySingle (/Users/timweightman/.nvm/versions/node/v4.2.6/lib/node_modules/generator-confit/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy.js:45:3)
    at EditionInterface.exports.copy (/Users/timweightman/.nvm/versions/node/v4.2.6/lib/node_modules/generator-confit/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy.js:23:17)
    at write (/Users/timweightman/.nvm/versions/node/v4.2.6/lib/node_modules/generator-confit/buildTool/webpack/sampleApp/sampleApp.js:74:13)
    at module.exports.confitGen.create.writing (/Users/timweightman/.nvm/versions/node/v4.2.6/lib/node_modules/generator-confit/generators/sampleApp/index.js:85:26)
    at Object.<anonymous> (/Users/timweightman/.nvm/versions/node/v4.2.6/lib/node_modules/generator-confit/node_modules/yeoman-generator/lib/base.js:436:25)
    at /Users/timweightman/.nvm/versions/node/v4.2.6/lib/node_modules/generator-confit/node_modules/yeoman-generator/node_modules/run-async/index.js:24:25
    at /Users/timweightman/.nvm/versions/node/v4.2.6/lib/node_modules/generator-confit/node_modules/yeoman-generator/lib/base.js:446:8
    at processImmediate [as _immediateCallback] (timers.js:383:17)
uglow commented 8 years ago

This is due to issue #1 not being complete. When #1 is complete, this can be closed

uglow commented 8 years ago

Closed by https://github.com/odecee/generator-confit/commit/e8375dcf49eb43b0355632276199667aec426558

rickginer commented 8 years ago

This still seems to be a current issue. Angular2 app only works with Typescript and not ES6

uglow commented 8 years ago

Sorry about this. I mistakenly closed this once I had a working NG2 + Typescript configuration. As there currently isn't an NG2 + ES6 sample app implementation, I'll disable this option in the UI for now. If/when there is an NG2 + ES6 sample app, the UI can be re-enabled.

uglow commented 8 years ago

Fixed by displaying a message when a sample project cannot be generated for the selected language and framework.