diff --git a/README.md b/README.md index bca98bbd..58b6c8dd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,14 @@ -# node.js and npm install +# unicms-editorial-board + +### Use as is in production + +``` +pip install unicms-editorial-board +``` + +### Development + +Install node.js and npm Purge old installation ``` @@ -25,11 +35,14 @@ node -v npm -v ``` -# unicms-editorial-board - +Install packages ``` -pip install unicms-editorial-board -python3 manage.py install_board +cd /unicms-editorial-board/src/unicms_editorial_board/unicms_editorial_board_vue +npm install ``` +Edit files and build +``` +npm run build +``` diff --git a/setup.py b/setup.py index 707901f2..9b21a0a2 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( name='unicms-editorial-board', - version='0.2.4', + version='0.4.0', packages=[PKG_NAME], package_dir={PKG_NAME: f"{SRC_FOLDER}/{PKG_NAME}"}, @@ -47,6 +47,5 @@ ], install_requires=[ 'django>=2.0,<4.0', - 'pynpm' ], ) diff --git a/src/unicms_editorial_board/management/commands/install_board.py b/src/unicms_editorial_board/management/commands/install_board.py deleted file mode 100644 index 75de7a54..00000000 --- a/src/unicms_editorial_board/management/commands/install_board.py +++ /dev/null @@ -1,13 +0,0 @@ -import site - -from django.core.management.base import BaseCommand -from pynpm import NPMPackage - - -class Command(BaseCommand): - help = 'Install and build NPM packages' - - def handle(self, *args, **options): - pkg = NPMPackage(f'{site.getsitepackages()[0]}/unicms_editorial_board/unicms_editorial_board_vue/package.json') - pkg.install() - pkg.run_script('build', '--report')