Prepare for new frontend
This commit is contained in:
parent
64735b5ee5
commit
d82fce08d9
@ -1 +0,0 @@
|
|||||||
> 1%, not ie <= 12
|
|
@ -1 +1 @@
|
|||||||
3.0.1
|
3.0.3
|
||||||
|
11
Dockerfile
11
Dockerfile
@ -1,4 +1,4 @@
|
|||||||
FROM ruby:3.0.1-buster
|
FROM ruby:3.0.3-bullseye
|
||||||
|
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \
|
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \
|
||||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
||||||
@ -8,11 +8,10 @@ RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \
|
|||||||
nodejs \
|
nodejs \
|
||||||
yarn \
|
yarn \
|
||||||
nginx && \
|
nginx && \
|
||||||
|
yarn global add @vue/cli && \
|
||||||
|
gem update --system && gem install bundler && \
|
||||||
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/*
|
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN gem update --system && gem install bundler
|
|
||||||
|
|
||||||
|
|
||||||
# Install nginx config files
|
# Install nginx config files
|
||||||
RUN rm /etc/nginx/sites-enabled/default
|
RUN rm /etc/nginx/sites-enabled/default
|
||||||
ADD docker/nginx_server.conf /etc/nginx/sites-enabled/parsley.conf
|
ADD docker/nginx_server.conf /etc/nginx/sites-enabled/parsley.conf
|
||||||
@ -32,12 +31,12 @@ COPY Gemfile* ./
|
|||||||
RUN bundle install
|
RUN bundle install
|
||||||
|
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
RUN yarn install --production=true --frozen-lockfile
|
RUN yarn install --frozen-lockfile
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Compile assets
|
# Compile assets
|
||||||
RUN env RAILS_ENV=production bundle exec rails webpacker:clobber webpacker:compile
|
RUN yarn build
|
||||||
|
|
||||||
ENV PORT=80
|
ENV PORT=80
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
13
Gemfile
13
Gemfile
@ -1,28 +1,25 @@
|
|||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
gem 'rails', '6.1.3.2'
|
gem 'rails', '6.1.4.1'
|
||||||
gem 'pg', '~> 1.2.3'
|
gem 'pg', '~> 1.2.3'
|
||||||
|
|
||||||
gem 'webpacker', '5.3.0'
|
|
||||||
gem 'bootsnap', '>= 1.1.0', require: false
|
gem 'bootsnap', '>= 1.1.0', require: false
|
||||||
|
|
||||||
gem 'oj', '~> 3.11.5'
|
gem 'oj', '~> 3.13.9'
|
||||||
|
|
||||||
gem 'kaminari', '~> 1.2.1'
|
gem 'kaminari', '~> 1.2.1'
|
||||||
gem 'unitwise', '~> 2.2.0'
|
gem 'unitwise', '~> 2.2.0'
|
||||||
gem 'redcarpet', '~> 3.5.1'
|
gem 'redcarpet', '~> 3.5.1'
|
||||||
|
|
||||||
gem 'dalli', '~> 2.7.11'
|
gem 'dalli', '~> 3.0.4'
|
||||||
gem 'puma', '~> 5.3'
|
gem 'puma', '~> 5.5'
|
||||||
gem 'bcrypt', '~> 3.1.16'
|
gem 'bcrypt', '~> 3.1.16'
|
||||||
gem 'tzinfo-data'
|
gem 'tzinfo-data'
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'sqlite3', '~> 1.4.2'
|
gem 'sqlite3', '~> 1.4.2'
|
||||||
|
|
||||||
gem 'guard', '~> 2.16.2'
|
gem 'rspec-rails', '~> 5.0.2'
|
||||||
gem 'guard-rspec', require: false
|
|
||||||
gem 'rspec-rails', '~> 5.0.1'
|
|
||||||
gem 'rails-controller-testing'
|
gem 'rails-controller-testing'
|
||||||
gem 'factory_bot_rails', '~> 6.2.0'
|
gem 'factory_bot_rails', '~> 6.2.0'
|
||||||
gem 'database_cleaner', '~> 2.0.1'
|
gem 'database_cleaner', '~> 2.0.1'
|
||||||
|
221
Gemfile.lock
221
Gemfile.lock
@ -1,73 +1,72 @@
|
|||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actioncable (6.1.3.2)
|
actioncable (6.1.4.1)
|
||||||
actionpack (= 6.1.3.2)
|
actionpack (= 6.1.4.1)
|
||||||
activesupport (= 6.1.3.2)
|
activesupport (= 6.1.4.1)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
websocket-driver (>= 0.6.1)
|
websocket-driver (>= 0.6.1)
|
||||||
actionmailbox (6.1.3.2)
|
actionmailbox (6.1.4.1)
|
||||||
actionpack (= 6.1.3.2)
|
actionpack (= 6.1.4.1)
|
||||||
activejob (= 6.1.3.2)
|
activejob (= 6.1.4.1)
|
||||||
activerecord (= 6.1.3.2)
|
activerecord (= 6.1.4.1)
|
||||||
activestorage (= 6.1.3.2)
|
activestorage (= 6.1.4.1)
|
||||||
activesupport (= 6.1.3.2)
|
activesupport (= 6.1.4.1)
|
||||||
mail (>= 2.7.1)
|
mail (>= 2.7.1)
|
||||||
actionmailer (6.1.3.2)
|
actionmailer (6.1.4.1)
|
||||||
actionpack (= 6.1.3.2)
|
actionpack (= 6.1.4.1)
|
||||||
actionview (= 6.1.3.2)
|
actionview (= 6.1.4.1)
|
||||||
activejob (= 6.1.3.2)
|
activejob (= 6.1.4.1)
|
||||||
activesupport (= 6.1.3.2)
|
activesupport (= 6.1.4.1)
|
||||||
mail (~> 2.5, >= 2.5.4)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
actionpack (6.1.3.2)
|
actionpack (6.1.4.1)
|
||||||
actionview (= 6.1.3.2)
|
actionview (= 6.1.4.1)
|
||||||
activesupport (= 6.1.3.2)
|
activesupport (= 6.1.4.1)
|
||||||
rack (~> 2.0, >= 2.0.9)
|
rack (~> 2.0, >= 2.0.9)
|
||||||
rack-test (>= 0.6.3)
|
rack-test (>= 0.6.3)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
||||||
actiontext (6.1.3.2)
|
actiontext (6.1.4.1)
|
||||||
actionpack (= 6.1.3.2)
|
actionpack (= 6.1.4.1)
|
||||||
activerecord (= 6.1.3.2)
|
activerecord (= 6.1.4.1)
|
||||||
activestorage (= 6.1.3.2)
|
activestorage (= 6.1.4.1)
|
||||||
activesupport (= 6.1.3.2)
|
activesupport (= 6.1.4.1)
|
||||||
nokogiri (>= 1.8.5)
|
nokogiri (>= 1.8.5)
|
||||||
actionview (6.1.3.2)
|
actionview (6.1.4.1)
|
||||||
activesupport (= 6.1.3.2)
|
activesupport (= 6.1.4.1)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubi (~> 1.4)
|
erubi (~> 1.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
||||||
activejob (6.1.3.2)
|
activejob (6.1.4.1)
|
||||||
activesupport (= 6.1.3.2)
|
activesupport (= 6.1.4.1)
|
||||||
globalid (>= 0.3.6)
|
globalid (>= 0.3.6)
|
||||||
activemodel (6.1.3.2)
|
activemodel (6.1.4.1)
|
||||||
activesupport (= 6.1.3.2)
|
activesupport (= 6.1.4.1)
|
||||||
activerecord (6.1.3.2)
|
activerecord (6.1.4.1)
|
||||||
activemodel (= 6.1.3.2)
|
activemodel (= 6.1.4.1)
|
||||||
activesupport (= 6.1.3.2)
|
activesupport (= 6.1.4.1)
|
||||||
activestorage (6.1.3.2)
|
activestorage (6.1.4.1)
|
||||||
actionpack (= 6.1.3.2)
|
actionpack (= 6.1.4.1)
|
||||||
activejob (= 6.1.3.2)
|
activejob (= 6.1.4.1)
|
||||||
activerecord (= 6.1.3.2)
|
activerecord (= 6.1.4.1)
|
||||||
activesupport (= 6.1.3.2)
|
activesupport (= 6.1.4.1)
|
||||||
marcel (~> 1.0.0)
|
marcel (~> 1.0.0)
|
||||||
mini_mime (~> 1.0.2)
|
mini_mime (>= 1.1.0)
|
||||||
activesupport (6.1.3.2)
|
activesupport (6.1.4.1)
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
i18n (>= 1.6, < 2)
|
i18n (>= 1.6, < 2)
|
||||||
minitest (>= 5.1)
|
minitest (>= 5.1)
|
||||||
tzinfo (~> 2.0)
|
tzinfo (~> 2.0)
|
||||||
zeitwerk (~> 2.3)
|
zeitwerk (~> 2.3)
|
||||||
bcrypt (3.1.16)
|
bcrypt (3.1.16)
|
||||||
bootsnap (1.7.5)
|
bootsnap (1.9.3)
|
||||||
msgpack (~> 1.0)
|
msgpack (~> 1.0)
|
||||||
builder (3.2.4)
|
builder (3.2.4)
|
||||||
coderay (1.1.3)
|
concurrent-ruby (1.1.9)
|
||||||
concurrent-ruby (1.1.8)
|
|
||||||
crass (1.0.6)
|
crass (1.0.6)
|
||||||
dalli (2.7.11)
|
dalli (3.0.4)
|
||||||
database_cleaner (2.0.1)
|
database_cleaner (2.0.1)
|
||||||
database_cleaner-active_record (~> 2.0.0)
|
database_cleaner-active_record (~> 2.0.0)
|
||||||
database_cleaner-active_record (2.0.1)
|
database_cleaner-active_record (2.0.1)
|
||||||
@ -81,25 +80,9 @@ GEM
|
|||||||
factory_bot_rails (6.2.0)
|
factory_bot_rails (6.2.0)
|
||||||
factory_bot (~> 6.2.0)
|
factory_bot (~> 6.2.0)
|
||||||
railties (>= 5.0.0)
|
railties (>= 5.0.0)
|
||||||
ffi (1.15.0)
|
globalid (1.0.0)
|
||||||
formatador (0.2.5)
|
activesupport (>= 5.0)
|
||||||
globalid (0.4.2)
|
i18n (1.8.11)
|
||||||
activesupport (>= 4.2.0)
|
|
||||||
guard (2.16.2)
|
|
||||||
formatador (>= 0.2.4)
|
|
||||||
listen (>= 2.7, < 4.0)
|
|
||||||
lumberjack (>= 1.0.12, < 2.0)
|
|
||||||
nenv (~> 0.1)
|
|
||||||
notiffany (~> 0.0)
|
|
||||||
pry (>= 0.9.12)
|
|
||||||
shellany (~> 0.0)
|
|
||||||
thor (>= 0.18.1)
|
|
||||||
guard-compat (1.2.1)
|
|
||||||
guard-rspec (4.7.3)
|
|
||||||
guard (~> 2.1)
|
|
||||||
guard-compat (~> 1.1)
|
|
||||||
rspec (>= 2.99.0, < 4.0)
|
|
||||||
i18n (1.8.10)
|
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
kaminari (1.2.1)
|
kaminari (1.2.1)
|
||||||
activesupport (>= 4.1.0)
|
activesupport (>= 4.1.0)
|
||||||
@ -114,59 +97,46 @@ GEM
|
|||||||
kaminari-core (= 1.2.1)
|
kaminari-core (= 1.2.1)
|
||||||
kaminari-core (1.2.1)
|
kaminari-core (1.2.1)
|
||||||
liner (0.2.4)
|
liner (0.2.4)
|
||||||
listen (3.5.1)
|
loofah (2.12.0)
|
||||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
||||||
rb-inotify (~> 0.9, >= 0.9.10)
|
|
||||||
loofah (2.9.1)
|
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
lumberjack (1.2.8)
|
|
||||||
mail (2.7.1)
|
mail (2.7.1)
|
||||||
mini_mime (>= 0.1.1)
|
mini_mime (>= 0.1.1)
|
||||||
marcel (1.0.1)
|
marcel (1.0.2)
|
||||||
memoizable (0.4.2)
|
memoizable (0.4.2)
|
||||||
thread_safe (~> 0.3, >= 0.3.1)
|
thread_safe (~> 0.3, >= 0.3.1)
|
||||||
method_source (1.0.0)
|
method_source (1.0.0)
|
||||||
mini_mime (1.0.3)
|
mini_mime (1.1.2)
|
||||||
mini_portile2 (2.5.1)
|
mini_portile2 (2.6.1)
|
||||||
minitest (5.14.4)
|
minitest (5.14.4)
|
||||||
msgpack (1.4.2)
|
msgpack (1.4.2)
|
||||||
nenv (0.3.0)
|
nio4r (2.5.8)
|
||||||
nio4r (2.5.7)
|
nokogiri (1.12.5)
|
||||||
nokogiri (1.11.3)
|
mini_portile2 (~> 2.6.1)
|
||||||
mini_portile2 (~> 2.5.0)
|
|
||||||
racc (~> 1.4)
|
racc (~> 1.4)
|
||||||
notiffany (0.1.3)
|
oj (3.13.9)
|
||||||
nenv (~> 0.1)
|
|
||||||
shellany (~> 0.0)
|
|
||||||
oj (3.11.5)
|
|
||||||
parslet (1.8.2)
|
parslet (1.8.2)
|
||||||
pg (1.2.3)
|
pg (1.2.3)
|
||||||
pry (0.14.1)
|
puma (5.5.2)
|
||||||
coderay (~> 1.1)
|
|
||||||
method_source (~> 1.0)
|
|
||||||
puma (5.3.0)
|
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
racc (1.5.2)
|
racc (1.6.0)
|
||||||
rack (2.2.3)
|
rack (2.2.3)
|
||||||
rack-proxy (0.6.5)
|
|
||||||
rack
|
|
||||||
rack-test (1.1.0)
|
rack-test (1.1.0)
|
||||||
rack (>= 1.0, < 3)
|
rack (>= 1.0, < 3)
|
||||||
rails (6.1.3.2)
|
rails (6.1.4.1)
|
||||||
actioncable (= 6.1.3.2)
|
actioncable (= 6.1.4.1)
|
||||||
actionmailbox (= 6.1.3.2)
|
actionmailbox (= 6.1.4.1)
|
||||||
actionmailer (= 6.1.3.2)
|
actionmailer (= 6.1.4.1)
|
||||||
actionpack (= 6.1.3.2)
|
actionpack (= 6.1.4.1)
|
||||||
actiontext (= 6.1.3.2)
|
actiontext (= 6.1.4.1)
|
||||||
actionview (= 6.1.3.2)
|
actionview (= 6.1.4.1)
|
||||||
activejob (= 6.1.3.2)
|
activejob (= 6.1.4.1)
|
||||||
activemodel (= 6.1.3.2)
|
activemodel (= 6.1.4.1)
|
||||||
activerecord (= 6.1.3.2)
|
activerecord (= 6.1.4.1)
|
||||||
activestorage (= 6.1.3.2)
|
activestorage (= 6.1.4.1)
|
||||||
activesupport (= 6.1.3.2)
|
activesupport (= 6.1.4.1)
|
||||||
bundler (>= 1.15.0)
|
bundler (>= 1.15.0)
|
||||||
railties (= 6.1.3.2)
|
railties (= 6.1.4.1)
|
||||||
sprockets-rails (>= 2.0.0)
|
sprockets-rails (>= 2.0.0)
|
||||||
rails-controller-testing (1.0.5)
|
rails-controller-testing (1.0.5)
|
||||||
actionpack (>= 5.0.1.rc1)
|
actionpack (>= 5.0.1.rc1)
|
||||||
@ -175,23 +145,16 @@ GEM
|
|||||||
rails-dom-testing (2.0.3)
|
rails-dom-testing (2.0.3)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
nokogiri (>= 1.6)
|
nokogiri (>= 1.6)
|
||||||
rails-html-sanitizer (1.3.0)
|
rails-html-sanitizer (1.4.2)
|
||||||
loofah (~> 2.3)
|
loofah (~> 2.3)
|
||||||
railties (6.1.3.2)
|
railties (6.1.4.1)
|
||||||
actionpack (= 6.1.3.2)
|
actionpack (= 6.1.4.1)
|
||||||
activesupport (= 6.1.3.2)
|
activesupport (= 6.1.4.1)
|
||||||
method_source
|
method_source
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.13)
|
||||||
thor (~> 1.0)
|
thor (~> 1.0)
|
||||||
rake (13.0.3)
|
rake (13.0.6)
|
||||||
rb-fsevent (0.11.0)
|
|
||||||
rb-inotify (0.10.1)
|
|
||||||
ffi (~> 1.0)
|
|
||||||
redcarpet (3.5.1)
|
redcarpet (3.5.1)
|
||||||
rspec (3.10.0)
|
|
||||||
rspec-core (~> 3.10.0)
|
|
||||||
rspec-expectations (~> 3.10.0)
|
|
||||||
rspec-mocks (~> 3.10.0)
|
|
||||||
rspec-core (3.10.1)
|
rspec-core (3.10.1)
|
||||||
rspec-support (~> 3.10.0)
|
rspec-support (~> 3.10.0)
|
||||||
rspec-expectations (3.10.1)
|
rspec-expectations (3.10.1)
|
||||||
@ -200,7 +163,7 @@ GEM
|
|||||||
rspec-mocks (3.10.2)
|
rspec-mocks (3.10.2)
|
||||||
diff-lcs (>= 1.2.0, < 2.0)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
rspec-support (~> 3.10.0)
|
rspec-support (~> 3.10.0)
|
||||||
rspec-rails (5.0.1)
|
rspec-rails (5.0.2)
|
||||||
actionpack (>= 5.2)
|
actionpack (>= 5.2)
|
||||||
activesupport (>= 5.2)
|
activesupport (>= 5.2)
|
||||||
railties (>= 5.2)
|
railties (>= 5.2)
|
||||||
@ -208,38 +171,31 @@ GEM
|
|||||||
rspec-expectations (~> 3.10)
|
rspec-expectations (~> 3.10)
|
||||||
rspec-mocks (~> 3.10)
|
rspec-mocks (~> 3.10)
|
||||||
rspec-support (~> 3.10)
|
rspec-support (~> 3.10)
|
||||||
rspec-support (3.10.2)
|
rspec-support (3.10.3)
|
||||||
semantic_range (3.0.0)
|
|
||||||
shellany (0.0.1)
|
|
||||||
signed_multiset (0.2.1)
|
signed_multiset (0.2.1)
|
||||||
sprockets (4.0.2)
|
sprockets (4.0.2)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
rack (> 1, < 3)
|
rack (> 1, < 3)
|
||||||
sprockets-rails (3.2.2)
|
sprockets-rails (3.4.1)
|
||||||
actionpack (>= 4.0)
|
actionpack (>= 5.2)
|
||||||
activesupport (>= 4.0)
|
activesupport (>= 5.2)
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
sqlite3 (1.4.2)
|
sqlite3 (1.4.2)
|
||||||
thor (1.1.0)
|
thor (1.1.0)
|
||||||
thread_safe (0.3.6)
|
thread_safe (0.3.6)
|
||||||
tzinfo (2.0.4)
|
tzinfo (2.0.4)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
tzinfo-data (1.2021.1)
|
tzinfo-data (1.2021.5)
|
||||||
tzinfo (>= 1.0.0)
|
tzinfo (>= 1.0.0)
|
||||||
unitwise (2.2.0)
|
unitwise (2.2.0)
|
||||||
liner (~> 0.2)
|
liner (~> 0.2)
|
||||||
memoizable (~> 0.4)
|
memoizable (~> 0.4)
|
||||||
parslet (~> 1.5)
|
parslet (~> 1.5)
|
||||||
signed_multiset (~> 0.2)
|
signed_multiset (~> 0.2)
|
||||||
webpacker (5.3.0)
|
websocket-driver (0.7.5)
|
||||||
activesupport (>= 5.2)
|
|
||||||
rack-proxy (>= 0.6.1)
|
|
||||||
railties (>= 5.2)
|
|
||||||
semantic_range (>= 2.3.0)
|
|
||||||
websocket-driver (0.7.3)
|
|
||||||
websocket-extensions (>= 0.1.0)
|
websocket-extensions (>= 0.1.0)
|
||||||
websocket-extensions (0.1.5)
|
websocket-extensions (0.1.5)
|
||||||
zeitwerk (2.4.2)
|
zeitwerk (2.5.1)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
@ -247,23 +203,20 @@ PLATFORMS
|
|||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
bcrypt (~> 3.1.16)
|
bcrypt (~> 3.1.16)
|
||||||
bootsnap (>= 1.1.0)
|
bootsnap (>= 1.1.0)
|
||||||
dalli (~> 2.7.11)
|
dalli (~> 3.0.4)
|
||||||
database_cleaner (~> 2.0.1)
|
database_cleaner (~> 2.0.1)
|
||||||
factory_bot_rails (~> 6.2.0)
|
factory_bot_rails (~> 6.2.0)
|
||||||
guard (~> 2.16.2)
|
|
||||||
guard-rspec
|
|
||||||
kaminari (~> 1.2.1)
|
kaminari (~> 1.2.1)
|
||||||
oj (~> 3.11.5)
|
oj (~> 3.13.9)
|
||||||
pg (~> 1.2.3)
|
pg (~> 1.2.3)
|
||||||
puma (~> 5.3)
|
puma (~> 5.5)
|
||||||
rails (= 6.1.3.2)
|
rails (= 6.1.4.1)
|
||||||
rails-controller-testing
|
rails-controller-testing
|
||||||
redcarpet (~> 3.5.1)
|
redcarpet (~> 3.5.1)
|
||||||
rspec-rails (~> 5.0.1)
|
rspec-rails (~> 5.0.2)
|
||||||
sqlite3 (~> 1.4.2)
|
sqlite3 (~> 1.4.2)
|
||||||
tzinfo-data
|
tzinfo-data
|
||||||
unitwise (~> 2.2.0)
|
unitwise (~> 2.2.0)
|
||||||
webpacker (= 5.3.0)
|
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.2.17
|
2.2.32
|
||||||
|
@ -1,78 +0,0 @@
|
|||||||
module.exports = function(api) {
|
|
||||||
var validEnv = ['development', 'test', 'production']
|
|
||||||
var currentEnv = api.env()
|
|
||||||
var isDevelopmentEnv = api.env('development')
|
|
||||||
var isProductionEnv = api.env('production')
|
|
||||||
var isTestEnv = api.env('test')
|
|
||||||
|
|
||||||
if (!validEnv.includes(currentEnv)) {
|
|
||||||
throw new Error(
|
|
||||||
'Please specify a valid `NODE_ENV` or ' +
|
|
||||||
'`BABEL_ENV` environment variables. Valid values are "development", ' +
|
|
||||||
'"test", and "production". Instead, received: ' +
|
|
||||||
JSON.stringify(currentEnv) +
|
|
||||||
'.'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
presets: [
|
|
||||||
isTestEnv && [
|
|
||||||
'@babel/preset-env',
|
|
||||||
{
|
|
||||||
targets: {
|
|
||||||
node: 'current'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
(isProductionEnv || isDevelopmentEnv) && [
|
|
||||||
'@babel/preset-env',
|
|
||||||
{
|
|
||||||
forceAllTransforms: true,
|
|
||||||
useBuiltIns: 'entry',
|
|
||||||
corejs: 3,
|
|
||||||
modules: false,
|
|
||||||
exclude: ['transform-typeof-symbol']
|
|
||||||
}
|
|
||||||
]
|
|
||||||
].filter(Boolean),
|
|
||||||
plugins: [
|
|
||||||
'babel-plugin-macros',
|
|
||||||
'@babel/plugin-syntax-dynamic-import',
|
|
||||||
isTestEnv && 'babel-plugin-dynamic-import-node',
|
|
||||||
'@babel/plugin-transform-destructuring',
|
|
||||||
[
|
|
||||||
'@babel/plugin-proposal-class-properties',
|
|
||||||
{
|
|
||||||
loose: true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'@babel/plugin-proposal-private-methods',
|
|
||||||
{
|
|
||||||
"loose": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'@babel/plugin-proposal-object-rest-spread',
|
|
||||||
{
|
|
||||||
useBuiltIns: true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'@babel/plugin-transform-runtime',
|
|
||||||
{
|
|
||||||
helpers: false,
|
|
||||||
regenerator: true,
|
|
||||||
corejs: false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'@babel/plugin-transform-regenerator',
|
|
||||||
{
|
|
||||||
async: false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
].filter(Boolean)
|
|
||||||
}
|
|
||||||
}
|
|
26
package.json
26
package.json
@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
"dependencies": {
|
|
||||||
"@rails/webpacker": "5.3.0",
|
|
||||||
"@tweenjs/tween.js": "^18.6.4",
|
|
||||||
"autosize": "^4.0.2",
|
|
||||||
"bulma": "^0.8.2",
|
|
||||||
"cheerio": "^1.0.0-rc.9",
|
|
||||||
"css-loader": "^5.2.4",
|
|
||||||
"lodash": "^4.17.21",
|
|
||||||
"svg-loader": "^0.0.2",
|
|
||||||
"url-loader": "4.1.1",
|
|
||||||
"vue": "^2.6.12",
|
|
||||||
"vue-loader": "^15.9.6",
|
|
||||||
"vue-progressbar": "^0.7.5",
|
|
||||||
"vue-resize": "^1.0.1",
|
|
||||||
"vue-router": "^3.5.1",
|
|
||||||
"vue-template-compiler": "^2.6.12",
|
|
||||||
"vuex": "^3.6.2",
|
|
||||||
"vuex-router-sync": "^5.0.0",
|
|
||||||
"webpack": "^4.46.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"webpack-cli": "^3.3.12",
|
|
||||||
"webpack-dev-server": "^3.11.2"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
plugins: [
|
|
||||||
require('postcss-import'),
|
|
||||||
require('postcss-flexbugs-fixes'),
|
|
||||||
require('postcss-preset-env')({
|
|
||||||
autoprefixer: {
|
|
||||||
flexbox: 'no-2009'
|
|
||||||
},
|
|
||||||
stage: 3
|
|
||||||
})
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user