@yolean/evidence 0.0.0-stage → 40.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/LICENSE +21 -0
  2. package/cli.js +436 -0
  3. package/package.json +66 -3
  4. package/template/README.md +11 -0
  5. package/template/postcss.config.cjs +15 -0
  6. package/template/src/app.css +327 -0
  7. package/template/src/app.html +96 -0
  8. package/template/src/fix-tprotocol-service-worker.js +36 -0
  9. package/template/src/global.d.ts +1 -0
  10. package/template/src/hooks.client.js +19 -0
  11. package/template/src/hooks.server.js +41 -0
  12. package/template/src/pages/+error.svelte +57 -0
  13. package/template/src/pages/+layout.js +187 -0
  14. package/template/src/pages/+layout.svelte +10 -0
  15. package/template/src/pages/+page.md +16 -0
  16. package/template/src/pages/api/[...route]/evidencemeta.json/+server.js +48 -0
  17. package/template/src/pages/api/[route_hash]/[additional_hash]/all-queries.json/+server.js +10 -0
  18. package/template/src/pages/api/customFormattingSettings.json/+server.js +82 -0
  19. package/template/src/pages/api/customFormattingSettings.json/GET.json/+server.js +6 -0
  20. package/template/src/pages/api/pagesManifest.json/+server.js +92 -0
  21. package/template/src/pages/api/pagesManifest.json/buildPageManifest.spec.js +274 -0
  22. package/template/src/pages/api/prerendered_queries/[query_hash].arrow/+server.js +10 -0
  23. package/template/src/pages/api/settings.json/+server.js +107 -0
  24. package/template/src/pages/explore/+layout.js +5 -0
  25. package/template/src/pages/explore/console/+page.svelte +5 -0
  26. package/template/src/pages/explore/schema/+page.svelte +13 -0
  27. package/template/src/pages/fix-tprotocol-service-worker.js/+server.js +20 -0
  28. package/template/src/pages/manifest.webmanifest/+server.js +21 -0
  29. package/template/src/pages/settings/+layout.server.js +1 -0
  30. package/template/src/pages/settings/+page.js +25 -0
  31. package/template/src/pages/settings/+page.server.js +110 -0
  32. package/template/src/pages/settings/+page.svelte +111 -0
  33. package/template/static/apple-touch-icon.png +0 -0
  34. package/template/static/favicon.ico +0 -0
  35. package/template/static/icon-192.png +0 -0
  36. package/template/static/icon-512.png +0 -0
  37. package/template/static/icon.svg +6 -0
  38. package/template/svelte.config.js +106 -0
  39. package/template/tailwind.config.cjs +48 -0
  40. package/template/vite.config.js +99 -0
  41. package/README.md +0 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Evidence Technologies, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/cli.js ADDED
