-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add new marketing website (#3060)
* 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
1 parent
a508de4
commit 8164d43
Showing
8 changed files
with
4,896 additions
and
0 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 @@ | ||
{ "presets": [ "env" ] } |
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,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.
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,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> |
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,18 @@ | ||
{ | ||
"compilerOptions": { | ||
"moduleResolution": "node", | ||
"module": "ES6", | ||
"target": "ES6", | ||
"baseUrl": "./", | ||
"strictNullChecks": true, | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"resolveJsonModule": true | ||
}, | ||
"include": [ | ||
"src/**/*" | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
] | ||
} |
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,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 | ||
}, | ||
}; |
Oops, something went wrong.