How to use getModule method in ts-auto-mock

Best JavaScript code snippet using ts-auto-mock

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 'ts-auto-mock';2import { MyInterface1 } from './MyInterface1';3import { MyInterface2 } from './MyInterface2';4const myInterface1Mock: MyInterface1 = getModule(MyInterface1);5const myInterface2Mock: MyInterface2 = getModule(MyInterface2);6console.log(myInterface1Mock);7console.log(myInterface2Mock);8module.exports = {9 module: {10 {11 {12 },13 {14 },15 },16 },17};18import { MyInterface1 } from './MyInterface1';19import { MyInterface2 } from './MyInterface2';20console.log(MyInterface1);21console.log(MyInterface2);22module.exports = {23 module: {24 {25 {26 },27 {28 },29 },30 },31};32import { MyInterface1 } from './MyInterface1';33import { MyInterface2 } from './MyInterface2';34describe('test1', () => {35 it('should work', () => {36 console.log(MyInterface1);37 console.log(MyInterface2);38 });39});40module.exports = {

Full Screen

Using AI Code Generation

copy

Full Screen

1import { getModule } from 'ts-auto-mock';2import { Test2 } from './test2';3export const test1 = getModule(Test2);4export class Test2 {5 public test3: Test3;6}7export class Test3 {8 public test4: Test4;9}10export class Test4 {11 public test5: Test5;12}13export class Test5 {14 public test6: Test6;15}16export class Test6 {17 public test7: Test7;18}19export class Test7 {20 public test8: Test8;21}22export class Test8 {23 public test9: Test9;24}25export class Test9 {26 public test10: Test10;27}28export class Test10 {29 public test11: Test11;30}31export class Test11 {32 public test12: Test12;33}34export class Test12 {35 public test13: Test13;36}37export class Test13 {38 public test14: Test14;39}40export class Test14 {41 public test15: Test15;42}43export class Test15 {44 public test16: Test16;45}46export class Test16 {47 public test17: Test17;48}49export class Test17 {50 public test18: Test18;51}52export class Test18 {53 public test19: Test19;54}55export class Test19 {56 public test20: Test20;57}58export class Test20 {59 public test21: Test21;60}61export class Test21 {62 public test22: Test22;63}64export class Test22 {65 public test23: Test23;66}67export class Test23 {68 public test24: Test24;69}

Full Screen

Using AI Code Generation

copy

Full Screen

1import { getModule } from 'ts-auto-mock';2import { MyModule } from './module';3const myModule = getModule(MyModule);4import { getModule } from 'ts-auto-mock';5export class MyModule {6 public method(): string {7 return 'string';8 }9}10export const myModule = getModule(MyModule);11import { getModule } from 'ts-auto-mock';12import { MyModule } from './module';13import { MyOtherModule } from './other-module';14import { myFunction } from './function';15const myModule = getModule(MyModule);16const myOtherModule = getModule(MyOtherModule);17myFunction(myModule, myOtherModule);18import { getModule } from 'ts-auto-mock';19export class MyModule {20 public method(): string {21 return 'string';22 }23}24export const myModule = getModule(MyModule);25import { getModule } from 'ts-auto-mock';26export class MyOtherModule {27 public method(): string {28 return 'string';29 }30}31export const myOtherModule = getModule(MyOtherModule);32import { MyModule

Full Screen

Using AI Code Generation

copy

Full Screen

1const tsAutoMock = require('ts-auto-mock');2const mock = tsAutoMock.getModule('./test2.js');3console.log(mock);4function test() {5 return "test";6}7module.exports = test;8{ test: [Function: test] }9class testClass {10 test() {11 return "test";12 }13}14module.exports = testClass;15const tsAutoMock = require('ts-auto-mock');16const mock = tsAutoMock.getModule('./test2.js');17console.log(mock);18class testClass {19 test() {20 return "test";21 }22}23module.exports = testClass;24{ testClass: [Function: testClass] }25let testProperty = "test";26module.exports = testProperty;27const tsAutoMock = require('ts-auto-mock');28const mock = tsAutoMock.getModule('./test2.js');29console.log(mock);30let testProperty = "test";

Full Screen

Using AI Code Generation

copy

Full Screen

1import { getMock } from 'ts-auto-mock';2import { Test1 } from './test2';3export class Test1 {4 public test2:Test2;5 constructor() {6 this.test2 = getMock<Test2>(Test2);7 }8}9export class Test2 {10 public test1:Test1;11 public test3:Test3;12}13export class Test3 {14 public test1:Test1;15 public test2:Test2;16}17export class Test4 {18 public test1:Test1;19 public test2:Test2;20 public test3:Test3;21}22Error: Cannot find module './test2' or its corresponding type declarations.ts(2307)23{24 "compilerOptions": {25 "paths": {26 },27 },28}

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 ts-auto-mock 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