Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MagicPlayerv 1.0.4 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
20 changes: 20 additions & 0 deletions .fatherrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export default {
esm: {
type: 'babel',
mjs: true,
},

lessInBabelMode: true, // import './index.less'; => import './index.css';
// 配置额外的 babel plugin
extraBabelPlugins: [
[
require.resolve('babel-plugin-module-resolver'), // 将 @ 转换为对应路径
{
root: ['./'],
alias: {
'@': './es',
},
},
],
],
};
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/npm-debug.log*
/yarn-error.log
/yarn.lock
/package-lock.json
.vscode
# production
/es
/dist
/docs-dist


# misc
.DS_Store
/coverage

# umi
.umi
.umi-production
.umi-test
.env.local

# ide
# /.vscode
/.idea
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/*.svg
**/*.ejs
**/*.html
package.json
.umi
.umi-production
.umi-test
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@umijs/fabric').prettier;
28 changes: 28 additions & 0 deletions .umirc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineConfig } from 'dumi';

export default defineConfig({
devServer: {
port: 8002,
},
title: 'magic-videoplayer',
mode: 'site',
description: '基于React的UI组件库',
theme: {
'@primary-color': '#1e66eb', //test
'@c-primary': '#47a5dc', //test
//test "@c-primary": "#47a5dc",
},
hash: true,
// ignoreMomentLocale: true,
inlineLimit: 1000000,
// mfsu: {
// development : {
// output : "./.mfsu-dev",
// },
// // production : {
// // output : "./mfsu-prod",
// // }
// }

// 更多配置: https://d.umijs.org/config
});
Loading