Skip to content

Commit

Permalink
replaces calmjs and setuptools with npm
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Nov 29, 2023
1 parent 18a60fd commit e4e8aab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
6 changes: 2 additions & 4 deletions install.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ that we are using to set up Debian servers for OpenAtlas installations.
sudo apt install postgresql postgresql-15-postgis-3 postgresql-15-postgis-3-scripts

### gettext, pip, npm
sudo apt install gettext npm python3-pip
sudo apt install gettext npm

## Installation
### Files
Expand All @@ -50,10 +50,8 @@ adapt them accordingly as regular user:
### Frontend libraries
Execute this lines as regular user too:

pip3 install calmjs
cd openatlas/static
pip3 install -e ./
~/.local/bin/calmjs npm --install openatlas
npm install

### Database
Executed statements below as **postgres** user.
Expand Down
16 changes: 5 additions & 11 deletions openatlas/static/setup.py → openatlas/static/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from setuptools import setup

package_json = {
{
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.4",
"@mapbox/leaflet-pip": "^1.1.0",
Expand Down Expand Up @@ -28,12 +26,8 @@
"leaflet": "^1.7.1",
"mirador": "^3.3.0",
"save-svg-as-png": "^1.4.17",
"tinymce": "^5.10.3",
}
"tinymce": "^5.10.3"
},
"devDependencies": {},
"name": "openatlas"
}

setup(
name='openatlas',
setup_requires=['calmjs'],
package_json=package_json
)

0 comments on commit e4e8aab

Please sign in to comment.