@@ -0,0 +1,436 @@
1
+ #!/usr/bin/env node
2
+
3
+ import chalk from 'chalk';
4
+ import fs from 'fs-extra';
5
+ import { spawn } from 'child_process';
6
+ import * as chokidar from 'chokidar';
7
+ import path from 'path';
8
+ import { fileURLToPath } from 'url';
9
+ import sade from 'sade';
10
+ import { logQueryEvent } from '@evidence-dev/telemetry';
11
+ import { enableDebug, enableStrictMode } from '@evidence-dev/sdk/utils';
12
+ import { loadEnv } from 'vite';
13
+ import { createHash } from 'crypto';
14
+
15
+ const increaseNodeMemoryLimit = () => {
16
+ // Don't override the memory limit if it's already set
17
+ if (process.env.NODE_OPTIONS?.includes('--max-old-space-size')) return;
18
+ process.env.NODE_OPTIONS = `${process.env.NODE_OPTIONS || ''} --max-old-space-size=4096`;
19
+ };
20
+
21
+ const loadEnvFile = () => {
22
+ const envFile = loadEnv('', '.', ['EVIDENCE_', 'VITE_']);
23
+ Object.assign(process.env, envFile);
24
+ };
25
+
26
+ const populateTemplate = function () {
27
+ clearQueryCache();
28
+
29
+ // Create the template project in .evidence/template
30
+ const __filename = fileURLToPath(import.meta.url);
31
+ const __dirname = path.dirname(__filename);
32
+
33
+ fs.ensureDirSync('./.evidence/template/');
34
+
35
+ // empty the template directory, except:
36
+ // - local settings
37
+ // - telemetry profile
38
+ // - static folder (mainly to preserve the data directory)
39
+ const keepers = new Set(['.profile.json', 'static', '.evidence-queries']);
40
+ fs.readdirSync('./.evidence/template/').forEach((file) => {
41
+ if (!keepers.has(file)) fs.removeSync(path.join('./.evidence/template/', file));
42
+ });
43
+
44
+ fs.copySync(path.join(__dirname, '/template'), './.evidence/template/');
45
+ };
46
+
47
+ const clearQueryCache = function () {
48
+ fs.removeSync('.evidence/template/.evidence-queries/cache');
49
+ };
50
+
51
+ const runFileWatcher = function (watchPatterns) {
52
+ const ignoredFiles = [
53
+ './pages/explore/**',
54
+ './pages/explore.+(*)',
55
+ './pages/settings/**',
56
+ './pages/settings.+(*)',
57
+ './pages/api/**',
58
+ './pages/api.+(*)'
59
+ ];
60
+
61
+ var watchers = [];
62
+
63
+ watchPatterns.forEach((pattern, item) => {
64
+ watchers[item] = chokidar.watch(path.join(pattern.sourceRelative, pattern.filePattern), {
65
+ ignored: ignoredFiles
66
+ });
67
+
68
+ const sourcePath = (p) => path.join('./', p);
69
+ const targetPath = (p) =>
70
+ path.join(pattern.targetRelative, path.relative(pattern.sourceRelative, p));
71
+ const pagePath = (p) =>
72
+ p.includes('pages')
73
+ ? p.endsWith('index.md')
74
+ ? p.replace('index.md', '+page.md')
75
+ : p.replace('.md', '/+page.md')
76
+ : p;
77
+
78
+ const syncFile = (file) => {
79
+ const source = sourcePath(file);
80
+ const target = targetPath(source);
81
+ const svelteKitPagePath = pagePath(target);
82
+ fs.copySync(source, svelteKitPagePath);
83
+ };
84
+
85
+ const unlinkFile = (file) => {
86
+ const source = sourcePath(file);
87
+ const target = targetPath(source);
88
+ const svelteKitPagePath = pagePath(target);
89
+ fs.removeSync(svelteKitPagePath);
90
+ };
91
+
92
+ watchers[item]
93
+ .on('add', syncFile)
94
+ .on('change', syncFile)
95
+ .on('unlink', unlinkFile)
96
+ .on('addDir', (path) => {
97
+ fs.ensureDirSync(targetPath(path));
98
+ })
99
+ .on('unlinkDir', (path) => fs.removeSync(targetPath(path)));
100
+ });
101
+ return watchers;
102
+ };
103
+
104
+ const flattenArguments = function (args) {
105
+ if (args) {
106
+ const result = [];
107
+ const keys = Object.keys(args);
108
+ keys.forEach((key) => {
109
+ if (key !== '_' && args[key] !== undefined) {
110
+ result.push(`--${key}`);
111
+ if (args[key] && args[key] !== true) {
112
+ result.push(args[key]);
113
+ }
114
+ }
115
+ });
116
+ return result;
117
+ } else {
118
+ return [];
119
+ }
120
+ };
121
+
122
+ const watchPatterns = [
123
+ {
124
+ sourceRelative: './pages/',
125
+ targetRelative: './.evidence/template/src/pages/',
126
+ filePattern: '**'
127
+ }, // markdown pages
128
+ {
129
+ sourceRelative: './static/',
130
+ targetRelative: './.evidence/template/static/',
131
+ filePattern: '**'
132
+ }, // static files (eg images)
133
+ {
134
+ sourceRelative: './sources/',
135
+ targetRelative: './.evidence/template/sources/',
136
+ filePattern: '**'
137
+ }, // source files (eg csv files)
138
+ {
139
+ sourceRelative: './queries',
140
+ targetRelative: './.evidence/template/queries',
141
+ filePattern: '**'
142
+ },
143
+ {
144
+ sourceRelative: './components/',
145
+ targetRelative: './.evidence/template/src/components/',
146
+ filePattern: '**'
147
+ }, // custom components
148
+ { sourceRelative: '.', targetRelative: './.evidence/template/src/', filePattern: 'app.css' }, // custom theme file
149
+ {
150
+ sourceRelative: './partials',
151
+ targetRelative: './.evidence/template/partials',
152
+ filePattern: '**'
153
+ }
154
+ ];
155
+
156
+ function removeStaticDir(dir) {
157
+ const staticlessDir = path.normalize(dir).split(path.sep).slice(1);
158
+ return path.join(...staticlessDir);
159
+ }
160
+
161
+ const strictMode = function () {
162
+ enableStrictMode();
163
+ };
164
+ const buildHelper = function (command, args) {
165
+ const watchers = runFileWatcher(watchPatterns);
166
+ const flatArgs = flattenArguments(args);
167
+
168
+ const dataDir = process.env.EVIDENCE_DATA_DIR ?? './static/data';
169
+
170
+ // Run svelte kit build in the hidden directory
171
+ const child = spawn(command, flatArgs, {
172
+ shell: true,
173
+ cwd: '.evidence/template',
174
+ stdio: 'inherit',
175
+ env: {
176
+ ...process.env,
177
+ // used for source query HMR
178
+ EVIDENCE_DATA_URL_PREFIX: process.env.EVIDENCE_DATA_URL_PREFIX ?? 'static/data',
179
+ EVIDENCE_DATA_DIR: process.env.EVIDENCE_DATA_DIR ?? './static/data',
180
+ EVIDENCE_IS_BUILDING: 'true'
181
+ }
182
+ });
183
+ // Copy the outputs to the root of the project upon successful exit
184
+ child.on('exit', function (code) {
185
+ const outDir = '.evidence/template/build';
186
+ if (code === 0) {
187
+ const staticlessDataDir = removeStaticDir(dataDir);
188
+ const buildDataDir = path.join(outDir, staticlessDataDir);
189
+ const manifestFile = path.join(buildDataDir, 'manifest.json');
190
+
191
+ if (fs.existsSync(manifestFile)) {
192
+ const manifest = fs.readJsonSync(manifestFile);
193
+ for (const files of Object.values(manifest.renderedFiles)) {
194
+ for (let i = 0; i < files.length; i++) {
195
+ // <url prefix>/sqlite/transactions/transactions.parquet
196
+ // ^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
197
+ const nDiskParts = 3;
198
+
199
+ const diskParts = files[i].split('/').slice(-nDiskParts).join('/');
200
+ const filePath = path.posix.join(buildDataDir, diskParts);
201
+ if (!fs.existsSync(filePath)) continue;
202
+
203
+ const contents = fs.readFileSync(filePath);
204
+ const hash = createHash('md5').update(contents).digest('hex');
205
+
206
+ const newDiskPart = path.posix.join(
207
+ path.dirname(diskParts),
208
+ hash,
209
+ path.basename(diskParts)
210
+ );
211
+ const newFilePath = path.join(buildDataDir, newDiskPart);
212
+ fs.moveSync(filePath, newFilePath);
213
+
214
+ files[i] = files[i].replace(diskParts, newDiskPart);
215
+ }
216
+ }
217
+ fs.writeJsonSync(manifestFile, manifest);
218
+ }
219
+
220
+ fs.copySync(outDir, './build');
221
+ console.log(`Build complete --> ${process.env.EVIDENCE_BUILD_DIR ?? './build'} `);
222
+ } else {
223
+ console.error('Build failed');
224
+ }
225
+ child.kill();
226
+ watchers.forEach((watcher) => watcher.close());
227
+ if (code !== 0) {
228
+ throw `Build process exited with code ${code}`;
229
+ }
230
+ });
231
+ };
232
+
233
+ const prog = sade('evidence');
234
+
235
+ prog
236
+ .command('dev')
237
+ .option('--debug', 'Enables verbose console logs')
238
+ .describe('launch the local evidence development environment')
239
+ .action((args) => {
240
+ increaseNodeMemoryLimit();
241
+ if (args.debug) {
242
+ enableDebug();
243
+ delete args.debug;
244
+ }
245
+
246
+ loadEnvFile();
247
+
248
+ const manifestExists = fs.lstatSync(
249
+ path.join('.evidence', 'template', 'static', 'data', 'manifest.json'),
250
+ { throwIfNoEntry: false }
251
+ );
252
+ if (!manifestExists) {
253
+ console.warn(
254
+ chalk.yellow(
255
+ `
256
+ ${chalk.bold('[!] Unable to load source manifest')}
257
+ This likely means you have no source data, and need to generate it.
258
+ Running ${chalk.bold('npm run sources')} will generate the needed data. See ${chalk.bold(
259
+ 'npm run sources --help'
260
+ )} for more usage information
261
+ Documentation: https://docs.evidence.dev/core-concepts/data-sources/
262
+ `.trim()
263
+ )
264
+ );
265
+ }
266
+
267
+ populateTemplate();
268
+
269
+ const watchers = runFileWatcher(watchPatterns);
270
+ const flatArgs = flattenArguments(args);
271
+
272
+ logQueryEvent('dev-server-start', undefined, undefined, undefined, true);
273
+ // Run svelte kit dev in the hidden directory
274
+ const child = spawn(`npx vite dev --port 3000`, flatArgs, {
275
+ shell: true,
276
+ detached: false,
277
+ cwd: '.evidence/template',
278
+ stdio: 'inherit',
279
+ env: {
280
+ ...process.env,
281
+ // used for source query HMR
282
+ EVIDENCE_DATA_URL_PREFIX: process.env.EVIDENCE_DATA_URL_PREFIX ?? 'static/data',
283
+ EVIDENCE_DATA_DIR: process.env.EVIDENCE_DATA_DIR ?? './static/data'
284
+ }
285
+ });
286
+
287
+ child.on('exit', function () {
288
+ child.kill();
289
+ watchers.forEach((watcher) => watcher.close());
290
+ });
291
+ });
292
+
293
+ prog
294
+ .command('env-debug')
295
+ .option('--include-values', 'Includes Environment Variable Values, this will show secrets!')
296
+ .describe('Prints out Evidence variables from the environment and .env file')
297
+ .action((args) => {
298
+ increaseNodeMemoryLimit();
299
+ const { 'include-values': includeValues } = args;
300
+ loadEnvFile();
301
+ const evidenceVars = Object.fromEntries(
302
+ Object.entries(process.env).filter(([k]) => k.startsWith('EVIDENCE_'))
303
+ );
304
+ if (includeValues) {
305
+ console.table(evidenceVars);
306
+ } else {
307
+ console.table(Object.keys(evidenceVars));
308
+ }
309
+ });
310
+
311
+ prog
312
+ .command('build')
313
+ .option('--debug', 'Enables verbose console logs')
314
+ .describe('build production outputs')
315
+ .action((args) => {
316
+ increaseNodeMemoryLimit();
317
+ if (args.debug) {
318
+ enableDebug();
319
+ delete args.debug;
320
+ }
321
+ loadEnvFile();
322
+ populateTemplate();
323
+
324
+ logQueryEvent('build-start');
325
+ buildHelper('npx vite build', args);
326
+ });
327
+
328
+ prog
329
+ .command('build:strict')
330
+ .option('--debug', 'Enables verbose console logs')
331
+ .describe('build production outputs and fails on error')
332
+ .action((args) => {
333
+ increaseNodeMemoryLimit();
334
+ if (args.debug) {
335
+ enableDebug();
336
+ delete args.debug;
337
+ }
338
+ loadEnvFile();
339
+ populateTemplate();
340
+ strictMode();
341
+
342
+ logQueryEvent('build-strict-start');
343
+ buildHelper('npx vite build', args);
344
+ });
345
+
346
+ prog
347
+ .command('sources')
348
+ .alias('build:sources') // We don't want to break existing projects
349
+ .describe('creates .parquet files from source queries')
350
+ .option('--changed', 'only build sources whose queries have changed')
351
+ .option('--sources', 'only build queries from the specified source directories')
352
+ .option('--queries', 'only build the specified queries')
353
+ .option('--debug', 'show debug output')
354
+ .option('--strict', 'Fail when a source query fails')
355
+ .example('npx evidence sources --changed')
356
+ .example('npx evidence sources --sources needful_things --queries orders,reviews')
357
+ .example('npx evidence sources --queries needful_things.orders,needful_things.reviews')
358
+ .example('npx evidence sources --sources needful_things,social_media')
359
+ .example('npx evidence sources --strict')
360
+ .action(async () => {
361
+ if (process.argv.some((arg) => arg.includes('build:sources'))) {
362
+ console.log(
363
+ chalk.bold.red(
364
+ '[!!] build:sources is deprecated and has been renamed to sources. Expect it to be removed in the future.'
365
+ )
366
+ );
367
+ console.log(
368
+ chalk.bold.red(
369
+ '[!!] You can fix this in your package.json file ("evidence build:sources" becomes "evidence sources")\n'
370
+ )
371
+ );
372
+ }
373
+ if (!('EVIDENCE_DATA_DIR' in process.env)) {
374
+ process.env.EVIDENCE_DATA_DIR = './.evidence/template/static/data';
375
+ }
376
+ if (!('EVIDENCE_DATA_URL_PREFIX' in process.env)) {
377
+ process.env.EVIDENCE_DATA_URL_PREFIX = 'static/data';
378
+ }
379
+ loadEnvFile();
380
+
381
+ // The data directory is defined at import time (because we aren't using getters, and it is set once)
382
+ // So we need to import it here to give the opportunity to override it above
383
+ const cli = await import('@evidence-dev/sdk/legacy-compat').then((m) => m.cli);
384
+ logQueryEvent('build-sources-start');
385
+ await cli(...process.argv);
386
+ return;
387
+ });
388
+
389
+ prog
390
+ .command('preview')
391
+ .describe('preview the production build')
392
+ .action((args) => {
393
+ increaseNodeMemoryLimit();
394
+ if (args.debug) {
395
+ enableDebug();
396
+ delete args.debug;
397
+ }
398
+ loadEnvFile();
399
+ const buildExists = fs.lstatSync(path.join('build'), {
400
+ throwIfNoEntry: false
401
+ });
402
+ if (!buildExists) {
403
+ console.error(chalk.bold.red('[!] No build directory found'));
404
+ console.error(chalk.red(`Run ${chalk.bgRed('npm run build')} to create a build`));
405
+ process.exit(1);
406
+ }
407
+ const flatArgs = flattenArguments(args);
408
+
409
+ logQueryEvent('preview-server-start', undefined, undefined, undefined, true);
410
+
411
+ let command = 'npx serve build';
412
+ if (process.env.VITE_EVIDENCE_SPA === 'true') {
413
+ command += ' -s';
414
+ }
415
+
416
+ const child = spawn(command, flatArgs, {
417
+ shell: true,
418
+ detached: false,
419
+ stdio: 'inherit'
420
+ });
421
+
422
+ child.on('exit', function () {
423
+ child.kill();
424
+ });
425
+ });
426
+
427
+ prog
428
+ .command('upgrade')
429
+ .describe('upgrade evidence to the latest version')
430
+ .action(async () => {
431
+ const cli = await import('@evidence-dev/sdk/legacy-compat').then((m) => m.cli);
432
+ await cli(...process.argv);
433
+ return;
434
+ });
435
+
436
+ prog.parse(process.argv);
package/package.json CHANGED
@@ -1,6 +1,69 @@
1
1
  {
2
2
  "name": "@yolean/evidence",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "40.2.0",
4
+ "description": "dependencies for evidence projects",
5
+ "type": "module",
6
+ "keywords": [
7
+ "analytics",
8
+ "business-intelligence",
9
+ "data",
10
+ "sql",
11
+ "markdown",
12
+ "svelte",
13
+ "data-visualization",
14
+ "visualization",
15
+ "data-viz",
16
+ "charts",
17
+ "echarts"
18
+ ],
19
+ "author": "",
20
+ "license": "MIT",
21
+ "bin": {
22
+ "evidence": "cli.js"
23
+ },
24
+ "files": [
25
+ "template",
26
+ "cli.js"
27
+ ],
28
+ "devDependencies": {
29
+ "@evidence-dev/component-utilities": "npm:@yolean/evidence-component-utilities@4.1.0",
30
+ "@evidence-dev/core-components": "npm:@yolean/evidence-core-components@5.5.0",
31
+ "@evidence-dev/tailwind": "npm:@yolean/evidence-tailwind@3.1.5",
32
+ "@sveltejs/kit": "2.70.4",
33
+ "svelte": "5.57.3",
34
+ "vite": "8.3.8"
35
+ },
36
+ "dependencies": {
37
+ "@evidence-dev/preprocess": "npm:@yolean/evidence-preprocess@6.1.0",
38
+ "@evidence-dev/sdk": "npm:@yolean/evidence-sdk@4.1.0",
39
+ "@evidence-dev/telemetry": "npm:@yolean/evidence-telemetry@2.1.4",
40
+ "@evidence-dev/universal-sql": "npm:@yolean/evidence-universal-sql@3.0.2",
41
+ "@sveltejs/adapter-static": "3.0.11",
42
+ "@sveltejs/kit": "2.70.4",
43
+ "chalk": "^5.3.0",
44
+ "chokidar": "3.6.0",
45
+ "fs-extra": "11.2.0",
46
+ "sade": "^1.8.1"
47
+ },
48
+ "peerDependencies": {
49
+ "@sveltejs/vite-plugin-svelte": "7.3.1",
50
+ "autoprefixer": "^10.4.7",
51
+ "debounce": "^1.2.1",
52
+ "git-remote-origin-url": "4.0.0",
53
+ "postcss": "^8.4.14",
54
+ "postcss-load-config": "^4.0.1",
55
+ "svelte": "^5.46.4",
56
+ "svelte-preprocess": "6.0.5",
57
+ "svelte2tsx": "0.7.63",
58
+ "tailwindcss": "3.4.18",
59
+ "typescript": "5.4.2",
60
+ "unist-util-visit": "4.1.2",
61
+ "vite": "^8.0.0"
62
+ },
63
+ "engines": {
64
+ "node": ">=18"
65
+ },
66
+ "scripts": {
67
+ "build": "node scripts/build-template"
68
+ }
6
69
  }
@@ -0,0 +1,11 @@
1
+
2
+ # Evidence Template Project
3
+
4
+ Thank you for checking out Evidence.
5
+
6
+ ## Learning More
7
+
8
+ - [Docs](https://docs.evidence.dev/)
9
+ - [Project Home Page](https://www.evidence.dev)
10
+ - [Github](https://github.com/evidence-dev/evidence)
11
+
@@ -0,0 +1,15 @@
1
+ const tailwindcss = require('tailwindcss');
2
+ const nesting = require('tailwindcss/nesting');
3
+ const autoprefixer = require('autoprefixer');
4
+
5
+ const config = {
6
+ plugins: [
7
+ nesting(),
8
+ //Some plugins, like tailwindcss/nesting, need to run before Tailwind,
9
+ tailwindcss(),
10
+ //But others, like autoprefixer, need to run after,
11
+ autoprefixer
12
+ ]
13
+ };
14
+
15
+ module.exports = config;