-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from rails/webpacker to shakapacker (#200)
* Replace rails/webpacker with shakapacker * Replace react-helmet with react-helmet-async * Upate README
- Loading branch information
1 parent
bb60b38
commit 4b18b48
Showing
46 changed files
with
1,849 additions
and
1,804 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ start: | |
foreman start | ||
|
||
start_client: | ||
bin/webpack-dev-server | ||
bin/shakapacker-dev-server | ||
|
||
start_server: | ||
rails server |
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,4 +1,4 @@ | ||
web: bundle exec rails s | ||
webpacker: ./bin/webpack-dev-server | ||
webpacker: ./bin/shakapacker-dev-server | ||
js: yarn build --watch | ||
css: yarn build:css --watch |
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 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 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 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,10 +1,15 @@ | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { HelmetProvider } from 'react-helmet-async'; | ||
import Donate from 'components/pages/Donate'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const container = document.getElementById('root'); | ||
const root = createRoot(container); | ||
|
||
root.render(<Donate />); | ||
root.render( | ||
<HelmetProvider> | ||
<Donate /> | ||
</HelmetProvider>, | ||
); | ||
}); |
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,10 +1,15 @@ | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { HelmetProvider } from 'react-helmet-async'; | ||
import Home from 'components/pages/Home'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const container = document.getElementById('root'); | ||
const root = createRoot(container); | ||
|
||
root.render(<Home />); | ||
root.render( | ||
<HelmetProvider> | ||
<Home /> | ||
</HelmetProvider>, | ||
); | ||
}); |
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,10 +1,15 @@ | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { HelmetProvider } from 'react-helmet-async'; | ||
import Jobs from 'components/pages/Jobs'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const container = document.getElementById('root'); | ||
const root = createRoot(container); | ||
|
||
root.render(<Jobs />); | ||
root.render( | ||
<HelmetProvider> | ||
<Jobs /> | ||
</HelmetProvider>, | ||
); | ||
}); |
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,10 +1,15 @@ | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { HelmetProvider } from 'react-helmet-async'; | ||
import JobsAuthenticate from 'components/pages/JobsAuthenticate'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const container = document.getElementById('root'); | ||
const root = createRoot(container); | ||
|
||
root.render(<JobsAuthenticate />); | ||
root.render( | ||
<HelmetProvider> | ||
<JobsAuthenticate /> | ||
</HelmetProvider>, | ||
); | ||
}); |
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,10 +1,15 @@ | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { HelmetProvider } from 'react-helmet-async'; | ||
import JoinUs from 'components/pages/JoinUs'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const container = document.getElementById('root'); | ||
const root = createRoot(container); | ||
|
||
root.render(<JoinUs />); | ||
root.render( | ||
<HelmetProvider> | ||
<JoinUs /> | ||
</HelmetProvider>, | ||
); | ||
}); |
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,10 +1,15 @@ | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { HelmetProvider } from 'react-helmet-async'; | ||
import Meetups from 'components/pages/Meetups'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const container = document.getElementById('root'); | ||
const root = createRoot(container); | ||
|
||
root.render(<Meetups />); | ||
root.render( | ||
<HelmetProvider> | ||
<Meetups /> | ||
</HelmetProvider>, | ||
); | ||
}); |
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,10 +1,15 @@ | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { HelmetProvider } from 'react-helmet-async'; | ||
import PastMeetup from '../components/pages/PastMeetup'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const container = document.getElementById('root'); | ||
const root = createRoot(container); | ||
|
||
root.render(<PastMeetup />); | ||
root.render( | ||
<HelmetProvider> | ||
<PastMeetup /> | ||
</HelmetProvider>, | ||
); | ||
}); |
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,10 +1,15 @@ | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { HelmetProvider } from 'react-helmet-async'; | ||
import SponsorUs from 'components/pages/SponsorUs'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
const container = document.getElementById('root'); | ||
const root = createRoot(container); | ||
|
||
root.render(<SponsorUs />); | ||
root.render( | ||
<HelmetProvider> | ||
<SponsorUs /> | ||
</HelmetProvider>, | ||
); | ||
}); |
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,3 +1,28 @@ | ||
@import 'tailwindcss/base'; | ||
@import 'tailwindcss/components'; | ||
@import 'tailwindcss/utilities'; | ||
|
||
|
||
body { | ||
@apply antialiased text-base; | ||
text-rendering: optimizeLegibility; | ||
font-feature-settings: 'pnum'; | ||
font-variant-numeric: proportional-nums; | ||
padding: 0; | ||
margin: 2.8rem 0 0; | ||
height: 100%; | ||
font-family: Rubik; | ||
color: #4a4a4a; | ||
font-size: 0.95rem; | ||
display: flex; | ||
flex-direction: column; | ||
min-height: 100vh; | ||
|
||
&.admin { | ||
min-height: auto; | ||
} | ||
} | ||
|
||
p a { | ||
@apply underline; | ||
} |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<%= javascript_pack_tag 'home_page' %> | ||
<%= stylesheet_pack_tag "home_page" %> | ||
<%= append_javascript_pack_tag 'home_page' %> | ||
<%= append_stylesheet_pack_tag "home_page" %> |
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,2 +1,2 @@ | ||
<%= javascript_pack_tag 'jobs' %> | ||
<%= stylesheet_pack_tag 'jobs' %> | ||
<%= append_javascript_pack_tag 'jobs' %> | ||
<%= append_stylesheet_pack_tag 'jobs' %> |
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,2 +1,2 @@ | ||
<%= javascript_pack_tag 'jobs_authenticate' %> | ||
<%= stylesheet_pack_tag 'jobs_authenticate' %> | ||
<%= append_javascript_pack_tag 'jobs_authenticate' %> | ||
<%= append_stylesheet_pack_tag 'jobs_authenticate' %> |
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,2 +1,2 @@ | ||
<%= javascript_pack_tag 'meetups' %> | ||
<%= stylesheet_pack_tag "meetups" %> | ||
<%= append_javascript_pack_tag 'meetups' %> | ||
<%= append_stylesheet_pack_tag "meetups" %> |
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,2 +1,2 @@ | ||
<%= javascript_pack_tag 'sponsor_us' %> | ||
<%= stylesheet_pack_tag "sponsor_us" %> | ||
<%= append_javascript_pack_tag 'sponsor_us' %> | ||
<%= append_stylesheet_pack_tag "sponsor_us" %> |
Oops, something went wrong.