PolymerElements / generator-polymer-init-custom-build

A Polymer CLI generator for creating custom build processes with polymer-build
69 stars 42 forks source link

README instructions don't work #84

Open davidmaxwaterman opened 6 years ago

davidmaxwaterman commented 6 years ago
08:36:33 ~$ mkdir my-app
08:36:38 ~$ cd my-app
08:36:38 ~/my-app$ polymer init polymer-starter-kit-custom-build
info:    Running template polymer-init-polymer-starter-kit-custom-build:app...
error:   Template polymer-init-polymer-starter-kit-custom-build:app not found
error:   cli runtime exception: Error: Template polymer-init-polymer-starter-kit-custom-build:app not found
error:   Error: Template polymer-init-polymer-starter-kit-custom-build:app not found
    at Object.<anonymous> (/home/davidmaxwaterman/.nvm/versions/node/v6.11.4/lib/node_modules/polymer-cli/lib/init/init.js:220:19)
    at next (native)
    at fulfilled (/home/davidmaxwaterman/.nvm/versions/node/v6.11.4/lib/node_modules/polymer-cli/lib/init/init.js:17:58)
    at process._tickCallback (internal/process/next_tick.js:109:7)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:383:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:496:3
08:36:42 ~/my-app$ 

According to the polymer-cli help, it should work if you use the --name parameter, but that also doesn't work:

08:37:54 ~/my-app$ polymer init --name polymer-starter-kit-custom-build
info:    Running template polymer-init-polymer-starter-kit-custom-build:app...
error:   Template polymer-init-polymer-starter-kit-custom-build:app not found
error:   cli runtime exception: Error: Template polymer-init-polymer-starter-kit-custom-build:app not found
error:   Error: Template polymer-init-polymer-starter-kit-custom-build:app not found
    at Object.<anonymous> (/home/davidmaxwaterman/.nvm/versions/node/v6.11.4/lib/node_modules/polymer-cli/lib/init/init.js:220:19)
    at next (native)
    at fulfilled (/home/davidmaxwaterman/.nvm/versions/node/v6.11.4/lib/node_modules/polymer-cli/lib/init/init.js:17:58)
    at process._tickCallback (internal/process/next_tick.js:109:7)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:383:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:496:3

It does seem to work if I just run polymer init and select it from the menu though.

08:38:05 ~/my-app$ polymer --version 1.5.7

abdonrd commented 6 years ago

It's a bit strange.


screen shot 2017-10-19 at 11 15 19
abdonrd commented 6 years ago

@FredKSchott It seems somewhat related to the CLI. You know?

stramel commented 6 years ago

@abdonrd it looks like just a labelling mismatch. The CLI looks for generator-polymer-init- when you pass an argument to polymer init. When it generates the list it is pulling the title from the generator's package.json https://github.com/PolymerElements/generator-polymer-init-custom-build/blob/74f92ffed07d3d4c582805918a55b74e6d21dab2/generators/app/package.json#L2

ghost commented 6 years ago

README instructions don't work