Skip to content

Commit

Permalink
build: use parcel for building web resources
Browse files Browse the repository at this point in the history
  • Loading branch information
tynn committed Apr 23, 2023
1 parent 37ae620 commit debc184
Show file tree
Hide file tree
Showing 46 changed files with 209 additions and 556 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ jobs:
- run: mix format --check-formatted
- run: mix test
- run: mix coveralls

deploy:
needs: build
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/deploy.yml
secrets: inherit
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy

on: workflow_dispatch
on: [workflow_call, workflow_dispatch]


jobs:
deploy:
Expand All @@ -12,7 +13,8 @@ jobs:
env:
USERNAME: ${{ secrets.GIGALIXIR_USERNAME }}
PASSWORD: ${{ secrets.GIGALIXIR_PASSWORD }}
- run: |
- name: Run git push -f release HEAD:master
run: |
git config --global user.name $GITHUB_ACTOR
git config --global user.email [email protected]
git checkout --orphan deploy
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.parcel-cache/
node_modules/
/_build
/cover
/deps
/doc
/bin/.gradle/
/bin/build/
package-lock.json
erl_crash.dump
*.ez
.DS_Store
75 changes: 0 additions & 75 deletions etc/favicon.svg

This file was deleted.

54 changes: 0 additions & 54 deletions etc/page.js

This file was deleted.

15 changes: 0 additions & 15 deletions etc/style.css

This file was deleted.

17 changes: 2 additions & 15 deletions lib/asapi.ex
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# asapi/lv
# Copyright (C) 2017 tynn
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Copyright 2017 Christian Schmitz
# SPDX-License-Identifier: AGPL-3.0-or-later

defmodule Asapi do
@loading "…"
Expand Down
17 changes: 2 additions & 15 deletions lib/asapi/aar.ex
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# asapi/lv
# Copyright (C) 2017 tynn
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Copyright 2017 Christian Schmitz
# SPDX-License-Identifier: AGPL-3.0-or-later

defmodule Asapi.Aar do
alias Asapi.Aar
Expand Down
17 changes: 2 additions & 15 deletions lib/asapi/ext.ex
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# asapi/lv
# Copyright (C) 2017 tynn
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Copyright 2017 Christian Schmitz
# SPDX-License-Identifier: AGPL-3.0-or-later

defmodule Asapi.Ext do
@day :timer.hours(24)
Expand Down
17 changes: 2 additions & 15 deletions lib/asapi/ext/data.ex
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# asapi/lv
# Copyright (C) 2017 tynn
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Copyright 2017 Christian Schmitz
# SPDX-License-Identifier: AGPL-3.0-or-later

defmodule Asapi.Ext.Data do
alias Asapi.Aar
Expand Down
17 changes: 2 additions & 15 deletions lib/asapi/ext/repo.ex
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# asapi/lv
# Copyright (C) 2017 tynn
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Copyright 2017 Christian Schmitz
# SPDX-License-Identifier: AGPL-3.0-or-later

defmodule Asapi.Ext.Repo do
alias Asapi.Ext.Version
Expand Down
17 changes: 2 additions & 15 deletions lib/asapi/ext/version.ex
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# asapi/lv
# Copyright (C) 2017 tynn
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Copyright 2017 Christian Schmitz
# SPDX-License-Identifier: AGPL-3.0-or-later

defmodule Asapi.Ext.Version do
alias Asapi.Ext.Version
Expand Down
17 changes: 2 additions & 15 deletions lib/asapi/library.ex
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# asapi/lv
# Copyright (C) 2017 tynn
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Copyright 2017 Christian Schmitz
# SPDX-License-Identifier: AGPL-3.0-or-later

defmodule Asapi.Library do
alias Plug.Conn
Expand Down
17 changes: 2 additions & 15 deletions lib/asapi/lv.ex
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# asapi/lv
# Copyright (C) 2017 tynn
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Copyright 2017 Christian Schmitz
# SPDX-License-Identifier: AGPL-3.0-or-later

defmodule Asapi.Lv do
alias Plug.Conn
Expand Down
17 changes: 2 additions & 15 deletions lib/asapi/reload.ex
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# asapi/lv
# Copyright (C) 2017 tynn
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Copyright 2017 Christian Schmitz
# SPDX-License-Identifier: AGPL-3.0-or-later

defmodule Asapi.Reload do
require Logger
Expand Down
17 changes: 2 additions & 15 deletions lib/asapi/router.ex
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
# asapi/lv
# Copyright (C) 2017 tynn
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Copyright 2017 Christian Schmitz
# SPDX-License-Identifier: AGPL-3.0-or-later

defmodule Asapi.Router do
alias Asapi.Aar
Expand Down
Loading

0 comments on commit debc184

Please sign in to comment.