Skip to content

Commit 2233dc9

Browse files
committed
chore(npm): publish as cortex-cms rather than cortex
1 parent e0b079f commit 2233dc9

File tree

9 files changed

+561
-780
lines changed

9 files changed

+561
-780
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
cortex (0.1.0)
4+
cortex (0.1.1)
55
addressable (~> 2.5.2)
66
awesome_nested_set (~> 3.1.4)
77
breadcrumbs_on_rails (~> 3.0.1)

app/views/layouts/cortex/application.html.haml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
= title
99
= favicon_link_tag 'cortex/favicon.ico'
1010
= stylesheet_link_tag :application, {media: 'all'}
11-
// = stylesheet_pack_tag 'cortex-bundle', {media: 'all'} # Enable once assets migrated
11+
// = stylesheet_pack_tag 'cortex_cms', {media: 'all'} # Enable once assets migrated
1212
= stylesheet_link_tag 'https://fonts.googleapis.com/icon?family=Material+Icons'
1313
= csrf_meta_tags
1414
%body
@@ -23,8 +23,8 @@
2323
= yield
2424
= render 'cortex/partials/flash'
2525

26-
%script{src: '//cdn.ckeditor.com/4.8.0/standard-all/ckeditor.js', type: 'text/javascript'}
26+
%script{src: '//cdn.ckeditor.com/4.10.0/standard-all/ckeditor.js', type: 'text/javascript'}
2727
= javascript_include_tag :application
28-
= javascript_pack_tag 'cortex'
28+
= javascript_pack_tag 'cortex_cms'
2929
= render 'cortex/partials/trackers/google_analytics' if extra_config[:google_analytics_id?]
3030
= render 'cortex/partials/trackers/qualtrics' if extra_config[:qualtrics_id?]

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "cortex",
3-
"version": "0.1.0",
2+
"name": "cortex-cms",
3+
"version": "0.1.2",
44
"main": "node_package/lib/index.js",
55
"homepage": "https://github.com/cortex-cms/cortex",
66
"repository": {

spec/dummy/app/javascript/packs/cortex.jsx

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import 'cortex-cms';

spec/dummy/bin/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ chdir APP_ROOT do
2525
system! 'bin/rails db:setup'
2626

2727
puts "\n== Seed initial ContentType/Decorator data =="
28-
system! 'bin/rails content_types:seed'
28+
system! 'bin/rails cortex_starter:content_types:seed'
2929

3030
puts "\n== Rebuild ElasticSearch indices =="
3131
system! 'bin/rails cortex:rebuild_indexes'
Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
Bundler.require(:default, Rails.env)
22

3-
namespace :content_types do
4-
desc 'Re-Seeds (will wipe existing ContentTypes!) CortexStarter with Core Custom Content Seed Data'
5-
task reseed: :environment do
6-
Rake::Task['content_types:clear'].execute
7-
Rake::Task['content_types:seed'].execute
8-
end
3+
namespace :cortex_starter do
4+
namespace :content_types do
5+
desc 'Re-Seeds (will wipe existing ContentTypes!) CortexStarter with Core Custom Content Seed Data'
6+
task reseed: :environment do
7+
Rake::Task['cortex_starter:content_types:clear'].execute
8+
Rake::Task['cortex_starter:content_types:seed'].execute
9+
end
910

10-
desc 'Seeds CortexStarter with Core Custom Content Seed Data'
11-
task seed: :environment do
12-
Rake::Task['cortex:core:media:seed'].execute
13-
Rake::Task['employer:blog:seed'].execute
14-
end
11+
desc 'Seeds CortexStarter with Core Custom Content Seed Data'
12+
task seed: :environment do
13+
Rake::Task['cortex:core:media:seed'].execute
14+
Rake::Task['employer:blog:seed'].execute
15+
end
1516

16-
desc 'Clear Existing Custom Content Data From DB'
17-
task clear: :environment do
18-
puts "Clearing ContentTypes..."
19-
Cortex::ContentType.destroy_all
20-
puts "Clearing Fields..."
21-
Cortex::Field.destroy_all
22-
puts "Clearing ContentItems..."
23-
Cortex::ContentItem.destroy_all
24-
puts "Clearing FieldItems..."
25-
Cortex::FieldItem.destroy_all
26-
puts "Clearing ContentableDecorators..."
27-
Cortex::ContentableDecorator.destroy_all
28-
puts "Clearing Decorators..."
29-
Cortex::Decorator.destroy_all
17+
desc 'Clear Existing Custom Content Data From DB'
18+
task clear: :environment do
19+
puts "Clearing ContentTypes..."
20+
Cortex::ContentType.destroy_all
21+
puts "Clearing Fields..."
22+
Cortex::Field.destroy_all
23+
puts "Clearing ContentItems..."
24+
Cortex::ContentItem.destroy_all
25+
puts "Clearing FieldItems..."
26+
Cortex::FieldItem.destroy_all
27+
puts "Clearing ContentableDecorators..."
28+
Cortex::ContentableDecorator.destroy_all
29+
puts "Clearing Decorators..."
30+
Cortex::Decorator.destroy_all
31+
end
3032
end
3133
end

spec/dummy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"redux": "^3.7.2",
1414
"redux-logger": "^3.0.6",
1515

16-
"cortex": "/Users/atharp/Repos/cortex",
16+
"cortex-cms": "0.1.2",
1717
"cortex-plugins-core": "2.0.1"
1818
},
1919
"devDependencies": {

0 commit comments

Comments
 (0)