Core & Plugin Development

Local Development Setup

First, clone the necessary repositories:
1
$ git clone [email protected]:cortex-cms/cortex-starter.git
2
$ git clone [email protected]:cortex-cms/cortex.git
3
$ git clone [email protected]:cortex-cms/cortex-plugins-core.git
4
$ git clone your-plugin-repo-here.git
Copied!
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
1
# Cortex
2
gem 'cortex', path: '/home/testuser/repos/cortex'
3
gem 'cortex-plugins-core', path: '/home/testuser/repos/cortex-plugins-core'
Copied!
cortex-starter/package.json
1
"cortex": "/home/testuser/repos/cortex",
2
"cortex-plugins-core": "/home/testuser/repos/cortex-plugins-core"
Copied!
Lastly, re-install dependencies in the relevant projects.

Running Test Suite

Initialize the dummy application:
1
$ cd cortex
2
$ RAILS_ENV=test spec/dummy/bin/setup
Copied!
To run Ruby and JavaScript specs, utilize:
1
$ RAILS_ENV=test bin/rails app:spec
2
$ RAILS_ENV=test bin/rails app:spec:javascript
Copied!
Last modified 3yr ago