Skip to content

Commit

Permalink
chore(npm): publish as cortex-cms rather than cortex
Browse files Browse the repository at this point in the history
  • Loading branch information
toastercup committed Aug 8, 2018
1 parent e0b079f commit 2233dc9
Show file tree
Hide file tree
Showing 9 changed files with 561 additions and 780 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
cortex (0.1.0)
cortex (0.1.1)
addressable (~> 2.5.2)
awesome_nested_set (~> 3.1.4)
breadcrumbs_on_rails (~> 3.0.1)
Expand Down
6 changes: 3 additions & 3 deletions app/views/layouts/cortex/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
= title
= favicon_link_tag 'cortex/favicon.ico'
= stylesheet_link_tag :application, {media: 'all'}
// = stylesheet_pack_tag 'cortex-bundle', {media: 'all'} # Enable once assets migrated
// = stylesheet_pack_tag 'cortex_cms', {media: 'all'} # Enable once assets migrated
= stylesheet_link_tag 'https://fonts.googleapis.com/icon?family=Material+Icons'
= csrf_meta_tags
%body
Expand All @@ -23,8 +23,8 @@
= yield
= render 'cortex/partials/flash'

%script{src: '//cdn.ckeditor.com/4.8.0/standard-all/ckeditor.js', type: 'text/javascript'}
%script{src: '//cdn.ckeditor.com/4.10.0/standard-all/ckeditor.js', type: 'text/javascript'}
= javascript_include_tag :application
= javascript_pack_tag 'cortex'
= javascript_pack_tag 'cortex_cms'
= render 'cortex/partials/trackers/google_analytics' if extra_config[:google_analytics_id?]
= render 'cortex/partials/trackers/qualtrics' if extra_config[:qualtrics_id?]
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cortex",
"version": "0.1.0",
"name": "cortex-cms",
"version": "0.1.2",
"main": "node_package/lib/index.js",
"homepage": "https://github.com/cortex-cms/cortex",
"repository": {
Expand Down
1 change: 0 additions & 1 deletion spec/dummy/app/javascript/packs/cortex.jsx

This file was deleted.

1 change: 1 addition & 0 deletions spec/dummy/app/javascript/packs/cortex_cms.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'cortex-cms';
2 changes: 1 addition & 1 deletion spec/dummy/bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ chdir APP_ROOT do
system! 'bin/rails db:setup'

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

puts "\n== Rebuild ElasticSearch indices =="
system! 'bin/rails cortex:rebuild_indexes'
Expand Down
52 changes: 27 additions & 25 deletions spec/dummy/lib/tasks/content_types_tasks.rake
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
Bundler.require(:default, Rails.env)

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

desc 'Seeds CortexStarter with Core Custom Content Seed Data'
task seed: :environment do
Rake::Task['cortex:core:media:seed'].execute
Rake::Task['employer:blog:seed'].execute
end
desc 'Seeds CortexStarter with Core Custom Content Seed Data'
task seed: :environment do
Rake::Task['cortex:core:media:seed'].execute
Rake::Task['employer:blog:seed'].execute
end

desc 'Clear Existing Custom Content Data From DB'
task clear: :environment do
puts "Clearing ContentTypes..."
Cortex::ContentType.destroy_all
puts "Clearing Fields..."
Cortex::Field.destroy_all
puts "Clearing ContentItems..."
Cortex::ContentItem.destroy_all
puts "Clearing FieldItems..."
Cortex::FieldItem.destroy_all
puts "Clearing ContentableDecorators..."
Cortex::ContentableDecorator.destroy_all
puts "Clearing Decorators..."
Cortex::Decorator.destroy_all
desc 'Clear Existing Custom Content Data From DB'
task clear: :environment do
puts "Clearing ContentTypes..."
Cortex::ContentType.destroy_all
puts "Clearing Fields..."
Cortex::Field.destroy_all
puts "Clearing ContentItems..."
Cortex::ContentItem.destroy_all
puts "Clearing FieldItems..."
Cortex::FieldItem.destroy_all
puts "Clearing ContentableDecorators..."
Cortex::ContentableDecorator.destroy_all
puts "Clearing Decorators..."
Cortex::Decorator.destroy_all
end
end
end
2 changes: 1 addition & 1 deletion spec/dummy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"redux": "^3.7.2",
"redux-logger": "^3.0.6",

"cortex": "/Users/atharp/Repos/cortex",
"cortex-cms": "0.1.2",
"cortex-plugins-core": "2.0.1"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 2233dc9

Please sign in to comment.