Skip to content

Commit

Permalink
Update docker-compose.yml for new image
Browse files Browse the repository at this point in the history
Delete Dockerfile
Set proper scss directory for scss-lint
Set :scss_lint to lint proper dummy directory
Add dockerignore file for not add certain files/directories to shared volume
  • Loading branch information
dylangrafmyre committed Oct 17, 2015
1 parent 910f5fb commit c07d23d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage/
docker-compose.yml
3 changes: 1 addition & 2 deletions .scss-lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# See http://sass-guidelin.es/#zeros

scss_files:
- 'app/assets/stylesheets/**/*.scss'
- 'client/assets/stylesheets/**/*.scss'
- 'spec/dummy/app/assets/stylesheets/**/*.scss'

linters:
# BangFormat:
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace :lint do

desc "Run scss-lint as shell"
task :scss do
sh "scss-lint ."
sh "scss-lint spec/dummy/app/assets/stylesheets/"
end

desc "Run eslint as shell"
Expand All @@ -64,7 +64,7 @@ namespace :lint do
end

desc "Run all eslint, jscs, rubocop linters. Skip ruby-lint and scss"
task lint: [:eslint, :jscs, :rubocop] do
task lint: [:eslint, :jscs, :rubocop, :scss] do
puts "Completed all linting"
end
end
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
lint:
build: .
image: dylangrafmyre/docker-lint
working_dir: /app/
volumes:
- '.:/app/'

0 comments on commit c07d23d

Please sign in to comment.