To create a new repository using this template:
- Create a basic devcontainer either using the Codespaces default or using the file
.devcontainer/devcontainer-to-instantiate-template.json
from the base template repo - Inside that devcontainer, run
python .devcontainer/install-ci-tooling.py
to install necessary tooling to instantiate the template (you can copy/paste the script from this - Delete all files currently in the repository. Optional...but makes it easiest to avoid git conflicts.
- Run copier to instantiate the template:
copier copy --trust gh:LabAutomationAndScreening/copier-nuxt-python-intranet-app.git .
- Run
python .devcontainer/manual-setup-deps.py --optionally-check-lock
to generate the lock file(s) - Stage all files to prepare for commit (
git add .
) - Run
python3 .github/workflows/hash_git_files.py . --for-devcontainer-config-update
to update the hash for your devcontainer file - Commit the changes (optional)
- Rebuild your new devcontainer
- Navigate into the static folder:
cd "template/{% if has_backend %}backend{% endif %}/src/static/{% if frontend_uses_graphql %}static{% endif %}/graphiql"
- Confirm by viewing the source of a non-altered GraphiQL page that these are the files to download
curl https://unpkg.com/[email protected]/umd/react.production.min.js > react.production.min.js
curl https://unpkg.com/[email protected]/umd/react-dom.production.min.js > react-dom.production.min.js
curl https://unpkg.com/[email protected]/dist/js.cookie.min.js > js.cookie.min.js
curl https://unpkg.com/[email protected]/graphiql.min.css > graphiql.min.css
curl https://unpkg.com/@graphiql/[email protected]/dist/style.css > style.css
curl https://unpkg.com/[email protected]/graphiql.min.js > graphiql.min.js
curl https://unpkg.com/@graphiql/[email protected]/dist/index.umd.js > index.umd.js
This repository uses a copier template. To pull in the latest updates from the template, use the command:
copier update --trust --conflict rej --defaults