Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get variants to work #1121

Open
ghost opened this issue Jan 5, 2017 · 2 comments
Open

Can't get variants to work #1121

ghost opened this issue Jan 5, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 5, 2017

I am not having much luck in getting polyserve to work with variants.

I am using polyserve version 0.15.0

I have in my project directory:

bower.json:
{
"name": "my-project",
"dependencies": {
"polymer": "Polymer/polymer#1.7 - 2.x"
},
"variants": {
"polymer-1": {
"dependencies": {
"polymer": "Polymer/polymer#^1.6.0"
}
},
"polymer-2": {
"dependencies": {
"polymer": "Polymer/polymer#2.0-preview"
}
}
},
"private": true
}

bower-polymer-1.json:
{
"name": "my-project",
"dependencies": {
"polymer": "Polymer/polymer#^1.6.0"
},
"variants": {
"polymer-1": {
"dependencies": {
"polymer": "Polymer/polymer#^1.6.0"
}
},
"polymer-2": {
"dependencies": {
"polymer": "Polymer/polymer#2.0-preview"
}
}
},
"private": true
}

bower-polymer-2.json:
{
"name": "my-project",
"dependencies": {
"polymer": "Polymer/polymer#2.0-preview"
},
"variants": {
"polymer-1": {
"dependencies": {
"polymer": "Polymer/polymer#^1.6.0"
}
},
"polymer-2": {
"dependencies": {
"polymer": "Polymer/polymer#2.0-preview"
}
}
},
"private": true
}

and then also the directories and subdirectories:

bower_components
webcomponentsjs
polymer (1)

bower_components-polymer-1
webcomponentsjs
polymer (1)

bower_components-polymer-2
webcomponentsjs
shadydom
shadycss
polymer (2)
custom-elements

When I run polyserve the polyserve console shows my different servers are there, but they all use polymer 1. When I just use one bower.json file and one bower_components directory both with polymer 2 specified, it works fine with polymer 2 without using any variants...but I would like to use the variants feature. Any help would be appreciated. Thanks!

@dhrytsenko
Copy link

Hi! I also have same issue. The problem is in the case that polyserve don't change dependecies folder when you try to go to another variant (bower_components/bower_components-1.x for example). I try many ways but all they does not work.

@aomarks aomarks transferred this issue from Polymer/polyserve Jan 3, 2019
@stale
Copy link

stale bot commented Jun 2, 2021

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.

@stale stale bot added the wontfix label Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants