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: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Set up Python 3.8 - name: Set up Python 3.8
uses: actions/setup-python@v1 uses: actions/setup-python@v1
with: with:
@ -17,6 +18,16 @@ jobs:
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }} 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 - name: Install
run: ./scripts/setup.sh run: ./scripts/setup.sh
- name: Run tests - 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 pip install -r dev-requirements.txt
fi fi
npm ci
./manage.py collectstatic --noinput ./manage.py collectstatic --noinput