mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
* Implement StreamEmbed instance and rename library to coral * Add article & articleButton.html, only show embed htmls in production * Respect assetURL * Add tests * Add parseHashQuery * Fix permalink query and integration tests * Fix permalink URL * Remove optionalparams from pym * Scroll when showing permalink view * Implement autoRender * AutoRender immediately when render permalink * Add test for `showPermalink` event * Add comment
42 lines
1.7 KiB
TypeScript
42 lines
1.7 KiB
TypeScript
import fs from "fs";
|
|
import path from "path";
|
|
|
|
// Make sure any symlinks in the project folder are resolved:
|
|
// https://github.com/facebookincubator/create-react-app/issues/637
|
|
const appDirectory = fs.realpathSync(process.cwd());
|
|
|
|
const resolveApp = (relativePath: string) =>
|
|
path.resolve(appDirectory, relativePath);
|
|
|
|
const resolveSrc = (relativePath: string) =>
|
|
path.resolve(__dirname, "../../", relativePath);
|
|
|
|
export default {
|
|
appPostCssConfig: resolveSrc("core/build/postcss.config.js"),
|
|
appLoaders: resolveSrc("core/build/loaders"),
|
|
appSrc: resolveSrc("."),
|
|
appTsconfig: resolveSrc("core/client/tsconfig.json"),
|
|
appPolyfill: resolveSrc("core/build/polyfills.js"),
|
|
appLocales: resolveSrc("locales"),
|
|
appThemeVariables: resolveSrc("core/client/ui/theme/variables.ts"),
|
|
appThemeVariablesCSS: resolveSrc("core/client/ui/theme/variables.css"),
|
|
|
|
appStreamHTML: resolveSrc("core/client/stream/index.html"),
|
|
appStreamLocalesTemplate: resolveSrc("core/client/stream/locales.ts"),
|
|
appStreamIndex: resolveSrc("core/client/stream/index.tsx"),
|
|
|
|
appAuthHTML: resolveSrc("core/client/auth/index.html"),
|
|
appAuthLocalesTemplate: resolveSrc("core/client/auth/locales.ts"),
|
|
appAuthIndex: resolveSrc("core/client/auth/index.tsx"),
|
|
|
|
appEmbedIndex: resolveSrc("core/client/embed/index.ts"),
|
|
appEmbedHTML: resolveSrc("core/client/embed/index.html"),
|
|
appEmbedArticleHTML: resolveSrc("core/client/embed/article.html"),
|
|
appEmbedArticleButtonHTML: resolveSrc("core/client/embed/articleButton.html"),
|
|
|
|
appDistStatic: resolveApp("dist/static"),
|
|
appPublic: resolveApp("public"),
|
|
appPackageJson: resolveApp("package.json"),
|
|
appNodeModules: resolveApp("node_modules"),
|
|
};
|