Skip to content

Commit

Permalink
Added fonts and dev webpack build
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Rodg committed Nov 29, 2017
1 parent 8aa2362 commit 3df0fe5
Show file tree
Hide file tree
Showing 40 changed files with 28,947 additions and 7 deletions.
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"name": "preview-generator",
"version": "1.0.0",
"description": "A landing page for creating IIS virtual directories and applications using NodeJS.",
"description":
"A landing page for creating IIS virtual directories and applications using NodeJS.",
"main": "index.js",
"scripts": {
"dev":
"webpack-dev-server --hot --host 0.0.0.0 --config=./webpack.dev.config.js",
"start": "node index.js",
"build": "webpack --config webpack.build.config.js",
"watch": "webpack --config webpack.build.config.js --watch"
Expand All @@ -12,11 +15,7 @@
"type": "git",
"url": "git+https://github.com/C-Rodg/IIS-Preview-Generator.git"
},
"keywords": [
"NodeJS",
"express",
"IIS"
],
"keywords": ["NodeJS", "express", "IIS"],
"author": "C-Rodg",
"license": "MIT",
"bugs": {
Expand Down
42 changes: 41 additions & 1 deletion src/styles/default.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
@import "./raleway/raleway.css";

a {
color: inherit;
text-decoration: inherit;
}

html {
height: 100%;
}

body {
background: gray;
margin: 0;
height: 100%;
font-family: "Raleway", "Helvetica", "Arial", "sans-serif";
display: flex;
flex-direction: column;
}

#root {
height: 100%;
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
}

.app {
height: 100%;
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
background-color: #0b222e;
color: #f5f5f5;
overflow: hidden;
}

