-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(npm): publish as cortex-cms rather than cortex
- Loading branch information
1 parent
e0b079f
commit 2233dc9
Showing
9 changed files
with
561 additions
and
780 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import 'cortex-cms'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.