UNPKG

sirocco-wc

Version:

Scaffolding Tool for the fusion of lit with tailwind. DRY development in the speed of light with the zero configuration build tool parcel, playwright and jest testing. jenkinsCI ready.

39 lines (36 loc) 1 kB
const path = require('path'); const fs = require('fs') // configuration const localPath = process.cwd(); const defaultComponentType = process.env.SWC_TYPE || 'components'; const prefix = process.env.SWC_PREFIX || 'swc-'; const index = process.env.SWC_INDEX || 'index.ts'; const srcDir = process.env.SWC_SRC || `src/main/ts` const cssDir = process.env.SWC_CSS || `${srcDir}\/\*\*\/\*.css` const source = path.join(localPath, srcDir); const sourceCss = path.join(localPath, cssDir); const sversion = require('../package.json').version const sname = require('../package.json').name const localConfig = path.join(localPath, 'tailwind.config.js'); const mimimalConfig = { content: [], theme: { extend: {}, }, plugins: [], } const config = fs.existsSync(localConfig) ? require(localConfig) : mimimalConfig; // exports module.exports = { defaultComponentType, cssDir, prefix, srcDir, source, sourceCss, index, localPath, sname, sversion, config, }