1 |
|
2 | import type {ParcelOptions} from '../src/types';
|
3 | import Cache, {createCacheDir} from '@parcel/cache';
|
4 | import tempy from 'tempy';
|
5 | import {inputFS, outputFS} from '@parcel/test-utils';
|
6 | import {NodePackageManager} from '@parcel/package-manager';
|
7 |
|
8 | let cacheDir = tempy.directory();
|
9 | createCacheDir(outputFS, cacheDir);
|
10 | export let cache = new Cache(outputFS, cacheDir);
|
11 |
|
12 | export const DEFAULT_OPTIONS: ParcelOptions = {
|
13 | cacheDir: '.parcel-cache',
|
14 | entries: [],
|
15 | logLevel: 'info',
|
16 | rootDir: __dirname,
|
17 | targets: undefined,
|
18 | projectRoot: '',
|
19 | lockFile: undefined,
|
20 | autoinstall: false,
|
21 | hot: false,
|
22 | serve: false,
|
23 | mode: 'development',
|
24 | scopeHoist: false,
|
25 | minify: false,
|
26 | env: {},
|
27 | disableCache: false,
|
28 | sourceMaps: false,
|
29 | profile: false,
|
30 | inputFS,
|
31 | outputFS,
|
32 | cache,
|
33 | patchConsole: false,
|
34 | packageManager: new NodePackageManager(inputFS)
|
35 | };
|