diff --git a/ui-v2/blueprints/css-component/files/__root__/__path__/__name__.scss b/ui-v2/blueprints/css-component/files/__root__/__path__/__name__.scss new file mode 100644 index 0000000000..fc107ee093 --- /dev/null +++ b/ui-v2/blueprints/css-component/files/__root__/__path__/__name__.scss @@ -0,0 +1,5 @@ +@import './<%= dasherizedModuleName %>/index'; +.<%= dasherizedModuleName %> { + @extend %<%= dasherizedModuleName %>; +} + diff --git a/ui-v2/blueprints/css-component/files/__root__/__path__/__name__/index.scss b/ui-v2/blueprints/css-component/files/__root__/__path__/__name__/index.scss new file mode 100644 index 0000000000..bc18252196 --- /dev/null +++ b/ui-v2/blueprints/css-component/files/__root__/__path__/__name__/index.scss @@ -0,0 +1,2 @@ +@import './skin'; +@import './layout'; diff --git a/ui-v2/blueprints/css-component/files/__root__/__path__/__name__/layout.scss b/ui-v2/blueprints/css-component/files/__root__/__path__/__name__/layout.scss new file mode 100644 index 0000000000..481ab0cddf --- /dev/null +++ b/ui-v2/blueprints/css-component/files/__root__/__path__/__name__/layout.scss @@ -0,0 +1,3 @@ +%<%= dasherizedModuleName %> { + +} diff --git a/ui-v2/blueprints/css-component/files/__root__/__path__/__name__/skin.scss b/ui-v2/blueprints/css-component/files/__root__/__path__/__name__/skin.scss new file mode 100644 index 0000000000..63a5b2cf12 --- /dev/null +++ b/ui-v2/blueprints/css-component/files/__root__/__path__/__name__/skin.scss @@ -0,0 +1,4 @@ +%<%= dasherizedModuleName %> { + +} + diff --git a/ui-v2/blueprints/css-component/index.js b/ui-v2/blueprints/css-component/index.js new file mode 100644 index 0000000000..48a3e79633 --- /dev/null +++ b/ui-v2/blueprints/css-component/index.js @@ -0,0 +1,27 @@ +'use strict'; + +const path = require('path'); +module.exports = { + description: 'Generates a CSS component', + + availableOptions: [], + + root: __dirname, + + fileMapTokens(options) { + return { + __path__() { + return path.join('styles', 'components'); + } + }; + }, + locals(options) { + // Return custom template variables here. + return { + }; + } + + // afterInstall(options) { + // // Perform extra work here. + // } +};