yeoman / generator-polymer

Scaffold out a Polymer project
http://polymer-project.org
926 stars 150 forks source link

'dist/build.html' missing for vulcanize task? #24

Closed hemanth closed 10 years ago

hemanth commented 10 years ago
$ yo polymer:element x
[?] What more would you like? 
[?] Import local elements into this one? (e.g "a.html b.html" or leave blank) 
[?] Import installed Bower elements? (e.g "polymer-ajax" or leave blank) 
   create app/elements/time.html
$ grunt
Running "jshint:all" (jshint) task

✔ No problems

Running "clean:dist" (clean) task

Running "vulcanize:default" (vulcanize) task
Warning: ENOENT, no such file or directory 'dist/build.html' Use --force to continue.
Error: ENOENT, no such file or directory 'dist/build.html'
    at Object.fs.openSync (fs.js:427:18)
    at Object.fs.writeFileSync (fs.js:966:15)
    at Object.handleMainDocument [as processDocument] (/Users/hemanth/labs/x-time/node_modules/grunt-vulcanize/node_modules/vulcanize/lib/vulcan.js:336:6)
    at /Users/hemanth/labs/x/node_modules/grunt-vulcanize/tasks/vulcanize.js:46:19
    at Array.forEach (native)
    at Object.<anonymous> (/Users/hemanth/labs/x-time/node_modules/grunt-vulcanize/tasks/vulcanize.js:29:16)
    at Object.<anonymous> (/Users/hemanth/labs/x-time/node_modules/grunt/lib/grunt/task.js:264:15)
    at Object.thisTask.fn (/Users/hemanth/labs/x-time/node_modules/grunt/lib/grunt/task.js:82:16)
    at Object.<anonymous> (/Users/hemanth/labs/x-time/node_modules/grunt/lib/util/task.js:296:30)
    at Task.runTaskFn (/Users/hemanth/labs/x-time/node_modules/grunt/lib/util/task.js:246:24)

Aborted due to warnings.

After grunt -f the rest of the grunt runs went well.

addyosmani commented 10 years ago

Thanks for reporting the issue. We'll get this fixed. Now's also a good time to update to the latest version of the Vulcanizer tool.

hemanth commented 10 years ago

:+1:

jyasskin commented 10 years ago

Note that mkdir dest will fix this manually.

robdodson commented 10 years ago

This should be fixed in the latest generator. Running grunt will now produce a dist folder with a vulcanized build.html