Intellij IDEA plugin demos with a simple enterprise repository.
Add a property named idea_local_path
to your ~/.gradle/gradle.properties
file. The value of this property is the absolute path of local IDEA home directory. This path is used to config IDEA sandbox to avoid download IDEA zip file from remote site to save your time.
// ~/.gradle/gradle.properties
idea_local_path=/path/to/idea-IC-172.xxxx.xx
How to import project and build plugins?
-
<actions> <!-- Add your actions here --> <group id="MyPlugin.SampleMenu" text="_Sample Menu" description="Sample menu"> <add-to-group group-id="MainMenu" anchor="last" /> <!-- icon of action should be placed in a top-level package called icons --> <action id="MyPlugin.MyAction" class="com.spreadst.devtools.demos.action.MyActionClass" text="My_Item" description="Description of the action item" icon="Icons.AndroidRobot"/> <action id="MyPlugin.OpenMainEntry" class="com.spreadst.devtools.android.editors.mainentry.OpenMainEntryAction" text="_Main Entry" description="Open tools main entry" icon="Icons.MainEntry"/> </group> </actions>
- Python 2.7.10
- Virtualenv 15.1.0
- Django 1.11.4
- Node 6.11.3
- yarn 1.0.1
cd enterprise-repo
virtualenv env
source env/bin/activate
pip install Django==1.11.4
pip install djangorestframework
cd enterprepo
python manage.py migrate
Note:
- only initialize once.
- previous global installed Django need uninstall before install Django in current virtual python environment
- no space allowed in path when install Django or it will fail
- run
python manage.py createsuperuser
to create super userConsult virtualenv for more information.
cd enterprise-repo
cd frontend
yarn install
./deploy.sh
cd enterprise-repo/frontend
./deploy.sh
cd enterprise-repo
source env/bin/activate
cd enterprepo
python manage.py runserver
Note:
- no need
source env/bin/activate
if you already activate the virtual environment.- you can navigate to
http://127.0.0.1:8000
after start the test server.
By default you should use "http://127.0.0.1:8000/pluginrepo/" as custom repository url.