-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bdc24a
commit bdb62ef
Showing
19 changed files
with
1,912 additions
and
5,098 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16.13.0 | ||
18.20.4 |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
unless Dir.respond_to?(:exists?) | ||
class << Dir | ||
alias_method :exists?, :exist? | ||
end | ||
end | ||
|
||
unless File.respond_to?(:exists?) | ||
class << File | ||
alias_method :exists?, :exist? | ||
end | ||
end |
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,5 @@ | ||
#!/usr/bin/env ruby | ||
APP_PATH = File.expand_path("../config/application", __dir__) | ||
require_relative "patches/exists" | ||
require_relative "../config/boot" | ||
require "rails/commands" |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env ruby | ||
|
||
APP_ROOT = File.expand_path("..", __dir__) | ||
Dir.chdir(APP_ROOT) do | ||
yarn = ENV["PATH"].split(File::PATH_SEPARATOR). | ||
select { |dir| File.expand_path(dir) != __dir__ }. | ||
product(["yarn", "yarnpkg", "yarn.cmd", "yarn.ps1"]). | ||
map { |dir, file| File.expand_path(file, dir) }. | ||
find { |file| File.executable?(file) } | ||
|
||
if yarn | ||
exec yarn, *ARGV | ||
else | ||
$stderr.puts "Yarn executable was not detected in the system." | ||
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" | ||
exit 1 | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const { webpackConfig, merge } = require('@rails/webpacker') | ||
|
||
// webpackConfig.loaders.append('ignore', { | ||
// test: /\.test\.js$/, | ||
// loader: 'ignore-loader', | ||
// }); | ||
|
||
module.exports = merge( | ||
webpackConfig, | ||
{ | ||
rules: [ | ||
{ | ||
test: /\.test\.js$/, | ||
use: ['ignore-loader'] | ||
}, | ||
{ | ||
test: /node_modules\/(enketo-core|openrosa-xpath-evaluator)\//, | ||
use: ['babel-loader'] | ||
} | ||
] | ||
} | ||
) | ||
|
||
// Transpile Enketo files. | ||
// webpackConfig.loaders.append('enketo', { | ||
// test: /node_modules\/(enketo-core|openrosa-xpath-evaluator)\//, | ||
// loader: 'babel-loader', | ||
// }); | ||
|
||
module.exports = webpackConfig |
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,5 +1,5 @@ | ||
process.env.NODE_ENV = process.env.NODE_ENV || 'development'; | ||
process.env.NODE_ENV = process.env.NODE_ENV || 'development' | ||
|
||
const environment = require('./environment'); | ||
const webpackConfig = require('./base') | ||
|
||
module.exports = environment.toWebpackConfig(); | ||
module.exports = webpackConfig |
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,5 +1,5 @@ | ||
process.env.NODE_ENV = process.env.NODE_ENV || 'production'; | ||
process.env.NODE_ENV = process.env.NODE_ENV || 'production' | ||
|
||
const environment = require('./environment'); | ||
const webpackConfig = require('./base') | ||
|
||
module.exports = environment.toWebpackConfig(); | ||
module.exports = webpackConfig |
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,5 +1,5 @@ | ||
process.env.NODE_ENV = process.env.NODE_ENV || 'development'; | ||
process.env.NODE_ENV = process.env.NODE_ENV || 'development' | ||
|
||
const environment = require('./environment'); | ||
const webpackConfig = require('./base') | ||
|
||
module.exports = environment.toWebpackConfig(); | ||
module.exports = webpackConfig |
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
Oops, something went wrong.