Comment on page
Core & Plugin Development
First, clone the necessary repositories:
$ git clone [email protected]:cortex-cms/cortex-starter.git
$ git clone [email protected]:cortex-cms/cortex.git
$ git clone [email protected]:cortex-cms/cortex-plugins-core.git
$ git clone your-plugin-repo-here.git
Use
pwd
to retrieve the fully qualified path for each engine, then modify each of the following files to point to the relevant local dependencies:cortex/Gemfile
cortex/spec/dummy/package.json
cortex-starter/Gemfile
cortex-starter/package.json
For example:
cortex-starter/Gemfile
# Cortex
gem 'cortex', path: '/home/testuser/repos/cortex'
gem 'cortex-plugins-core', path: '/home/testuser/repos/cortex-plugins-core'
cortex-starter/package.json
"cortex": "/home/testuser/repos/cortex",
"cortex-plugins-core": "/home/testuser/repos/cortex-plugins-core"
Lastly, re-install dependencies in the relevant projects.
Initialize the dummy application:
$ cd cortex
$ RAILS_ENV=test spec/dummy/bin/setup
To run Ruby and JavaScript specs, utilize:
$ RAILS_ENV=test bin/rails app:spec
$ RAILS_ENV=test bin/rails app:spec:javascript
Last modified 5yr ago