As the subject line says, latest version of the CLI appears to be missing 1.x projects:
$ polymer --version
1.2.0
$ polymer init
? Which starter template would you like to use? (Use arrow keys)
โฏ polymer-2-element - A simple Polymer 2.0 element template
polymer-2-application - A simple Polymer 2.0 application
polymer-2-starter-kit - A Polymer 2.x starter application template, with navigation and "PRPL patt
ern" loading
shop - The "Shop" Progressive Web App demo
This was done on purpose in CLI 1.2
Is there any way to get them back again? If not, then it's not a huge deal - I just often use that to see how it should be (eg I long ago removed my service worker code since I was forced to use http, but have recently been moved to https [yay!], so wanted to put it all back again). I always have my own git history...
I think we should make either a flag or a separate install of 1.x templates.
Related PR: #782
@justinfagnani Maybe make them generators that can be installed like the custom build?
@stramel exactly. That's what I mean by a separate install
+1 to separate install!
Needed this for work so I went ahead and created a separate generator for it. https://github.com/Hackception/generator-polymer-init-polymer-1-element
@stramel I just started that yesterday. If you don't mind could you hold off so we can publish to npm?
@justinfagnani Okay, if you need help let me know! I will just npm i -g . for now. I unpublished, the name is available.
I use CLI 1.1.0 but don't get the Polymer 1 proposals. Yesterday it worked fine, I haven't updated anything.
@justinfagnani @stramel any chance of the generator getting published to NPM?
@milesje I have one you can use but @justinfagnani wanted to publish under the same name so I left it open for him you can clone and then run npm i -g . from within that directory. Then run polymer init.
https://github.com/Hackception/generator-polymer-init-polymer-1-element
@stramel Any chance you have one for the application template as well?
Can we get these templates on npm any time soon? I've seen others clambering for an easier solution to this problem on the Polymer Slack and elsewhere.
@z2oh I do not have it but I could probably get one out there within the week...
This has come up for me again...any news on one published in npm? I don't see it and it's been a while since....June?
[edit] Ah, I'm after the application template....any news on that @stramel ?
Trying to follow @stramel 's instructions, I get an error regarding ansi-escapes....looks like one needs to run an 'npm install' in the directory itself before the global one. Perhaps it's obvious, but...
It occurs to me that it would very nice if the polymer 1 options were kept/restored. I can imagine that they were removed because polymer engineers thought 'polymer starter kit' is only for people starting new projects, and they wanted people to start new projects with polymer 2. Unfortunately, that isn't the only reason people use PSK. My suggestion would be to keep the options as part of polymer-cli but don't show them in the list of options, meaning that the user has to know about it, and specifically request it in order to get it.
WDYT?
Dang guys I feel bad I never got that application template posted. I will try to get to it today!
UPDATE: I got the repo built out. Let me know if you have any issues with it.
https://github.com/Hackception/generator-polymer-init-polymer-1-application
Ping @justinfagnani
@stramel thanks for posting that. We'd be will to pull that repo into the Polymer org
In the meantime, installing those 1.x templates is possible with:
npm i -g \ github:Hackception/generator-polymer-init-polymer-1-element \ github:Hackception/generator-polymer-init-polymer-1-application
npm i -g justinfagnani/generator-polymer-init-polymer-1-element \
justinfagnani/generator-polymer-init-polymer-1-application
Ahh my bad guys I attempted to do it from my phone then forgot to circle back to it.
@tony19 I had to move these to my personal account in order to transfer them to @justinfagnani since I don't have access to create repositories in the Polymer org :cry:
I have sent the transfer request to @justinfagnani. Should hopefully be transferred by sometime next week!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
Dang guys I feel bad I never got that application template posted. I will try to get to it today!
UPDATE: I got the repo built out. Let me know if you have any issues with it.
https://github.com/Hackception/generator-polymer-init-polymer-1-application