-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
113 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { defineConfig } from '../../dist'; | ||
const path = require('path'); | ||
|
||
export default defineConfig({ | ||
umd: { | ||
bundler: 'mako', | ||
}, | ||
alias: { | ||
'@': path.resolve(__dirname, './src'), | ||
'hello-a': path.resolve(__dirname, './src/a.tsx'), | ||
'hello-foo': path.resolve(__dirname, './src/foo.ts'), | ||
}, | ||
platform: 'browser', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"scripts": { | ||
"build": "OKAM=@alipay/umi-bundler-okam father build", | ||
"build:no-clean": "father build --no-clean", | ||
"dev": "father dev", | ||
"dev:no-clean": "father dev --no-clean", | ||
"doctor": "father doctor", | ||
"version": "father version" | ||
}, | ||
"dependencies": { | ||
"father": "workspace:*", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
console.log('hello here'); | ||
|
||
// @ts-ignore | ||
import React from 'react'; | ||
// @ts-ignore | ||
import ReactDOM from 'react-dom'; | ||
|
||
function App({content}:{content:string}) { | ||
// @ts-ignore | ||
return <div>{content}</div>; | ||
} | ||
|
||
// @ts-ignore | ||
const root = ReactDOM.createRoot(document.getElementById('root')); | ||
root.render(<App content={'hello'}/>); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Content { | ||
say() { | ||
return 'Hello father 3'; | ||
} | ||
} | ||
|
||
export default new Content().say(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('foo here'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import content from '@/content'; | ||
import 'hello-a' | ||
import 'hello-foo' | ||
/* | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
// const content = 'Hello' | ||
function App() { | ||
return <div>{content}</div>; | ||
} | ||
// @ts-ignore | ||
const root = ReactDOM.createRoot(document.getElementById('root')); | ||
root.render(<App />); | ||
*/ | ||
console.log(content); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"declaration": true, | ||
"declarationMap": true, | ||
"esModuleInterop": true, | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"target": "es2015", | ||
"jsx": "react", | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters