How to use getModule method in storybook-root

Best JavaScript code snippet using storybook-root

generateCssFrameworkBootstrap.js

Source:generateCssFrameworkBootstrap.js Github

copy

Full Screen

2import { getModule, replaceCodeMemory } from '../utils';3export default async function generateCssFrameworkBootstrap(params) {4 switch (params.cssPreprocessor) {5 case 'css':6 set(params.build, ['public', 'css', 'main.css'], await getModule('css-framework/bootstrap/main.css'));7 if (params.cssPreprocessorOptions.includes('minifiedCss')) {8 set(params.build, ['public', 'css', 'vendor', 'bootstrap.min.css'], await getModule('css-framework/bootstrap/css/bootstrap.min.css'));9 } else {10 set(params.build, ['public', 'css', 'vendor', 'bootstrap.css'], await getModule('css-framework/bootstrap/css/bootstrap.css'));11 }12 break;13 case 'less':14 set(params.build, ['public', 'css', 'main.less'], await getModule('css-framework/bootstrap/main.less'));15 params.build.public.css.vendor = {16 bootstrap: {17 mixins: {18 'alerts.less': await getModule('css-framework/bootstrap/less/mixins/alerts.less'),19 'background-variant.less': await getModule('css-framework/bootstrap/less/mixins/background-variant.less'),20 'border-radius.less': await getModule('css-framework/bootstrap/less/mixins/border-radius.less'),21 'buttons.less': await getModule('css-framework/bootstrap/less/mixins/buttons.less'),22 'center-block.less': await getModule('css-framework/bootstrap/less/mixins/center-block.less'),23 'clearfix.less': await getModule('css-framework/bootstrap/less/mixins/clearfix.less'),24 'forms.less': await getModule('css-framework/bootstrap/less/mixins/forms.less'),25 'gradients.less': await getModule('css-framework/bootstrap/less/mixins/gradients.less'),26 'grid.less': await getModule('css-framework/bootstrap/less/mixins/grid.less'),27 'grid-framework.less': await getModule('css-framework/bootstrap/less/mixins/grid-framework.less'),28 'hide-text.less': await getModule('css-framework/bootstrap/less/mixins/hide-text.less'),29 'image.less': await getModule('css-framework/bootstrap/less/mixins/image.less'),30 'labels.less': await getModule('css-framework/bootstrap/less/mixins/labels.less'),31 'list-group.less': await getModule('css-framework/bootstrap/less/mixins/list-group.less'),32 'nav-divider.less': await getModule('css-framework/bootstrap/less/mixins/nav-divider.less'),33 'nav-vertical-align.less': await getModule('css-framework/bootstrap/less/mixins/nav-vertical-align.less'),34 'opacity.less': await getModule('css-framework/bootstrap/less/mixins/opacity.less'),35 'pagination.less': await getModule('css-framework/bootstrap/less/mixins/pagination.less'),36 'panels.less': await getModule('css-framework/bootstrap/less/mixins/panels.less'),37 'progress-bar.less': await getModule('css-framework/bootstrap/less/mixins/progress-bar.less'),38 'reset-filter.less': await getModule('css-framework/bootstrap/less/mixins/reset-filter.less'),39 'reset-text.less': await getModule('css-framework/bootstrap/less/mixins/reset-text.less'),40 'resize.less': await getModule('css-framework/bootstrap/less/mixins/resize.less'),41 'responsive-visibility.less': await getModule('css-framework/bootstrap/less/mixins/responsive-visibility.less'),42 'size.less': await getModule('css-framework/bootstrap/less/mixins/size.less'),43 'tab-focus.less': await getModule('css-framework/bootstrap/less/mixins/tab-focus.less'),44 'table-row.less': await getModule('css-framework/bootstrap/less/mixins/table-row.less'),45 'text-emphasis.less': await getModule('css-framework/bootstrap/less/mixins/text-emphasis.less'),46 'text-overflow.less': await getModule('css-framework/bootstrap/less/mixins/text-overflow.less'),47 'vendor-prefixes.less': await getModule('css-framework/bootstrap/less/mixins/vendor-prefixes.less')48 },49 'alerts.less': await getModule('css-framework/bootstrap/less/alerts.less'),50 'badges.less': await getModule('css-framework/bootstrap/less/badges.less'),51 'bootstrap.less': await getModule('css-framework/bootstrap/less/bootstrap.less'),52 'breadcrumbs.less': await getModule('css-framework/bootstrap/less/breadcrumbs.less'),53 'button-groups.less': await getModule('css-framework/bootstrap/less/button-groups.less'),54 'buttons.less': await getModule('css-framework/bootstrap/less/buttons.less'),55 'carousel.less': await getModule('css-framework/bootstrap/less/carousel.less'),56 'close.less': await getModule('css-framework/bootstrap/less/close.less'),57 'code.less': await getModule('css-framework/bootstrap/less/code.less'),58 'component-animations.less': await getModule('css-framework/bootstrap/less/component-animations.less'),59 'dropdowns.less': await getModule('css-framework/bootstrap/less/dropdowns.less'),60 'forms.less': await getModule('css-framework/bootstrap/less/forms.less'),61 'glyphicons.less': await getModule('css-framework/bootstrap/less/glyphicons.less'),62 'grid.less': await getModule('css-framework/bootstrap/less/grid.less'),63 'input-groups.less': await getModule('css-framework/bootstrap/less/input-groups.less'),64 'jumbotron.less': await getModule('css-framework/bootstrap/less/jumbotron.less'),65 'labels.less': await getModule('css-framework/bootstrap/less/labels.less'),66 'list-group.less': await getModule('css-framework/bootstrap/less/list-group.less'),67 'media.less': await getModule('css-framework/bootstrap/less/media.less'),68 'mixins.less': await getModule('css-framework/bootstrap/less/mixins.less'),69 'modals.less': await getModule('css-framework/bootstrap/less/modals.less'),70 'navbar.less': await getModule('css-framework/bootstrap/less/navbar.less'),71 'navs.less': await getModule('css-framework/bootstrap/less/navs.less'),72 'normalize.less': await getModule('css-framework/bootstrap/less/normalize.less'),73 'pager.less': await getModule('css-framework/bootstrap/less/pager.less'),74 'pagination.less': await getModule('css-framework/bootstrap/less/pagination.less'),75 'panels.less': await getModule('css-framework/bootstrap/less/panels.less'),76 'popovers.less': await getModule('css-framework/bootstrap/less/popovers.less'),77 'print.less': await getModule('css-framework/bootstrap/less/print.less'),78 'progress-bars.less': await getModule('css-framework/bootstrap/less/progress-bars.less'),79 'responsive-embed.less': await getModule('css-framework/bootstrap/less/responsive-embed.less'),80 'responsive-utilities.less': await getModule('css-framework/bootstrap/less/responsive-utilities.less'),81 'scaffolding.less': await getModule('css-framework/bootstrap/less/scaffolding.less'),82 'tables.less': await getModule('css-framework/bootstrap/less/tables.less'),83 'theme.less': await getModule('css-framework/bootstrap/less/theme.less'),84 'thumbnails.less': await getModule('css-framework/bootstrap/less/thumbnails.less'),85 'tooltip.less': await getModule('css-framework/bootstrap/less/tooltip.less'),86 'type.less': await getModule('css-framework/bootstrap/less/type.less'),87 'utilities.less': await getModule('css-framework/bootstrap/less/utilities.less'),88 'variables.less': await getModule('css-framework/bootstrap/less/variables.less'),89 'wells.less': await getModule('css-framework/bootstrap/less/wells.less')90 }91 };92 break;93 case 'sass':94 set(params.build, ['public', 'css', 'main.scss'], await getModule('css-framework/bootstrap/main.scss'));95 set(params.build, ['public', 'css', 'vendor', '_bootstrap.scss'], await getModule('css-framework/bootstrap/sass/_bootstrap.scss'));96 params.build.public.css.vendor.bootstrap = {97 mixins: {98 '_alerts.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_alerts.scss'),99 '_background-variant.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_background-variant.scss'),100 '_border-radius.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_border-radius.scss'),101 '_buttons.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_buttons.scss'),102 '_center-block.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_center-block.scss'),103 '_clearfix.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_clearfix.scss'),104 '_forms.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_forms.scss'),105 '_gradients.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_gradients.scss'),106 '_grid.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_grid.scss'),107 '_grid-framework.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_grid-framework.scss'),108 '_hide-text.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_hide-text.scss'),109 '_image.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_image.scss'),110 '_labels.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_labels.scss'),111 '_list-group.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_list-group.scss'),112 '_nav-divider.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_nav-divider.scss'),113 '_nav-vertical-align.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_nav-vertical-align.scss'),114 '_opacity.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_opacity.scss'),115 '_pagination.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_pagination.scss'),116 '_panels.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_panels.scss'),117 '_progress-bar.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_progress-bar.scss'),118 '_reset-filter.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_reset-filter.scss'),119 '_reset-text.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_reset-text.scss'),120 '_resize.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_resize.scss'),121 '_responsive-visibility.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_responsive-visibility.scss'),122 '_size.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_size.scss'),123 '_tab-focus.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_tab-focus.scss'),124 '_table-row.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_table-row.scss'),125 '_text-emphasis.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_text-emphasis.scss'),126 '_text-overflow.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_text-overflow.scss'),127 '_vendor-prefixes.scss': await getModule('css-framework/bootstrap/sass/bootstrap/mixins/_vendor-prefixes.scss')128 },129 '_alerts.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_alerts.scss'),130 '_badges.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_badges.scss'),131 '_breadcrumbs.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_breadcrumbs.scss'),132 '_button-groups.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_button-groups.scss'),133 '_buttons.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_buttons.scss'),134 '_carousel.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_carousel.scss'),135 '_close.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_close.scss'),136 '_code.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_code.scss'),137 '_component-animations.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_component-animations.scss'),138 '_dropdowns.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_dropdowns.scss'),139 '_forms.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_forms.scss'),140 '_glyphicons.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_glyphicons.scss'),141 '_grid.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_grid.scss'),142 '_input-groups.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_input-groups.scss'),143 '_jumbotron.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_jumbotron.scss'),144 '_labels.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_labels.scss'),145 '_list-group.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_list-group.scss'),146 '_media.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_media.scss'),147 '_mixins.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_mixins.scss'),148 '_modals.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_modals.scss'),149 '_navbar.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_navbar.scss'),150 '_navs.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_navs.scss'),151 '_normalize.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_normalize.scss'),152 '_pager.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_pager.scss'),153 '_pagination.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_pagination.scss'),154 '_panels.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_panels.scss'),155 '_popovers.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_popovers.scss'),156 '_print.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_print.scss'),157 '_progress-bars.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_progress-bars.scss'),158 '_responsive-embed.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_responsive-embed.scss'),159 '_responsive-utilities.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_responsive-utilities.scss'),160 '_scaffolding.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_scaffolding.scss'),161 '_tables.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_tables.scss'),162 '_theme.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_theme.scss'),163 '_thumbnails.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_thumbnails.scss'),164 '_tooltip.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_tooltip.scss'),165 '_type.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_type.scss'),166 '_utilities.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_utilities.scss'),167 '_variables.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_variables.scss'),168 '_wells.scss': await getModule('css-framework/bootstrap/sass/bootstrap/_wells.scss')169 };170 break;171 default:172 break;173 }174 if (params.cssPreprocessorOptions.includes('minifiedJs')) {175 set(params.build, ['public', 'js', 'lib', 'bootstrap.min.js'], await getModule('css-framework/bootstrap/js/bootstrap.min.js'));176 set(params.build, ['public', 'js', 'lib', 'jquery.min.js'], await getModule('css-framework/jquery/jquery.min.js'));177 } else {178 set(params.build, ['public', 'js', 'lib', 'bootstrap.js'], await getModule('css-framework/bootstrap/js/bootstrap.js'));179 set(params.build, ['public', 'js', 'lib', 'jquery.js'], await getModule('css-framework/jquery/jquery.js'));180 }181 set(params.build, ['public', 'fonts', 'glyphicons-halflings-regular.eot'], await getModule('css-framework/bootstrap/fonts//glyphicons-halflings-regular.eot'));182 set(params.build, ['public', 'fonts', 'glyphicons-halflings-regular.svg'], await getModule('css-framework/bootstrap/fonts//glyphicons-halflings-regular.svg'));183 set(params.build, ['public', 'fonts', 'glyphicons-halflings-regular.ttf'], await getModule('css-framework/bootstrap/fonts//glyphicons-halflings-regular.ttf'));184 set(params.build, ['public', 'fonts', 'glyphicons-halflings-regular.woff'], await getModule('css-framework/bootstrap/fonts//glyphicons-halflings-regular.woff'));185 set(params.build, ['public', 'fonts', 'glyphicons-halflings-regular.woff2'], await getModule('css-framework/bootstrap/fonts//glyphicons-halflings-regular.woff2'));186 const htmlJsImport = params.cssPreprocessorOptions.includes('minifiedCss') ?187 await getModule('css-framework/bootstrap/html-js-min-import.html') :188 await getModule('css-framework/bootstrap/html-js-import.html');189 const htmlCssImport = params.cssPreprocessorOptions.includes('minifiedCss') ?190 await getModule('css-framework/bootstrap/html-css-min-import.html') :191 await getModule('css-framework/bootstrap/html-css-import.html');192 const jadeJsImport = params.cssPreprocessorOptions.includes('minifiedCss') ?193 await getModule('css-framework/bootstrap/jade-js-min-import.jade') :194 await getModule('css-framework/bootstrap/jade-js-import.jade');195 const jadeCssImport = params.cssPreprocessorOptions.includes('minifiedCss') ?196 await getModule('css-framework/bootstrap/jade-css-min-import.jade') :197 await getModule('css-framework/bootstrap/jade-css-import.jade');198 if (params.jsFramework === 'angularjs') {199 await replaceCodeMemory(params, 'app/index.html', 'JS_FRAMEWORK_LIB_IMPORT', htmlJsImport, { indentLevel: 1 });200 if (params.cssPreprocessor === 'css') {201 await replaceCodeMemory(params, 'app/index.html', 'CSS_FRAMEWORK_IMPORT', htmlCssImport, { indentLevel: 1 });202 }203 } else {204 switch (params.templateEngine) {205 case 'jade':206 await replaceCodeMemory(params, 'views/layout.jade', 'JS_FRAMEWORK_LIB_IMPORT', jadeJsImport, { indentLevel: 2 });207 if (params.cssPreprocessor === 'css') {208 await replaceCodeMemory(params, 'views/layout.jade', 'CSS_FRAMEWORK_IMPORT', jadeCssImport, { indentLevel: 2 });209 }210 break;211 case 'handlebars':...

Full Screen

Full Screen

generateCssFrameworkFoundation.js

Source:generateCssFrameworkFoundation.js Github

copy

Full Screen

2import { getModule, replaceCodeMemory } from '../utils';3export default async function generateCssFrameworkFoundation(params) {4 switch (params.cssPreprocessor) {5 case 'css':6 set(params.build, ['public', 'css', 'main.css'], await getModule('css-framework/foundation/main.css'));7 if (params.cssPreprocessorOptions.includes('minifiedCss')) {8 set(params.build, ['public', 'css', 'vendor', 'foundation.min.css'], await getModule('css-framework/foundation/css/foundation.min.css'));9 } else {10 set(params.build, ['public', 'css', 'vendor', 'foundation.css'], await getModule('css-framework/foundation/css/foundation.css'));11 }12 break;13 case 'sass':14 set(params.build, ['public', 'css', 'main.scss'], await getModule('css-framework/foundation/main.scss'));15 set(params.build, ['public', 'css', '_settings.scss'], await getModule('css-framework/foundation/_settings.scss'));16 params.build.public.css.vendor = {17 foundation: {18 components: {19 '_accordion.scss': await getModule('css-framework/foundation/scss/components/_accordion.scss'),20 '_accordion-menu.scss': await getModule('css-framework/foundation/scss/components/_accordion-menu.scss'),21 '_badge.scss': await getModule('css-framework/foundation/scss/components/_badge.scss'),22 '_breadcrumbs.scss': await getModule('css-framework/foundation/scss/components/_breadcrumbs.scss'),23 '_button.scss': await getModule('css-framework/foundation/scss/components/_button.scss'),24 '_button-group.scss': await getModule('css-framework/foundation/scss/components/_button-group.scss'),25 '_callout.scss': await getModule('css-framework/foundation/scss/components/_callout.scss'),26 '_close-button.scss': await getModule('css-framework/foundation/scss/components/_close-button.scss'),27 '_drilldown.scss': await getModule('css-framework/foundation/scss/components/_drilldown.scss'),28 '_dropdown.scss': await getModule('css-framework/foundation/scss/components/_dropdown.scss'),29 '_dropdown-menu.scss': await getModule('css-framework/foundation/scss/components/_dropdown-menu.scss'),30 '_flex.scss': await getModule('css-framework/foundation/scss/components/_flex.scss'),31 '_flex-video.scss': await getModule('css-framework/foundation/scss/components/_flex-video.scss'),32 '_float.scss': await getModule('css-framework/foundation/scss/components/_float.scss'),33 '_label.scss': await getModule('css-framework/foundation/scss/components/_label.scss'),34 '_media-object.scss': await getModule('css-framework/foundation/scss/components/_media-object.scss'),35 '_menu.scss': await getModule('css-framework/foundation/scss/components/_menu.scss'),36 '_menu-icon.scss': await getModule('css-framework/foundation/scss/components/_menu-icon.scss'),37 '_off-canvas.scss': await getModule('css-framework/foundation/scss/components/_off-canvas.scss'),38 '_orbit.scss': await getModule('css-framework/foundation/scss/components/_orbit.scss'),39 '_pagination.scss': await getModule('css-framework/foundation/scss/components/_pagination.scss'),40 '_progress-bar.scss': await getModule('css-framework/foundation/scss/components/_progress-bar.scss'),41 '_reveal.scss': await getModule('css-framework/foundation/scss/components/_reveal.scss'),42 '_slider.scss': await getModule('css-framework/foundation/scss/components/_slider.scss'),43 '_sticky.scss': await getModule('css-framework/foundation/scss/components/_sticky.scss'),44 '_switch.scss': await getModule('css-framework/foundation/scss/components/_switch.scss'),45 '_table.scss': await getModule('css-framework/foundation/scss/components/_table.scss'),46 '_tabs.scss': await getModule('css-framework/foundation/scss/components/_tabs.scss'),47 '_thumbnail.scss': await getModule('css-framework/foundation/scss/components/_thumbnail.scss'),48 '_title-bar.scss': await getModule('css-framework/foundation/scss/components/_title-bar.scss'),49 '_tooltip.scss': await getModule('css-framework/foundation/scss/components/_tooltip.scss'),50 '_top-bar.scss': await getModule('css-framework/foundation/scss/components/_top-bar.scss'),51 '_visibility.scss': await getModule('css-framework/foundation/scss/components/_visibility.scss')52 },53 forms: {54 '_checkbox.scss': await getModule('css-framework/foundation/scss/forms/_checkbox.scss'),55 '_error.scss': await getModule('css-framework/foundation/scss/forms/_error.scss'),56 '_fieldset.scss': await getModule('css-framework/foundation/scss/forms/_fieldset.scss'),57 '_forms.scss': await getModule('css-framework/foundation/scss/forms/_forms.scss'),58 '_help-text.scss': await getModule('css-framework/foundation/scss/forms/_help-text.scss'),59 '_input-group.scss': await getModule('css-framework/foundation/scss/forms/_input-group.scss'),60 '_label.scss': await getModule('css-framework/foundation/scss/forms/_label.scss'),61 '_meter.scss': await getModule('css-framework/foundation/scss/forms/_meter.scss'),62 '_progress.scss': await getModule('css-framework/foundation/scss/forms/_progress.scss'),63 '_range.scss': await getModule('css-framework/foundation/scss/forms/_range.scss'),64 '_select.scss': await getModule('css-framework/foundation/scss/forms/_select.scss'),65 '_text.scss': await getModule('css-framework/foundation/scss/forms/_text.scss')66 },67 grid: {68 '_classes.scss': await getModule('css-framework/foundation/scss/grid/_classes.scss'),69 '_column.scss': await getModule('css-framework/foundation/scss/grid/_column.scss'),70 '_flex-grid.scss': await getModule('css-framework/foundation/scss/grid/_flex-grid.scss'),71 '_grid.scss': await getModule('css-framework/foundation/scss/grid/_grid.scss'),72 '_gutter.scss': await getModule('css-framework/foundation/scss/grid/_gutter.scss'),73 '_layout.scss': await getModule('css-framework/foundation/scss/grid/_layout.scss'),74 '_position.scss': await getModule('css-framework/foundation/scss/grid/_position.scss'),75 '_row.scss': await getModule('css-framework/foundation/scss/grid/_row.scss'),76 '_size.scss': await getModule('css-framework/foundation/scss/grid/_size.scss')77 },78 settings: {79 '_settings.scss': await getModule('css-framework/foundation/scss/settings/_settings.scss')80 },81 typography: {82 '_alignment.scss': await getModule('css-framework/foundation/scss/typography/_alignment.scss'),83 '_base.scss': await getModule('css-framework/foundation/scss/typography/_base.scss'),84 '_helpers.scss': await getModule('css-framework/foundation/scss/typography/_helpers.scss'),85 '_print.scss': await getModule('css-framework/foundation/scss/typography/_print.scss'),86 '_typography.scss': await getModule('css-framework/foundation/scss/typography/_typography.scss')87 },88 util: {89 '_breakpoint.scss': await getModule('css-framework/foundation/scss/util/_breakpoint.scss'),90 '_color.scss': await getModule('css-framework/foundation/scss/util/_color.scss'),91 '_flex.scss': await getModule('css-framework/foundation/scss/util/_flex.scss'),92 '_mixins.scss': await getModule('css-framework/foundation/scss/util/_mixins.scss'),93 '_selector.scss': await getModule('css-framework/foundation/scss/util/_selector.scss'),94 '_unit.scss': await getModule('css-framework/foundation/scss/util/_unit.scss'),95 '_util.scss': await getModule('css-framework/foundation/scss/util/_util.scss'),96 '_value.scss': await getModule('css-framework/foundation/scss/util/_value.scss')97 },98 '_global.scss': await getModule('css-framework/foundation/scss/_global.scss'),99 'foundation.scss': await getModule('css-framework/foundation/scss/foundation.scss')100 }101 };102 break;103 default:104 break;105 }106 if (params.cssPreprocessorOptions.includes('minifiedJs')) {107 set(params.build, ['public', 'js', 'lib', 'foundation.min.js'], await getModule('css-framework/foundation/js/foundation.min.js'));108 set(params.build, ['public', 'js', 'lib', 'jquery.min.js'], await getModule('css-framework/jquery/jquery.min.js'));109 } else {110 set(params.build, ['public', 'js', 'lib', 'foundation.js'], await getModule('css-framework/foundation/js/foundation.js'));111 set(params.build, ['public', 'js', 'lib', 'jquery.js'], await getModule('css-framework/jquery/jquery.js'));112 }113 const htmlJsImport = params.cssPreprocessorOptions.includes('minifiedCss') ?114 await getModule('css-framework/foundation/html-js-min-import.html') :115 await getModule('css-framework/foundation/html-js-import.html');116 const htmlCssImport = params.cssPreprocessorOptions.includes('minifiedCss') ?117 await getModule('css-framework/foundation/html-css-min-import.html') :118 await getModule('css-framework/foundation/html-css-import.html');119 const jadeJsImport = params.cssPreprocessorOptions.includes('minifiedCss') ?120 await getModule('css-framework/foundation/jade-js-min-import.jade') :121 await getModule('css-framework/foundation/jade-js-import.jade');122 const jadeCssImport = params.cssPreprocessorOptions.includes('minifiedCss') ?123 await getModule('css-framework/foundation/jade-css-min-import.jade') :124 await getModule('css-framework/foundation/jade-css-import.jade');125 if (params.jsFramework === 'angularjs') {126 await replaceCodeMemory(params, 'app/index.html', 'JS_FRAMEWORK_LIB_IMPORT', htmlJsImport, { indentLevel: 1 });127 if (params.cssPreprocessor === 'css') {128 await replaceCodeMemory(params, 'app/index.html', 'CSS_FRAMEWORK_IMPORT', htmlCssImport, { indentLevel: 1 });129 }130 } else {131 switch (params.templateEngine) {132 case 'jade':133 await replaceCodeMemory(params, 'views/layout.jade', 'JS_FRAMEWORK_LIB_IMPORT', jadeJsImport, { indentLevel: 2 });134 if (params.cssPreprocessor === 'css') {135 await replaceCodeMemory(params, 'views/layout.jade', 'CSS_FRAMEWORK_IMPORT', jadeCssImport, { indentLevel: 2 });136 }137 break;138 case 'handlebars':...

Full Screen

Full Screen

generateElectron.js

Source:generateElectron.js Github

copy

Full Screen

...3async function generateElectron(params) {4 params.build = {5 app: {6 actions: {7 'counter.js': await getModule('electron/app/actions/counter.js')8 },9 components: {10 'Counter.css': await getModule('electron/app/components/Counter.css'),11 'Counter.js': await getModule('electron/app/components/Counter.js'),12 'Home.css': await getModule('electron/app/components/Home.css'),13 'Home.js': await getModule('electron/app/components/Home.js')14 },15 containers: {16 'App.js': await getModule('electron/app/containers/App.js'),17 'CounterPage.js': await getModule('electron/app/containers/CounterPage.js'),18 'DevTools.js': await getModule('electron/app/containers/DevTools.js'),19 'HomePage.js': await getModule('electron/app/containers/HomePage.js')20 },21 images: {22 'img.png': await getModule('electron/app/images/img.png'),23 'password.svg': await getModule('electron/app/images/password.svg'),24 'username.svg': await getModule('electron/app/images/username.svg')25 },26 reducers: {27 'counter.js': await getModule('electron/app/reducers/counter.js'),28 'index.js': await getModule('electron/app/reducers/index.js')29 },30 store: {31 'configureStore.development.js': await getModule('electron/app/store/configureStore.development.js'),32 'configureStore.js': await getModule('electron/app/store/configureStore.js'),33 'configureStore.production.js': await getModule('electron/app/store/configureStore.production.js')34 },35 'app.global.css': await getModule('electron/app/app.global.css'),36 'app.html': await getModule('electron/app/app.html'),37 'app.icns': await getModule('electron/app/app.icns'),38 'index.js': await getModule('electron/app/index.js'),39 'routes.js': await getModule('electron/app/routes.js'),40 'typography.global.css': await getModule('electron/app/typography.global.css')41 },42 test: {43 actions: {44 'counter.spec.js': await getModule('electron/test/actions/counter.spec.js')45 },46 components: {47 'Counter.spec.js': await getModule('electron/test/components/Counter.spec.js')48 },49 containers: {50 'CounterPage.spec.js': await getModule('electron/test/containers/CounterPage.spec.js')51 },52 reducers: {53 'counter.spec.js': await getModule('electron/test/reducers/counter.spec.js')54 },55 '.eslintrc': await getModule('electron/test/.eslintrc'),56 'e2e.js': await getModule('electron/test/e2e.js'),57 'example.js': await getModule('electron/test/example.js'),58 'setup.js': await getModule('electron/test/setup.js')59 },60 '.babelrc': await getModule('electron/.babelrc'),61 '.gitignore': await getModule('electron/.gitignore'),62 '.travis.yml': await getModule('electron/.travis.yml'),63 'main.development.js': await getModule('electron/main.development.js'),64 'package.js': await getModule('electron/package.js'),65 'package.json': await getModule('electron/package.json'),66 'server.js': await getModule('electron/server.js'),67 'webpack.config.base.js': await getModule('electron/webpack.config.base.js'),68 'webpack.config.development.js': await getModule('electron/webpack.config.development.js'),69 'webpack.config.electron.js': await getModule('electron/webpack.config.electron.js'),70 'webpack.config.node.js': await getModule('electron/webpack.config.node.js'),71 'webpack.config.production.js': await getModule('electron/webpack.config.production.js')72 };73}...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1import { getModule } from 'storybook-root-decorator';2import { getStorybook } from 'storybook-root-decorator';3import { getStorybookState } from 'storybook-root-decorator';4import { getStorybookStore } from 'storybook-root-decorator';5import { setStorybookState } from 'storybook-root-decorator';6import { setStorybookStore } from 'storybook-root-decorator';7import { updateStorybookState } from 'storybook-root-decorator';8import { updateStorybookStore } from 'storybook-root-decorator';9import { updateStorybookState } from 'storybook-root-decorator';10import { updateStorybookStore } from 'storybook-root-decorator';11import { updateStorybookState } from 'storybook-root-decorator';12import { updateStorybookStore } from 'storybook-root-decorator';13import { updateStorybookState } from 'storybook-root-decorator';14import { updateStorybookStore } from 'storybook-root-decorator';15import { updateStorybookState } from 'storybook-root-decorator';16import { updateStorybookStore } from 'storybook-root-decorator';

Full Screen

Using AI Code Generation

copy

Full Screen

1import { getModule } from 'storybook-root';2const { getModule } = require('storybook-root');3const getModule = require('storybook-root').getModule;4const { getModule } = require('storybook-root').getModule;5const getModule = require('storybook-root').getModule.getModule;6const { getModule } = require('storybook-root').getModule.getModule;7const getModule = require('storybook-root').getModule.getModule.getModule;8const { getModule } = require('storybook-root').getModule.getModule.getModule;9const getModule = require('storybook-root').getModule.getModule.getModule.getModule;10const { getModule } = require('storybook-root').getModule.getModule.getModule.getModule;11const getModule = require('storybook-root').getModule.getModule.getModule.getModule.getModule;12const { getModule } = require('storybook-root').getModule.getModule.getModule.getModule.getModule;13const getModule = require('storybook-root').getModule.getModule.getModule.getModule.getModule.getModule;14const { getModule } = require('storybook-root').getModule.getModule.getModule.getModule.getModule.getModule;15const getModule = require('storybook-root').getModule.getModule.getModule.getModule.getModule.getModule.getModule;16const { getModule } = require('storybook-root').getModule.getModule.getModule.getModule.getModule.getModule.getModule;

Full Screen

Using AI Code Generation

copy

Full Screen

1import { getModule } from 'storybook-root';2const storybookModule = getModule();3console.log(storybookModule);4import { getModule } from 'storybook-root';5const storybookModule = getModule();6console.log(storybookModule);7import { getModule } from 'storybook-root';8const storybookModule = getModule();9console.log(storybookModule);10import { getModule } from 'storybook-root';11const storybookModule = getModule();12console.log(storybookModule);13import { getModule } from 'storybook-root';14const storybookModule = getModule();15console.log(storybookModule);16import { getModule } from 'storybook-root';17const storybookModule = getModule();18console.log(storybookModule);19import { getModule } from 'storybook-root';20const storybookModule = getModule();21console.log(storybookModule);22import { getModule } from 'storybook-root';23const storybookModule = getModule();24console.log(storybookModule);25import { getModule } from 'storybook-root';26const storybookModule = getModule();27console.log(storybookModule);28import { getModule } from 'storybook-root';29const storybookModule = getModule();30console.log(storybookModule);31import { getModule } from 'storybook-root';32const storybookModule = getModule();33console.log(storybookModule);34import { getModule } from 'storybook-root';35const storybookModule = getModule();36console.log(storybookModule);37import { getModule } from 'storybook-root';38const storybookModule = getModule();39console.log(storybookModule);40import { getModule

Full Screen

Using AI Code Generation

copy

Full Screen

1import { getModule } from 'storybook-root-decorator';2import { Button } from 'antd';3import { Button as Button1 } from 'antd';4import { Button as Button2 } from 'antd';5import { Button as Button3 } from 'antd';6import { Button as Button4 } from 'antd';7import { Button as Button5 } from 'antd';8import { Button as Button6 } from 'antd';9import { Button as Button7 } from 'antd';10import { Button as Button8 } from 'antd';11import { Button as Button9 } from 'antd';12import { Button as Button10 } from 'antd';13import { Button as Button11 } from 'antd';14import { Button as Button12 } from 'antd';15import { Button as Button13 } from 'antd';16import { Button as Button14 } from 'antd';17import { Button as Button15 } from 'antd';18import { Button as Button16 } from 'antd';19import { Button as Button17 } from 'antd';20import { Button as Button18 } from 'antd';21import { Button as Button19 } from 'antd';22import { Button as Button20 } from 'antd';23import { Button as Button21 } from 'antd';24import { Button as Button22 } from 'antd';25import { Button as Button23 } from 'antd';26import { Button as Button24 } from 'antd';27import { Button as Button25 } from 'antd';28import { Button as Button26 } from 'antd';29import { Button as Button27 } from 'antd';30import { Button as Button28 } from 'antd';31import { Button as Button29 } from 'antd';32import { Button as Button30 } from 'antd';33import { Button as Button31 } from 'antd';34import { Button as Button32 } from 'antd';35import { Button as Button33 } from 'antd';36import { Button as Button34 } from 'antd';37import { Button as Button35 } from 'antd';38import { Button as Button36 } from 'antd';39import { Button as Button37 } from 'antd';40import { Button as Button38 } from 'antd';41import { Button as Button39 } from 'antd';42import { Button as Button40 } from 'antd';43import { Button as Button41 } from 'antd';44import { Button as Button42 } from 'antd';45import { Button as Button43 } from 'antd';46import {

Full Screen

Using AI Code Generation

copy

Full Screen

1import { getModule } from 'storybook-root';2const module = getModule('my-module');3import { getStorybookRoot } from 'storybook-root';4const storybookRoot = getStorybookRoot();5import { getStorybookRoot } from 'storybook-root';6const storybookRoot = getStorybookRoot();7import { getStorybookRoot } from 'storybook-root';8const storybookRoot = getStorybookRoot();9import { getStorybookRoot } from 'storybook-root';10const storybookRoot = getStorybookRoot();11import { getStorybookRoot } from 'storybook-root';12const storybookRoot = getStorybookRoot();13import { getStorybookRoot } from 'storybook-root';14const storybookRoot = getStorybookRoot();15import { getStorybookRoot } from 'storybook-root';16const storybookRoot = getStorybookRoot();17import { getStorybookRoot } from 'storybook-root';18const storybookRoot = getStorybookRoot();19import { getStorybookRoot } from 'storybook-root';20const storybookRoot = getStorybookRoot();21import { getStorybookRoot } from 'storybook-root';22const storybookRoot = getStorybookRoot();23import { getStorybookRoot } from 'storybook-root';24const storybookRoot = getStorybookRoot();

Full Screen

Using AI Code Generation

copy

Full Screen

1import { getModule } from 'storybook-root';2const { getStorybook } = getModule('react-native-storybook-loader');3const stories = getStorybook();4console.log(stories);5import { getStorybookUI, configure } from '@storybook/react-native';6import { getStorybook } from 'react-native-storybook-loader';7import './rn-addons';8import { loadStories } from './storyLoader';9import { name as appName } from './app.json';10configure(() => {11 loadStories();12}, module);13export const getModule = (moduleName) => {14 return getStorybook().find((module) => module.name === moduleName);15};16export default getStorybookUI({ port: 7007, host: 'localhost', onDeviceUI: true });17const { getStorybook } = getModule('react-native-storybook-loader');18const { getStorybook } = getModule('react-native-storybook-loader');19const stories = getStorybook();20const storiesForStory = stories.find((story) => story.kind === 'Example Button');

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run storybook-root automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful