Skip to content

Commit d87a662

Browse files
author
David Heinemeier Hansson
committed
First
0 parents  commit d87a662

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+173324
-0
lines changed

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/.bundle/
2+
/doc/
3+
/log/*.log
4+
/pkg/
5+
/tmp/
6+
/test/dummy/db/*.sqlite3
7+
/test/dummy/db/*.sqlite3-*
8+
/test/dummy/log/*.log
9+
/test/dummy/storage/
10+
/test/dummy/tmp/
11+
.byebug_history
12+
*.gem

Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
gemspec
4+
5+
gem "sqlite3"
6+
gem "byebug"

Gemfile.lock

+150
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
PATH
2+
remote: .
3+
specs:
4+
tailwindcss-rails (0.1.2)
5+
rails (>= 6.0.0)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
actioncable (6.1.1)
11+
actionpack (= 6.1.1)
12+
activesupport (= 6.1.1)
13+
nio4r (~> 2.0)
14+
websocket-driver (>= 0.6.1)
15+
actionmailbox (6.1.1)
16+
actionpack (= 6.1.1)
17+
activejob (= 6.1.1)
18+
activerecord (= 6.1.1)
19+
activestorage (= 6.1.1)
20+
activesupport (= 6.1.1)
21+
mail (>= 2.7.1)
22+
actionmailer (6.1.1)
23+
actionpack (= 6.1.1)
24+
actionview (= 6.1.1)
25+
activejob (= 6.1.1)
26+
activesupport (= 6.1.1)
27+
mail (~> 2.5, >= 2.5.4)
28+
rails-dom-testing (~> 2.0)
29+
actionpack (6.1.1)
30+
actionview (= 6.1.1)
31+
activesupport (= 6.1.1)
32+
rack (~> 2.0, >= 2.0.9)
33+
rack-test (>= 0.6.3)
34+
rails-dom-testing (~> 2.0)
35+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
36+
actiontext (6.1.1)
37+
actionpack (= 6.1.1)
38+
activerecord (= 6.1.1)
39+
activestorage (= 6.1.1)
40+
activesupport (= 6.1.1)
41+
nokogiri (>= 1.8.5)
42+
actionview (6.1.1)
43+
activesupport (= 6.1.1)
44+
builder (~> 3.1)
45+
erubi (~> 1.4)
46+
rails-dom-testing (~> 2.0)
47+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
48+
activejob (6.1.1)
49+
activesupport (= 6.1.1)
50+
globalid (>= 0.3.6)
51+
activemodel (6.1.1)
52+
activesupport (= 6.1.1)
53+
activerecord (6.1.1)
54+
activemodel (= 6.1.1)
55+
activesupport (= 6.1.1)
56+
activestorage (6.1.1)
57+
actionpack (= 6.1.1)
58+
activejob (= 6.1.1)
59+
activerecord (= 6.1.1)
60+
activesupport (= 6.1.1)
61+
marcel (~> 0.3.1)
62+
mimemagic (~> 0.3.2)
63+
activesupport (6.1.1)
64+
concurrent-ruby (~> 1.0, >= 1.0.2)
65+
i18n (>= 1.6, < 2)
66+
minitest (>= 5.1)
67+
tzinfo (~> 2.0)
68+
zeitwerk (~> 2.3)
69+
builder (3.2.4)
70+
byebug (11.1.3)
71+
concurrent-ruby (1.1.7)
72+
crass (1.0.6)
73+
erubi (1.10.0)
74+
globalid (0.4.2)
75+
activesupport (>= 4.2.0)
76+
i18n (1.8.7)
77+
concurrent-ruby (~> 1.0)
78+
loofah (2.8.0)
79+
crass (~> 1.0.2)
80+
nokogiri (>= 1.5.9)
81+
mail (2.7.1)
82+
mini_mime (>= 0.1.1)
83+
marcel (0.3.3)
84+
mimemagic (~> 0.3.2)
85+
method_source (1.0.0)
86+
mimemagic (0.3.5)
87+
mini_mime (1.0.2)
88+
mini_portile2 (2.5.0)
89+
minitest (5.14.3)
90+
nio4r (2.5.4)
91+
nokogiri (1.11.1)
92+
mini_portile2 (~> 2.5.0)
93+
racc (~> 1.4)
94+
racc (1.5.2)
95+
rack (2.2.3)
96+
rack-test (1.1.0)
97+
rack (>= 1.0, < 3)
98+
rails (6.1.1)
99+
actioncable (= 6.1.1)
100+
actionmailbox (= 6.1.1)
101+
actionmailer (= 6.1.1)
102+
actionpack (= 6.1.1)
103+
actiontext (= 6.1.1)
104+
actionview (= 6.1.1)
105+
activejob (= 6.1.1)
106+
activemodel (= 6.1.1)
107+
activerecord (= 6.1.1)
108+
activestorage (= 6.1.1)
109+
activesupport (= 6.1.1)
110+
bundler (>= 1.15.0)
111+
railties (= 6.1.1)
112+
sprockets-rails (>= 2.0.0)
113+
rails-dom-testing (2.0.3)
114+
activesupport (>= 4.2.0)
115+
nokogiri (>= 1.6)
116+
rails-html-sanitizer (1.3.0)
117+
loofah (~> 2.3)
118+
railties (6.1.1)
119+
actionpack (= 6.1.1)
120+
activesupport (= 6.1.1)
121+
method_source
122+
rake (>= 0.8.7)
123+
thor (~> 1.0)
124+
rake (13.0.3)
125+
sprockets (4.0.2)
126+
concurrent-ruby (~> 1.0)
127+
rack (> 1, < 3)
128+
sprockets-rails (3.2.2)
129+
actionpack (>= 4.0)
130+
activesupport (>= 4.0)
131+
sprockets (>= 3.0.0)
132+
sqlite3 (1.4.2)
133+
thor (1.0.1)
134+
tzinfo (2.0.4)
135+
concurrent-ruby (~> 1.0)
136+
websocket-driver (0.7.3)
137+
websocket-extensions (>= 0.1.0)
138+
websocket-extensions (0.1.5)
139+
zeitwerk (2.4.2)
140+
141+
PLATFORMS
142+
ruby
143+
144+
DEPENDENCIES
145+
byebug
146+
sqlite3
147+
tailwindcss-rails!
148+
149+
BUNDLED WITH
150+
2.1.4

MIT-LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2020 David Heinemeier Hansson
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Tailwind CSS for Rails
2+
3+
[Tailwindcss](https://tailwindcss.hotwire.dev) is a JavaScript framework with modest ambitions. It doesn’t seek to take over your entire front-end in fact, it’s not concerned with rendering HTML at all. Instead, it’s designed to augment your HTML with just enough behavior to make it shine. Tailwindcss pairs beautifully with Turbo to provide a complete solution for fast, compelling applications with a minimal amount of effort.
4+
5+
Tailwindcss for Rails makes it easy to use this modest framework with the asset pipeline and ES6/ESM in the browser. It uses the 7kb es-module-shim to provide [importmap](https://github.com/WICG/import-maps) support for all ES6-compatible browsers. This means you can develop and deploy without using any bundling or transpiling at all! Far less complexity, no waiting for compiling.
6+
7+
If you want to use Tailwindcss with a bundler, you should use [Webpacker](https://github.com/rails/webpacker) instead. This gem is purely intended for those who wish to use Tailwindcss with the asset pipeline using ESM in the browser.
8+
9+
## Installation
10+
11+
1. Add the `tailwind-rails` gem to your Gemfile: `gem 'tailwind-rails'`
12+
2. Run `./bin/bundle install`.
13+
3. Run `./bin/rails tailwind:install`
14+
15+
16+
## Usage
17+
18+
19+
20+
21+
## License
22+
23+
Tailwind for Rails is released under the [MIT License](https://opensource.org/licenses/MIT).

Rakefile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require "bundler/setup"
2+
3+
require "bundler/gem_tasks"
4+
5+
require "rake/testtask"
6+
7+
Rake::TestTask.new(:test) do |t|
8+
t.libs << 'test'
9+
t.pattern = 'test/**/*_test.rb'
10+
t.verbose = false
11+
end
12+
13+
task default: :test

0 commit comments

Comments
 (0)