-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from jazzband/feature/isolate-js
Isolate cookiebar module JS
- Loading branch information
Showing
15 changed files
with
991 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
|
||
name: 'Build JS' | ||
description: 'Compile the TS source code' | ||
|
||
inputs: | ||
npm-package: | ||
description: Build NPM package | ||
required: false | ||
default: 'false' | ||
|
||
django-staticfiles: | ||
description: Bundle Django staticfiles | ||
required: false | ||
default: 'false' | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'js/.nvmrc' | ||
cache: npm | ||
cache-dependency-path: js/package-lock.json | ||
# Blocked by https://github.com/jazzband/django-cookie-consent/issues/120 | ||
# registry-url: 'https://registry.npmjs.org' | ||
# scope: '@jazzband' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
shell: bash | ||
working-directory: js | ||
|
||
- name: Build NPM package | ||
if: ${{ inputs.npm-package == 'true' }} | ||
run: npm run build | ||
shell: bash | ||
working-directory: js | ||
|
||
- name: Build Django assets package | ||
if: ${{ inputs.django-staticfiles == 'true' }} | ||
run: npm run build:django-static | ||
shell: bash | ||
working-directory: js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
203 changes: 0 additions & 203 deletions
203
cookie_consent/static/cookie_consent/cookiebar.module.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.