Adding hotfixes for packages
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
19
jsx-html/examples/browser/dist/index.html
vendored
Normal file
19
jsx-html/examples/browser/dist/index.html
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Page Title</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="index.js"></script>
|
||||
|
||||
<div id="div-container" />
|
||||
|
||||
<script>
|
||||
demo.Test().render('#div-container').then((html) => {
|
||||
document.getElementById('div-container').innerHTML = html;
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
502
jsx-html/examples/browser/dist/index.js
vendored
Normal file
502
jsx-html/examples/browser/dist/index.js
vendored
Normal file
File diff suppressed because one or more lines are too long
25
jsx-html/examples/browser/package.json
Normal file
25
jsx-html/examples/browser/package.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "jsx-to-html-testing",
|
||||
"version": "1.0.0",
|
||||
"description": "jsx-to-html-testing",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"watch": "webpack --watch",
|
||||
"start": "webpack-dev-server --open",
|
||||
"build": "webpack"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Alex",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"ts-loader": "^8.0.1",
|
||||
"typescript": "^3.9.7",
|
||||
"webpack": "^4.44.1",
|
||||
"webpack-cli": "^3.3.12",
|
||||
"webpack-dev-server": "^3.11.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"async-jsx-html": "^1.2.1"
|
||||
}
|
||||
}
|
5
jsx-html/examples/browser/src/index.tsx
Normal file
5
jsx-html/examples/browser/src/index.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
import { jsx, ElementNode } from 'async-jsx-html';
|
||||
|
||||
export function Test(): ElementNode {
|
||||
return <div>Hello World</div>;
|
||||
}
|
15
jsx-html/examples/browser/tsconfig.json
Normal file
15
jsx-html/examples/browser/tsconfig.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist/",
|
||||
"module": "commonjs",
|
||||
"jsx": "react",
|
||||
"jsxFactory": "jsx",
|
||||
"esModuleInterop": true,
|
||||
"sourceMap": true,
|
||||
"allowJs": true,
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
]
|
||||
}
|
||||
}
|
33
jsx-html/examples/browser/webpack.config.js
Normal file
33
jsx-html/examples/browser/webpack.config.js
Normal file
@ -0,0 +1,33 @@
|
||||
const path = require('path');
|
||||
const MODULE_NAME = 'demo';
|
||||
|
||||
module.exports = {
|
||||
mode: 'development',
|
||||
entry: {
|
||||
index: './src/index.tsx'
|
||||
},
|
||||
devtool: 'inline-source-map',
|
||||
devServer: {
|
||||
contentBase: './dist'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: [ '.tsx', '.ts', '.js' ],
|
||||
},
|
||||
output: {
|
||||
filename: '[name].js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
libraryTarget: 'umd',
|
||||
globalObject: 'this',
|
||||
// libraryExport: 'default',
|
||||
library: MODULE_NAME
|
||||
},
|
||||
};
|
3846
jsx-html/examples/browser/yarn.lock
Normal file
3846
jsx-html/examples/browser/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user