make source git pull freindly, no need to copy files around when updating

This commit is contained in:
Sam 2013-04-15 15:07:40 +10:00
parent ea3c6d2e6f
commit f314e7a89c
6 changed files with 50 additions and 39 deletions

View file

@ -13,43 +13,21 @@
//= require ./external/jquery-1.8.2.js
//= require ./external/jquery.ui.widget.js
//= require ./external/handlebars-1.0.rc.3.js
//= require ./external/ember.js
// Pagedown customizations
//= require ./pagedown_custom.js
// The rest of the externals
//= require_tree ./external
//= require ./discourse/helpers/i18n_helpers
//= require ./discourse
//= require ./locales/date_locales.js
// Stuff we need to load first
//= require_tree ./discourse/mixins
//= require ./discourse/views/view
//= require ./discourse/components/debounce
//= require ./discourse/controllers/controller
//= require ./discourse/controllers/object_controller
//= require ./discourse/views/modal/modal_body_view
//= require ./discourse/models/model
//= require ./discourse/routes/discourse_route
//= require ./discourse/routes/discourse_restricted_user_route
//= require_tree ./discourse/controllers
//= require_tree ./discourse/components
//= require_tree ./discourse/models
//= require_tree ./discourse/views
//= require_tree ./discourse/helpers
//= require_tree ./discourse/templates
//= require_tree ./discourse/routes
//= require ./external/browser-update.js
<%
# Include javascripts
DiscoursePluginRegistry.javascripts.each do |js|
if Rails.env.development?
require_asset ("./external_development/ember.js")
require_asset ("./external_development/sugar-1.3.5.js")
require_asset ("./external_development/group-helper.js")
else
require_asset ("./external_production/ember.js")
require_asset ("./external_production/sugar-1.3.5.js")
require_asset ("./external_production/group-helper.js")
end
require_asset ("./main_include.js")
# Include plugin javascripts
DiscoursePluginRegistry.javascripts.each do |js|
require_asset(js)
end
end
%>

View file

@ -0,0 +1,31 @@
// Pagedown customizations
//= require ./pagedown_custom.js
// The rest of the externals
//= require_tree ./external
//= require ./discourse/helpers/i18n_helpers
//= require ./discourse
//= require ./locales/date_locales.js
// Stuff we need to load first
//= require_tree ./discourse/mixins
//= require ./discourse/views/view
//= require ./discourse/components/debounce
//= require ./discourse/controllers/controller
//= require ./discourse/controllers/object_controller
//= require ./discourse/views/modal/modal_body_view
//= require ./discourse/models/model
//= require ./discourse/routes/discourse_route
//= require ./discourse/routes/discourse_restricted_user_route
//= require_tree ./discourse/controllers
//= require_tree ./discourse/components
//= require_tree ./discourse/models
//= require_tree ./discourse/views
//= require_tree ./discourse/helpers
//= require_tree ./discourse/templates
//= require_tree ./discourse/routes
//= require ./external/browser-update.js

View file

@ -10,7 +10,9 @@
//= require ../../app/assets/javascripts/external/jquery.ui.widget.js
//= require ../../app/assets/javascripts/external/handlebars-1.0.rc.3.js
//= require ../../app/assets/javascripts/external/ember.js
//= require ../../app/assets/javascripts/external_production/ember.js
//= require ../../app/assets/javascripts/external_production/sugar-1.3.5.js
//= require ../../app/assets/javascripts/external_production/group-helper.js
// Pagedown customizations
//= require ../../app/assets/javascripts/pagedown_custom.js