@brightspace-ui/create
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -54,3 +54,3 @@ #!/usr/bin/env node | ||
name: 'codeowners', | ||
message: 'What is/are the github username(s) of the codeowner(s)? (e.g., @janesmith, @johnsmith)' | ||
message: 'What is/are the GitHub username(s) of the codeowner(s)? (e.g., @janesmith, @johnsmith)' | ||
}, { | ||
@@ -85,5 +85,2 @@ type: 'select', | ||
choices: [{ | ||
title: 'Static', | ||
value: 'static' | ||
}, { | ||
title: 'Dynamic (no serge)', | ||
@@ -94,2 +91,5 @@ value: 'dynamic' | ||
value: 'serge' | ||
}, { | ||
title: 'Static', | ||
value: 'static' | ||
}] | ||
@@ -96,0 +96,0 @@ }]; |
@@ -27,2 +27,7 @@ "use strict"; | ||
}\n`; | ||
const dynamicLocalization = `\n\tstatic get localizeConfig() { | ||
return { | ||
importFunc: async lang => (await import(\`./lang/\${lang}.js\`)).default | ||
}; | ||
}\n`; | ||
@@ -39,5 +44,5 @@ function run(templateData) { | ||
} else { | ||
replacements.extends = 'LocalizeElement(LitElement)'; | ||
replacements.localizeMixin = 'import { LocalizeElement } from \'./locales/localize-element.js\';\n'; | ||
replacements.localizeResources = ''; | ||
replacements.extends = 'LocalizeDynamicMixin(LitElement)'; | ||
replacements.localizeMixin = 'import { LocalizeDynamicMixin } from \'@brightspace-ui/core/mixins/localize-dynamic-mixin.js\';\n'; | ||
replacements.localizeResources = dynamicLocalization; | ||
(0, _helper.copyFilesInDir)(`${__dirname}/templates/static`, (0, _helper.getDestinationPath)(templateData.hyphenatedName)); | ||
@@ -44,0 +49,0 @@ } |
{ | ||
"name": "@brightspace-ui/create", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Initializer for Brightspace web components", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/BrightspaceUI/create.git", |
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
58297
58
593