[#168] Add static app to host AlphaLyrae font
This commit is contained in:
parent
fdf76aa88b
commit
ad9344dd15
Binary file not shown.
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 7.2 KiB |
50
apps/static/project.json
Normal file
50
apps/static/project.json
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
"projectType": "application",
|
||||
"root": "apps/static",
|
||||
"sourceRoot": "apps/static/src",
|
||||
"tags": [],
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nrwl/web:webpack",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"defaultConfiguration": "production",
|
||||
"options": {
|
||||
"outputPath": "dist/apps/static",
|
||||
"compiler": "babel",
|
||||
"index": "apps/static/src/index.html",
|
||||
"generateIndexHtml": false,
|
||||
"baseHref": "/",
|
||||
"main": "apps/static/src/main.ts",
|
||||
"tsConfig": "apps/static/tsconfig.app.json",
|
||||
"assets": ["apps/static/src/favicon.ico", "apps/static/src/assets"],
|
||||
"styles": [
|
||||
{
|
||||
"input": "apps/static/src/fonts.scss",
|
||||
"bundleName": "fonts"
|
||||
}
|
||||
],
|
||||
"scripts": []
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"optimization": false,
|
||||
"outputHashing": "none",
|
||||
"sourceMap": false,
|
||||
"namedChunks": false,
|
||||
"vendorChunk": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"serve": {
|
||||
"executor": "@nrwl/web:dev-server",
|
||||
"options": {
|
||||
"buildTarget": "static:build"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"buildTarget": "static:build:production"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
0
apps/static/src/assets/.gitkeep
Normal file
0
apps/static/src/assets/.gitkeep
Normal file
BIN
apps/static/src/favicon.ico
Normal file
BIN
apps/static/src/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.2 KiB |
8
apps/static/src/fonts.scss
Normal file
8
apps/static/src/fonts.scss
Normal file
@ -0,0 +1,8 @@
|
||||
@font-face {
|
||||
font-family: AlphaLyrae;
|
||||
src: url('alpha-lyrae/AlphaLyrae-Medium.woff2') format('woof2'),
|
||||
url('alpha-lyrae/AlphaLyrae-Medium.woff') format('woof'),
|
||||
url('alpha-lyrae/AlphaLyrae-Medium.ttf') format('truetype'),
|
||||
url('alpha-lyrae/AlphaLyrae-Medium.eot') format('embedded-opentype'),
|
||||
url('alpha-lyrae/AlphaLyrae-Medium.otf') format('opentype');
|
||||
}
|
20
apps/static/src/index.html
Normal file
20
apps/static/src/index.html
Normal file
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
<title>Vega Protocol static asseets</title>
|
||||
<link rel="stylesheet" href="fonts.css" />
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
||||
</head>
|
||||
<body>
|
||||
<h1 style="font-family: AlphaLyrae; font-weight: normal">
|
||||
Vega Protocol static assets
|
||||
</h1>
|
||||
<ul>
|
||||
<li><a href="./fonts.css">AlphaLyrae font</a></li>
|
||||
<li><a href="./favicon.ico">Favicon</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
0
apps/static/src/main.ts
Normal file
0
apps/static/src/main.ts
Normal file
9
apps/static/tsconfig.app.json
Normal file
9
apps/static/tsconfig.app.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"types": ["node"]
|
||||
},
|
||||
"exclude": ["**/*.spec.ts", "**/*.test.ts"],
|
||||
"include": ["**/*.ts"]
|
||||
}
|
13
apps/static/tsconfig.json
Normal file
13
apps/static/tsconfig.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.app.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
]
|
||||
}
|
10
apps/static/tsconfig.spec.json
Normal file
10
apps/static/tsconfig.spec.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
},
|
||||
"files": ["src/test-setup.ts"],
|
||||
"include": ["**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
|
||||
}
|
11
nx.json
11
nx.json
@ -50,6 +50,17 @@
|
||||
"style": "scss",
|
||||
"linter": "eslint"
|
||||
}
|
||||
},
|
||||
"@nrwl/web:application": {
|
||||
"style": "scss",
|
||||
"linter": "eslint",
|
||||
"unitTestRunner": "jest",
|
||||
"e2eTestRunner": "none"
|
||||
},
|
||||
"@nrwl/web:library": {
|
||||
"style": "scss",
|
||||
"linter": "eslint",
|
||||
"unitTestRunner": "jest"
|
||||
}
|
||||
},
|
||||
"defaultProject": "trading"
|
||||
|
@ -30,6 +30,7 @@
|
||||
"@web3-react/walletconnect": "^8.0.23-beta.0",
|
||||
"ag-grid-community": "^27.0.1",
|
||||
"ag-grid-react": "^27.0.1",
|
||||
"alpha-lyrae": "vegaprotocol/alpha-lyrae",
|
||||
"apollo": "^2.33.9",
|
||||
"autoprefixer": "^10.4.2",
|
||||
"bignumber.js": "^9.0.2",
|
||||
|
@ -9,6 +9,7 @@
|
||||
"order-list": "libs/order-list",
|
||||
"positions": "libs/positions",
|
||||
"react-helpers": "libs/react-helpers",
|
||||
"static": "apps/static",
|
||||
"stats": "apps/stats",
|
||||
"stats-e2e": "apps/stats-e2e",
|
||||
"tailwindcss-config": "libs/tailwindcss-config",
|
||||
|
@ -6464,6 +6464,10 @@ ajv@^8.0.0, ajv@^8.0.1, ajv@^8.8.0:
|
||||
require-from-string "^2.0.2"
|
||||
uri-js "^4.2.2"
|
||||
|
||||
alpha-lyrae@vegaprotocol/alpha-lyrae:
|
||||
version "0.0.0"
|
||||
resolved "https://codeload.github.com/vegaprotocol/alpha-lyrae/tar.gz/952bbedd040080c51fb9fa15b52b0093be4d3c26"
|
||||
|
||||
anser@1.4.9:
|
||||
version "1.4.9"
|
||||
resolved "https://registry.yarnpkg.com/anser/-/anser-1.4.9.tgz#1f85423a5dcf8da4631a341665ff675b96845760"
|
||||
|
Loading…
Reference in New Issue
Block a user