1
Fork 0

Init node

This commit is contained in:
Jake Howard 2020-04-12 15:51:48 +01:00
parent f3c4a6c135
commit d850cd6aac
Signed by: jake
GPG Key ID: 57AFB45680EDD477
4 changed files with 29 additions and 0 deletions

View File

@ -9,6 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
@ -17,6 +18,16 @@ jobs:
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }}
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '10.x'
- uses: actions/cache@v1
with:
path: $HOME/.npm
key: npm-${{ hashFiles('package-lock.json') }}
- name: Install
run: ./scripts/setup.sh
- name: Run tests

5
package-lock.json generated Normal file
View File

@ -0,0 +1,5 @@
{
"name": "website",
"version": "1.0.0",
"lockfileVersion": 1
}

11
package.json Normal file
View File

@ -0,0 +1,11 @@
{
"name": "website",
"version": "1.0.0",
"private": true,
"description": "Another website, really?",
"repository": {
"type": "git",
"url": "git+https://github.com/RealOrangeOne/website.git"
},
"homepage": "https://github.com/RealOrangeOne/website#readme"
}

View File

@ -13,4 +13,6 @@ then
pip install -r dev-requirements.txt
fi
npm ci
./manage.py collectstatic --noinput