Skip to content

Commit

Permalink
chore: add new marketing website (#3060)
Browse files Browse the repository at this point in the history
* feat: allow linked data attached to other linked data to be added to a data dictionary (#3049)

* add eisenberg as codeowner (#3055)

* Sets up intial fast-frame project

* restored website files and renamed new site

Co-authored-by: Jane Chu <[email protected]>
Co-authored-by: Aaron Wentzel <[email protected]>
  • Loading branch information
3 people authored and chrisdholt committed May 18, 2020
1 parent a508de4 commit 8164d43
Show file tree
Hide file tree
Showing 8 changed files with 4,896 additions and 0 deletions.
1 change: 1 addition & 0 deletions sites/fast-website/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "presets": [ "env" ] }
26 changes: 26 additions & 0 deletions sites/fast-website/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "fast-website",
"version": "1.0.0",
"description": "fast website",
"main": "index.js",
"private": true,
"license": "MIT",
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^8.1.0",
"babel-preset-env": "^1.7.0",
"html-webpack-plugin": "^4.3.0",
"ts-loader": "^7.0.2",
"typescript": "^3.8.3",
"webpack": "^4.43.0",
"webpack-dev-server": "^3.10.3"
},
"scripts": {
"start": "webpack-dev-server --history-api-fallback --inline --progress"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Microsoft/fast-dna.git"
},
"author": "Microsoft"
}
Empty file.
13 changes: 13 additions & 0 deletions sites/fast-website/src/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<!-- App goes here -->
<div>
Hello World!!!
</div>
</body>
</html>
18 changes: 18 additions & 0 deletions sites/fast-website/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": "./",
"strictNullChecks": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
]
}
47 changes: 47 additions & 0 deletions sites/fast-website/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin"); // Require html-webpack-plugin plugin
const appDir = path.resolve(__dirname, "./src/app");
const publicDir = path.resolve(__dirname, "./src/public");
const outDir = path.resolve(__dirname, "./www");

module.exports = {
entry: {
main: path.resolve(appDir, "index.ts"),
},
output: {
path: path.resolve(__dirname, "/dist"),
filename: "bundle.js", // Name of generated bundle after build
publicPath: "/", // public URL of the output directory when referenced in a browser
},
module: {
// where we defined file patterns and their loaders
rules: [
{
test: /.tsx?$/,
use: [
{
loader: "ts-loader",
},
],
},
{
test: /\.js$/,
use: "babel-loader",
},
],
},
plugins: [
// Array of plugins to apply to build chunk
new HtmlWebpackPlugin({
title: "FAST website",
template: path.resolve(publicDir, "index.html"),
contentBase: outDir,
}),
],
devServer: {
// configuration for webpack-dev-server
contentBase: "./src/public", //source of static assets
open: true,
port: 7700, // port to run dev-server
},
};
Loading

0 comments on commit 8164d43

Please sign in to comment.