Use npm and add a sass build script

This commit is contained in:
Brian Duggan 2018-05-22 15:25:40 -04:00
parent ee0213553f
commit 22d14d97b4
7 changed files with 6874 additions and 4 deletions

View File

@ -8,9 +8,8 @@
. .venv/bin/activate . .venv/bin/activate
pip install --upgrade pip pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
cd static/assets npm install
wget https://github.com/uswds/uswds/releases/download/v1.6.3/uswds-1.6.3.zip ./get-css
unzip uswds-1.6.3.zip
## Running (development) ## Running (development)

5
gen-css Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh -x
cp -a node_modules/uswds/dist/fonts static/
sass scss/atat.scss > static/assets/atat.css

6848
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

15
package.json Normal file
View File

@ -0,0 +1,15 @@
{
"name": "atst",
"version": "1.0.0",
"description": "ATST Stateless Services",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT",
"dependencies": {
"npm": "^6.0.1",
"uswds": "^1.6.3"
}
}

2
scss/atat.scss Normal file
View File

@ -0,0 +1,2 @@
@import 'variables.scss';
@import '../node_modules/uswds/src/stylesheets/uswds.scss';

1
scss/variables.scss Normal file
View File

@ -0,0 +1 @@

View File

@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% block title %}JEDI{% end %}</title> <title>{% block title %}JEDI{% end %}</title>
<link rel="stylesheet" href="static/uswds-1.6.3/css/uswds.min.css"> <link rel="stylesheet" href="static/assets/atat.css">
</head> </head>
<body> <body>
<header class="usa-header usa-header-basic" role="banner"> <header class="usa-header usa-header-basic" role="banner">