quasar
36 строк · 1.4 Кб
1/**
2* Quasar App Extension index/runner script
3* (runs on each dev/build)
4*
5* Docs: https://quasar.dev/app-extensions/development-guide/index-api
6*/
7
8function extendConf (conf) {9// register our boot file10conf.boot.push('~quasar-app-extension-<%= name %>/src/boot/register.js')11
12// make sure app extension files & ui package gets transpiled13conf.build.transpileDependencies.push(/quasar-app-extension-<%= name %>[\\/]src/)14
15// make sure the stylesheet goes through webpack to avoid SSR issues16conf.css.push('~quasar-ui-<%= name %>/src/index.sass')17}
18
19module.exports = function (api) {20// Quasar compatibility check; you may need21// hard dependencies, as in a minimum version of the "quasar"22// package or a minimum version of "@quasar/app" CLI23api.compatibleWith('quasar', '^1.1.1')24api.compatibleWith('@quasar/app', '^2.0.0')25
26<% if (features.component) { %>27// Uncomment the line below if you provide a JSON API for your component28// api.registerDescribeApi('<%= componentName %>', '~quasar-ui-<%= name %>/src/components/<%= componentName %>.json')29<% } %><% if (features.directive) { %>30// Uncomment the line below if you provide a JSON API for your directive31// api.registerDescribeApi('<%= directiveName %>', '~quasar-ui-<%= name %>/src/directives/<%= directiveName %>.json')32<% } %>33
34// We extend /quasar.conf.js35api.extendQuasarConf(extendConf)36}
37