Skip to content

Commit

Permalink
fix cicle ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Oct 16, 2019
1 parent 19f0710 commit b037b93
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
11 changes: 11 additions & 0 deletions packages/umi-build-dev/.fatherrc.js
@@ -1,3 +1,13 @@
import glob from 'glob';
import { join } from 'path';
import slash from 'slash2';

// 获取所有的 ui 下 tsx
const src = join(__dirname, 'src', 'plugins', 'commands', 'block', 'ui');
const files = glob.sync('**/*.@(tsx|jsx)', { cwd: src });
const browserFiles = files.map(filePath =>
slash(join('src', 'plugins', 'commands', 'block', 'ui', filePath)),
);
export default {
target: 'node',
cjs: { type: 'babel', lazy: true },
Expand All @@ -8,5 +18,6 @@ export default {
'src/plugins/404/guessJSFileFromPath.js',
'src/plugins/commands/dev/injectUI.js',
'src/plugins/commands/block/sdk/flagBabelPlugin/GUmiUIFlag.tsx',
...browserFiles,
],
};
10 changes: 9 additions & 1 deletion packages/umi-plugin-ui/.fatherrc.js
@@ -1,6 +1,14 @@
import glob from 'glob';
import { join } from 'path';
import slash from 'slash2';

const src = join(__dirname, 'src');
const files = glob.sync('**/*.@(tsx|jsx)', { cwd: src });
const browserFiles = files.map(filePath => slash(join('src', filePath)));

export default {
target: 'node',
cjs: { type: 'babel', lazy: true },
browserFiles: ['src/bubble/socket.js', 'src/bubble/utils.js'],
browserFiles,
disableTypeCheck: true,
};
8 changes: 8 additions & 0 deletions packages/umi-ui-tasks/.fatherrc.js
@@ -1,5 +1,13 @@
import glob from 'glob';
import { join } from 'path';
import slash from 'slash2';

const src = join(__dirname, './src');
const files = glob.sync('**/*.@(tsx)', { cwd: src });

export default {
target: 'node',
cjs: { type: 'babel', lazy: true },
disableTypeCheck: true,
browserFiles: files.map(filePath => slash(join('src', filePath))),
};

0 comments on commit b037b93

Please sign in to comment.