generator-liveblog-theme
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -24,10 +24,17 @@ 'use strict'; | ||
name: 'name', | ||
message: 'Your theme name', | ||
default: this.appname.replace(/\s/g, '-') | ||
message: 'Your theme name ( uniq key used internal )', | ||
default: `${this.appname[0]}${this.appname.substr(1).replace(/([A-Z])/g,'-$1').replace(/\s/g, '-').toLowerCase()}` | ||
}, | ||
{ | ||
type: 'input', | ||
name: 'label', | ||
name: 'description', | ||
message: 'Your theme title', | ||
default: this.appname | ||
}, | ||
{ | ||
type: 'list', | ||
name: 'base', | ||
message: 'Which theme you want to extend', | ||
choices: ['default', 'amp'], | ||
default: 'default' | ||
} | ||
@@ -46,3 +53,3 @@ ]; | ||
this.destinationPath('package.json'), | ||
{ name: this.props.name, label: this.props.label } | ||
this.props | ||
); | ||
@@ -53,3 +60,3 @@ | ||
this.destinationPath('Makefile'), | ||
{ name: this.props.name } | ||
this.props | ||
); | ||
@@ -60,3 +67,3 @@ | ||
this.destinationPath('theme.json'), | ||
{ name: this.props.name, label: this.props.label } | ||
this.props | ||
); | ||
@@ -63,0 +70,0 @@ |
{ | ||
"name": "<%= name %>", | ||
"version": "0.0.1", | ||
"description": "<%= label %>", | ||
"description": "<%= description %>", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "test": "echo \"Error: no test specified\" && exit 1" |
{ | ||
"label": "<%= label %>", | ||
"label": "<%= description %>", | ||
"name": "<%= name %>", | ||
"version": "0.1.0", | ||
"seoTheme": true, | ||
"extend": "default", | ||
"seoTheme": true,<% if (base === 'amp') {%> | ||
"ampTheme": true, | ||
"onlyOwnCss": true,<% } %> | ||
"extends": "<%= base %>", | ||
"license": "AGPL-3.0", | ||
@@ -8,0 +10,0 @@ "devStyles": ["dist/<%= name %>-undefined.css"], |
{ | ||
"name": "generator-liveblog-theme", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Yeoman generator", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6587
99