-
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.
WIP: almost everything works but nothing works
- Loading branch information
1 parent
8bdc24a
commit d10dc70
Showing
22 changed files
with
1,417 additions
and
5,570 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
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,2 @@ | ||
web: env RUBY_DEBUG_OPEN=true bin/rails server | ||
js: yarn build --watch |
Empty file.
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,4 @@ | ||
//= link_tree ../images | ||
//= link_tree ../../../vendor/assets | ||
//= link application.js | ||
//= link_tree ../../../vendor/assets | ||
//= link application.js | ||
//= link_tree ../builds |
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,33 @@ | ||
// Entry point for the build script in your package.json | ||
/* eslint no-console:0 */ | ||
// This file is automatically compiled by Webpack, along with any other files | ||
// present in this directory. You're encouraged to place your actual application logic in | ||
// a relevant structure within app/javascript and only use these pack files to reference | ||
// that code so it'll be compiled. | ||
// | ||
// To reference this file, add <%= javascript_include_tag 'application' %> to the appropriate | ||
// layout file, like app/views/layouts/application.html.erb | ||
|
||
import 'core-js/stable'; | ||
import 'regenerator-runtime/runtime'; | ||
// | ||
// import * as Sentry from '@sentry/react'; | ||
// import { Integrations } from '@sentry/tracing'; | ||
// | ||
// const isOnline = !process.env.NEMO_OFFLINE_MODE || process.env.NEMO_OFFLINE_MODE === 'false'; | ||
// if (isOnline && process.env.NODE_ENV !== 'test') { | ||
// Sentry.init({ | ||
// dsn: process.env.NEMO_SENTRY_DSN, | ||
// integrations: [new Integrations.BrowserTracing()], | ||
// | ||
// // Uncomment to enable Sentry performance monitoring (disabled in favor of Scout). | ||
// // Percentage between 0.0 - 1.0. | ||
// // tracesSampleRate: 1.0, | ||
// }); | ||
// } | ||
|
||
// Support component names relative to this directory: | ||
const componentRequireContext = require.context('./components', true); | ||
const ReactRailsUJS = require('react_ujs'); | ||
|
||
ReactRailsUJS.useContext(componentRequireContext); |
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
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 @@ | ||
#!/usr/bin/env sh | ||
|
||
if gem list --no-installed --exact --silent foreman; then | ||
echo "Installing foreman..." | ||
gem install foreman | ||
fi | ||
|
||
# Default to port 3000 if not specified | ||
export PORT="${PORT:-3000}" | ||
|
||
exec foreman start -f Procfile.dev "$@" |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
const path = require("path") | ||
const webpack = require("webpack") | ||
// Extracts CSS into .css file | ||
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | ||
// Removes exported JavaScript files from CSS-only entries | ||
// in this example, entry.custom will create a corresponding empty custom.js file | ||
const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts'); | ||
const mode = process.env.NODE_ENV === 'development' ? 'development' : 'production'; | ||
|
||
module.exports = { | ||
mode, | ||
entry: { | ||
packs: "./app/javascript/packs.js" | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(js)$/, | ||
use: ['babel-loader'] | ||
}, | ||
{ | ||
test: /node_modules\/(enketo-core|openrosa-xpath-evaluator)\//, | ||
use: ['babel-loader'] | ||
}, | ||
{ | ||
test: /\.test\.js$/, | ||
use: ['ignore-loader'] | ||
}, | ||
{ | ||
test: /\.(?:sc|c)ss$/i, | ||
use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'] | ||
} | ||
] | ||
}, | ||
output: { | ||
filename: "[name].js", | ||
sourceMapFilename: "[file].map", | ||
chunkFormat: "module", | ||
path: path.resolve(__dirname, "..", "..", "app/assets/builds"), | ||
}, | ||
output: { | ||
filename: "[name].js", | ||
chunkFilename: "[name]-[contenthash].digested.js", | ||
sourceMapFilename: "[file]-[fullhash].map", | ||
path: path.resolve(__dirname, '..', '..', 'app/assets/builds'), | ||
hashFunction: "sha256", | ||
hashDigestLength: 64, | ||
}, | ||
plugins: [ | ||
new webpack.optimize.LimitChunkCountPlugin({ | ||
maxChunks: 1 | ||
}), | ||
new RemoveEmptyScriptsPlugin(), | ||
new MiniCssExtractPlugin(), | ||
], | ||
optimization: { | ||
moduleIds: 'deterministic', | ||
} | ||
} |
Oops, something went wrong.