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
import { render, ComponentChild } from 'preact'; | |
import renderToString from 'preact-render-to-string'; | |
export default abstract class Base { | |
private _container: Element; | |
private _base?: Element; | |
public constructor(container: Element) { | |
this._container = container; |
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
import Month from '@src/month'; | |
import Week from '@src/week'; | |
export default { | |
Month, | |
Week | |
}; | |
export { Month, Week }; |
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
{ | |
"files": [ | |
"src", | |
"dist", | |
"index.d.ts" | |
] | |
} |
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
{ | |
"scripts": { | |
"doc": "npm run build:esm && tuidoc", | |
"serve": "DEV_SERVER=true webpack-dev-server --mode development", | |
"build:dev": "webpack --mode development", | |
"build:prod": "NODE_ENV=production webpack --mode production", | |
"build:esm": "ttsc -p tsconfig.esm.json", | |
"build": "rm -rf dist && npm run build:dev && npm run build:prod && npm run build:esm" | |
} | |
} |
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
<head> | |
<link href="/dist/esm-ui-library.css" rel="stylesheet"> | |
</head> | |
<body style=""> | |
<script type="text/javascript" src="/dist/esm-ui-library.js"></script> | |
</body> |
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
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const config = { | |
..., | |
resolve: { | |
extensions: ['.ts', '.tsx', '.js'], // Add '.js'. | |
... | |
}, | |
plugins: [ | |
..., | |
new HtmlWebpackPlugin() |
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
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const postcssPrefixer = require('postcss-prefixer'); | |
... | |
const isDevServer = process.env.DEV_SERVER === 'true'; | |
... | |
module: { | |
rules: [ | |
... | |
{ | |
test: /\.s[ac]ss$/i, |
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
.tui-full-calendar-holiday { | |
color: red; | |
font-size: 15px; | |
} |
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
.holiday { | |
color: red; | |
font-size: 15px; | |
} |
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
.{css-prefix}holiday { | |
color: red; | |
font-size: 15px; | |
} |