-
Notifications
You must be signed in to change notification settings - Fork 199
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
Adds a Polymer 3 application template to init
.
#134
Conversation
…ecked by depcheck.
…er-3.x; add a stub option
* @polymer | ||
*/ | ||
class <%= elementClassName %> extends PolymerElement { | ||
static get is() { return '<%= elementName %>'; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
} | ||
} | ||
|
||
window.customElements.define(<%= elementClassName %>.is, <%= elementClassName %>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<%= elementClassName %>.is
-> '<%= elementName %>'
"name": "<%= name %>", | ||
<% if (description) { -%> "description": "<%= description %>", | ||
<% } -%> | ||
"main": "<%= name %>.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
.toPromise(); | ||
// TODO(#118): Use `polymer install` once it supports installing npm | ||
// packages. | ||
await exec('npm install', {cwd: dir}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(This PR might need to wait on #136 because of this fix: https://github.com/Polymer/tools/pull/136/files#diff-10eed550dca082f37ae2a959b6f87823R29.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, #136 safely rewrites the exec
used here. :) (edit: ..and was merged.)
|
||
// TODO(#130): Add this back in when `polymer lint` has a Polymer 3 | ||
// option. | ||
// await runCommand(binPath, ['lint'], {cwd: dir}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#142 added Polymer 3 linter rules.
@@ -0,0 +1 @@ | |||
bower_components/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-> /node_modules
{ | ||
"npm": true, | ||
"moduleResolution": "node" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add lint rules: #142.
…nd integration test.
@@ -116,4 +116,65 @@ export function createApplicationGenerator(templateName: string): | |||
'Check out your new project README for information about what to do next.\n'); | |||
} | |||
}; | |||
|
|||
class Polymer3ApplicationGenerator extends ApplicationGenerator { | |||
// TODO(yeoman/generator#1065): This is function not a no-op: Yeoman only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, typo:
is function not -> is not
return super.initializing(); | ||
} | ||
|
||
// TODO(yeoman/generator#1065): This is function not a no-op: Yeoman only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
}); | ||
} | ||
|
||
// TODO(yeoman/generator#1065): This is function not a no-op: Yeoman only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
No description provided.