Open petersandor opened 8 years ago
Looks like this needs to be updated: https://github.com/yeoman/generator-mobile/blob/master/app/index.js#L134 As well as a few tests...
Same issue here.
It looks like updating the file name to gulpfile.babel.js
works as expected, but there's more to the tests it would seem, as a simple string replace of the file name didn't resolve them (including after installing google cloud sdk). If I were better at wading through the test scripts, I would update them and submit the PR; š.
## results of `npm test` after making replacing all occurrences of `gulpfile.js` with new `gulpfile.babel.js` (run on node 6.9.1 LTS) ``` sh Ī» generator-mobile ā Ī» git master* ā npm test > generator-mobile@2.0.0-alpha test /Users/eric/Source Control/Git/generator-mobile > mocha --timeout 5000 mobile:app default layout, no hosting 1) "before all" hook download module ā fetches latest release version and creates downloader ā handles GitHub releases request failure mobile:app - GAE hosting ā gcloud: not configured 2) "before all" hook mobile:app - GitHub hosting project 3) "before all" hook org/user 4) "before all" hook custom domain for a user/org 5) "before all" hook as a repo 6) "before all" hook prompts module ā extracts domain from url ā recognizes GitHub domain githubTarget ā validates input ā filters input ā knows when to ask the question ā infers default value from github.io siteUrl populateMissing ā infers githubTarget from siteUrl ā infers siteUrl from githubTarget ā infers siteHost from siteUrl ā infers githubBranch 12 passing (2s) 6 failing 1) mobile:app default layout, no hosting "before all" hook: Uncaught Error: ENOENT: no such file or directory, open '/Users/eric/Source Control/Git/generator-mobile/test/tmp/gulpfile.babel.js' at Error (native) at Object.fs.openSync (fs.js:640:18) at Object.fs.readFileSync (fs.js:508:33) at constructor.readFileAsString (node_modules/yeoman-generator/lib/actions/wiring.js:277:13) at constructor.gulpfile (app/index.js:135:27) at node_modules/yeoman-generator/lib/base.js:395:14 2) mobile:app - GAE hosting "before all" hook: Uncaught Error: ENOENT: no such file or directory, open '/Users/eric/Source Control/Git/generator-mobile/test/tmp/gulpfile.babel.js' at Error (native) at Object.fs.openSync (fs.js:640:18) at Object.fs.readFileSync (fs.js:508:33) at constructor.readFileAsString (node_modules/yeoman-generator/lib/actions/wiring.js:277:13) at constructor.gulpfile (app/index.js:135:27) at node_modules/yeoman-generator/lib/base.js:395:14 3) mobile:app - GitHub hosting project "before all" hook: Uncaught Error: ENOENT: no such file or directory, open '/Users/eric/Source Control/Git/generator-mobile/test/tmp/gulpfile.babel.js' at Error (native) at Object.fs.openSync (fs.js:640:18) at Object.fs.readFileSync (fs.js:508:33) at constructor.readFileAsString (node_modules/yeoman-generator/lib/actions/wiring.js:277:13) at constructor.gulpfile (app/index.js:135:27) at node_modules/yeoman-generator/lib/base.js:395:14 4) mobile:app - GitHub hosting org/user "before all" hook: Uncaught Error: ENOENT: no such file or directory, open '/Users/eric/Source Control/Git/generator-mobile/test/tmp/gulpfile.babel.js' at Error (native) at Object.fs.openSync (fs.js:640:18) at Object.fs.readFileSync (fs.js:508:33) at constructor.readFileAsString (node_modules/yeoman-generator/lib/actions/wiring.js:277:13) at constructor.gulpfile (app/index.js:135:27) at node_modules/yeoman-generator/lib/base.js:395:14 5) mobile:app - GitHub hosting custom domain for a user/org "before all" hook: Uncaught Error: ENOENT: no such file or directory, open '/Users/eric/Source Control/Git/generator-mobile/test/tmp/gulpfile.babel.js' at Error (native) at Object.fs.openSync (fs.js:640:18) at Object.fs.readFileSync (fs.js:508:33) at constructor.readFileAsString (node_modules/yeoman-generator/lib/actions/wiring.js:277:13) at constructor.gulpfile (app/index.js:135:27) at node_modules/yeoman-generator/lib/base.js:395:14 6) mobile:app - GitHub hosting custom domain as a repo "before all" hook: Uncaught Error: ENOENT: no such file or directory, open '/Users/eric/Source Control/Git/generator-mobile/test/tmp/gulpfile.babel.js' at Error (native) at Object.fs.openSync (fs.js:640:18) at Object.fs.readFileSync (fs.js:508:33) at constructor.readFileAsString (node_modules/yeoman-generator/lib/actions/wiring.js:277:13) at constructor.gulpfile (app/index.js:135:27) at node_modules/yeoman-generator/lib/base.js:395:14 npm ERR! Test failed. See above for more details. ```
The same
rename the gulpfile.bable.js to gulpfile.js , and run again yo mobile
Hi, I just tried this generator and I found this:
I noticed that there is a
gulpfile.babel.js
in the directory so I guess that is a change in WSK that was not reflected here.