.container {
padding: 10px 15px;
display: flex;
flex-direction: column;
}
Binary file added src/styles/raleway/raleway-bold.eot
Binary file not shown.
3,278 changes: 3,278 additions & 0 deletions src/styles/raleway/raleway-bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/styles/raleway/raleway-bold.ttf
Binary file not shown.
Binary file added src/styles/raleway/raleway-bold.woff
Binary file not shown.
Binary file added src/styles/raleway/raleway-extrabold.eot
Binary file not shown.
3,288 changes: 3,288 additions & 0 deletions src/styles/raleway/raleway-extrabold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/styles/raleway/raleway-extrabold.ttf
Binary file not shown.
Binary file added src/styles/raleway/raleway-extrabold.woff
Binary file not shown.
Binary file added src/styles/raleway/raleway-extralight.eot
Binary file not shown.
3,139 changes: 3,139 additions & 0 deletions src/styles/raleway/raleway-extralight.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/styles/raleway/raleway-extralight.ttf
Binary file not shown.
Binary file added src/styles/raleway/raleway-extralight.woff
Binary file not shown.
Binary file added src/styles/raleway/raleway-heavy.eot
Binary file not shown.
3,268 changes: 3,268 additions & 0 deletions src/styles/raleway/raleway-heavy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/styles/raleway/raleway-heavy.ttf
Binary file not shown.
Binary file added src/styles/raleway/raleway-heavy.woff
Binary file not shown.
Binary file added src/styles/raleway/raleway-light.eot
Binary file not shown.
3,273 changes: 3,273 additions & 0 deletions src/styles/raleway/raleway-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/styles/raleway/raleway-light.ttf
Binary file not shown.
Binary file added src/styles/raleway/raleway-light.woff
Binary file not shown.
Binary file added src/styles/raleway/raleway-medium.eot
Binary file not shown.
3,278 changes: 3,278 additions & 0 deletions src/styles/raleway/raleway-medium.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/styles/raleway/raleway-medium.ttf
Binary file not shown.
Binary file added src/styles/raleway/raleway-medium.woff
Binary file not shown.
Binary file added src/styles/raleway/raleway-regular.eot
Binary file not shown.
3,278 changes: 3,278 additions & 0 deletions src/styles/raleway/raleway-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/styles/raleway/raleway-regular.ttf
Binary file not shown.
Binary file added src/styles/raleway/raleway-regular.woff
Binary file not shown.
Binary file added src/styles/raleway/raleway-semibold.eot
Binary file not shown.
3,278 changes: 3,278 additions & 0 deletions src/styles/raleway/raleway-semibold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/styles/raleway/raleway-semibold.ttf
Binary file not shown.
Binary file added src/styles/raleway/raleway-semibold.woff
Binary file not shown.
Binary file added src/styles/raleway/raleway-thin.eot
Binary file not shown.
2,668 changes: 2,668 additions & 0 deletions src/styles/raleway/raleway-thin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/styles/raleway/raleway-thin.ttf
Binary file not shown.
Binary file added src/styles/raleway/raleway-thin.woff
Binary file not shown.
90 changes: 90 additions & 0 deletions src/styles/raleway/raleway.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
@font-face {
font-family: "Raleway";
src: url("./raleway-thin.eot");
src: url("./raleway-thin.eot?#iefix") format("embedded-opentype"),
url("./raleway-thin.woff") format("woff"),
url("./raleway-thin.ttf") format("truetype"),
url("./raleway-thin.svg#ralewaythin") format("svg");
font-weight: 100;
font-style: normal;
}
@font-face {
font-family: "Raleway";
src: url("./raleway-extralight.eot");
src: url("./raleway-extralight.eot?#iefix") format("embedded-opentype"),
url("./raleway-extralight.woff") format("woff"),
url("./raleway-extralight.ttf") format("truetype"),
url("./raleway-extralight.svg#ralewayextralight") format("svg");
font-weight: 200;
font-style: normal;
}
@font-face {
font-family: "Raleway";
src: url("./raleway-light.eot");
src: url("./raleway-light.eot?#iefix") format("embedded-opentype"),
url("./raleway-light.woff") format("woff"),
url("./raleway-light.ttf") format("truetype"),
url("./raleway-light.svg#ralewaylight") format("svg");
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: "Raleway";
src: url("./raleway-regular.eot");
src: url("./raleway-regular.eot?#iefix") format("embedded-opentype"),
url("./raleway-regular.woff") format("woff"),
url("./raleway-regular.ttf") format("truetype"),
url("./raleway-regular.svg#ralewayregular") format("svg");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "Raleway";
src: url("./raleway-medium.eot");
src: url("./raleway-medium.eot?#iefix") format("embedded-opentype"),
url("./raleway-medium.woff") format("woff"),
url("./raleway-medium.ttf") format("truetype"),
url("./raleway-medium.svg#ralewaymedium") format("svg");
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: "Raleway";
src: url("./raleway-semibold.eot");
src: url("./raleway-semibold.eot?#iefix") format("embedded-opentype"),
url("./raleway-semibold.woff") format("woff"),
url("./raleway-semibold.ttf") format("truetype"),
url("./raleway-semibold.svg#ralewaysemibold") format("svg");
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: "Raleway";
src: url("./raleway-bold.eot");
src: url("./raleway-bold.eot?#iefix") format("embedded-opentype"),
url("./raleway-bold.woff") format("woff"),
url("./raleway-bold.ttf") format("truetype"),
url("./raleway-bold.svg#ralewaybold") format("svg");
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "Raleway";
src: url("./raleway-extrabold.eot");
src: url("./raleway-extrabold.eot?#iefix") format("embedded-opentype"),
url("./raleway-extrabold.woff") format("woff"),
url("./raleway-extrabold.ttf") format("truetype"),
url("./raleway-extrabold.svg#ralewayextrabold") format("svg");
font-weight: 800;
font-style: normal;
}
@font-face {
font-family: "Raleway";
src: url("./raleway-heavy.eot");
src: url("./raleway-heavy.eot?#iefix") format("embedded-opentype"),
url("./raleway-heavy.woff") format("woff"),
url("./raleway-heavy.ttf") format("truetype"),
url("./raleway-heavy.svg#ralewayheavy") format("svg");
font-weight: 900;
font-style: normal;
}
63 changes: 63 additions & 0 deletions webpack.dev.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
const webpack = require("webpack"),
path = require("path"),
HTMLWebpackPlugin = require("html-webpack-plugin"),
ExtractTextPlugin = require("extract-text-webpack-plugin");

const SRC_DIR = path.resolve(__dirname, "src");
const OUTPUT_DIR = path.resolve(__dirname, "dist");

const defaultInclude = [SRC_DIR];

module.exports = {
entry: SRC_DIR + "/index.js",
output: {
path: OUTPUT_DIR,
publicPath: "/",
filename: "bundle.js"
},
module: {
rules: [
{
test: /\.css$/,
use: [{ loader: "style-loader" }, { loader: "css-loader" }],
include: defaultInclude
},
{
test: /\.jsx?$/,
use: [{ loader: "babel-loader" }],
include: defaultInclude
},
{
test: /\.(jpe?g|png|gif)$/,
use: [{ loader: "file-loader?name=img/[name]__[hash:base64:5].[ext]" }],
include: defaultInclude
},
{
test: /\.(eot|svg|ttf|woff|woff2)$/,
use: [
{ loader: "file-loader?name=font/[name]__[hash:base64:5].[ext]" }
],
include: defaultInclude
}
]
},
target: "web",
plugins: [
new HTMLWebpackPlugin({
favicon: "./src/static/favicon.ico",
title: "Validar Preview Generator"
}),
new webpack.DefinePlugin({
"process.env.NODE_ENV": JSON.stringify("development")
})
],
devtool: "cheap-source-map",
devServer: {
contentBase: OUTPUT_DIR,
stats: {
colors: true,
chunks: false,
children: false
}
}
};

0 comments on commit 3df0fe5

Please sign in to comment.