Skip to content

Commit

Permalink
Move public dir out of lib
Browse files Browse the repository at this point in the history
It never belonged there in the first place, and I can't even remember how/why
that happened.
  • Loading branch information
kytrinyx committed Nov 22, 2015
1 parent 01bad98 commit a63ce72
Show file tree
Hide file tree
Showing 117 changed files with 48 additions and 9 deletions.
10 changes: 5 additions & 5 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
require 'font-awesome-sass'

# Set this to the root of your project when deployed:
http_path = "lib/app/"
css_dir = "lib/app/public/css"
sass_dir = "lib/app/public/sass"
images_dir = "lib/app/public/img"
fonts_dir = "lib/app/public/fonts"
http_path = "."
css_dir = "public/css"
sass_dir = "public/sass"
images_dir = "public/img"
fonts_dir = "public/fonts"

relative_assets = true

Expand Down
2 changes: 1 addition & 1 deletion frontend/config/application.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = require(process.env['LINEMAN_MAIN']).config.extend('application
copy:
dev:
files: [expand: true, cwd: 'generated', src: ['css/**', 'js/**', '!**/spec.js',
'!**/*.less*', '!**/*.coffee*', '!**/*.*.map'], dest: '../lib/app/public' ]
'!**/*.less*', '!**/*.coffee*', '!**/*.*.map'], dest: '../public' ]

# configuration for grunt-ngmin, this happens _after_ concat once, which is the ngmin ideal :)
ngmin: {
Expand Down
1 change: 1 addition & 0 deletions lib/app/routes/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module ExercismWeb
module Routes
class Core < Sinatra::Application
configure do
set :public_folder, Exercism.relative_to_root('public')
set :root, Exercism.relative_to_root('lib', 'app')
set :environment, ENV.fetch('RACK_ENV') { :development }.to_sym
set :method_override, true
Expand Down
2 changes: 1 addition & 1 deletion lineman.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"type": "file",
"location": "frontend",
"installToPath": "lib/app/public",
"installToPath": "public",
"filesToDeploy" : ["js/*.js", "css/*.css"]
}
]
Expand Down
1 change: 1 addition & 0 deletions public/css/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/css/base/components/beta_banner.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/css/base/components/brand.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/css/base/components/comment.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/css/base/components/exercise.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.completed-exercise{line-height:1.6em}.completed-exercise a:after{content:", "}.completed-exercise:last-child a:after{content:"."}
1 change: 1 addition & 0 deletions public/css/base/components/import.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/css/base/components/inbox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nav.inbox li{padding-left:50px}nav.inbox li a .total-count{color:#777;float:right}nav.inbox li .badge{position:absolute;top:0;left:0}
1 change: 1 addition & 0 deletions public/css/base/components/info.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/css/base/components/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a63ce72

Please sign in to comment.