refactor: server
This commit is contained in:
parent
0cbf9be80c
commit
919a96f725
|
@ -1,7 +1,5 @@
|
||||||
import {Hooks} from './flecks';
|
import {Hooks} from './flecks';
|
||||||
|
|
||||||
export {dump as dumpYml, load as loadYml} from 'js-yaml';
|
|
||||||
|
|
||||||
export {default as autoentry} from './bootstrap/autoentry';
|
export {default as autoentry} from './bootstrap/autoentry';
|
||||||
export {default as fleck} from './bootstrap/fleck';
|
export {default as fleck} from './bootstrap/fleck';
|
||||||
export {default as compose} from './compose';
|
export {default as compose} from './compose';
|
||||||
|
@ -18,7 +16,6 @@ export {
|
||||||
export default {
|
export default {
|
||||||
[Hooks]: {
|
[Hooks]: {
|
||||||
'@flecks/core.config': () => ({
|
'@flecks/core.config': () => ({
|
||||||
'eslint.exclude': [],
|
|
||||||
id: 'flecks',
|
id: 'flecks',
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,6 +4,8 @@ import {Hooks} from '../flecks';
|
||||||
import commands from './commands';
|
import commands from './commands';
|
||||||
import R from '../bootstrap/require';
|
import R from '../bootstrap/require';
|
||||||
|
|
||||||
|
export {dump as dumpYml, load as loadYml} from 'js-yaml';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
default as commands,
|
default as commands,
|
||||||
processCode,
|
processCode,
|
||||||
|
@ -11,7 +13,6 @@ export {
|
||||||
targetNeutrino,
|
targetNeutrino,
|
||||||
targetNeutrinos,
|
targetNeutrinos,
|
||||||
} from './commands';
|
} from './commands';
|
||||||
|
|
||||||
export {default as Flecks} from './flecks';
|
export {default as Flecks} from './flecks';
|
||||||
export {default as require} from '../bootstrap/require';
|
export {default as require} from '../bootstrap/require';
|
||||||
export {JsonStream, transform} from './stream';
|
export {JsonStream, transform} from './stream';
|
||||||
|
@ -19,7 +20,7 @@ export {JsonStream, transform} from './stream';
|
||||||
export default {
|
export default {
|
||||||
[Hooks]: {
|
[Hooks]: {
|
||||||
'@flecks/core.build': (target, config, flecks) => {
|
'@flecks/core.build': (target, config, flecks) => {
|
||||||
const {'eslint.exclude': exclude} = flecks.get('@flecks/core');
|
const {'eslint.exclude': exclude} = flecks.get('@flecks/core/server');
|
||||||
if (-1 !== exclude.indexOf(target)) {
|
if (-1 !== exclude.indexOf(target)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -61,5 +62,8 @@ export default {
|
||||||
'webpack.config.js',
|
'webpack.config.js',
|
||||||
],
|
],
|
||||||
'@flecks/core.commands': commands,
|
'@flecks/core.commands': commands,
|
||||||
|
'@flecks/core.config': () => ({
|
||||||
|
'eslint.exclude': [],
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,8 @@ import {spawn} from 'child_process';
|
||||||
import {writeFile} from 'fs/promises';
|
import {writeFile} from 'fs/promises';
|
||||||
import {join, relative} from 'path';
|
import {join, relative} from 'path';
|
||||||
|
|
||||||
import {D, dumpYml} from '@flecks/core';
|
import {D} from '@flecks/core';
|
||||||
|
import {dumpYml} from '@flecks/core/server';
|
||||||
|
|
||||||
const {
|
const {
|
||||||
FLECKS_CORE_ROOT = process.cwd(),
|
FLECKS_CORE_ROOT = process.cwd(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user