Skip to content

Instantly share code, notes, and snippets.

@ngw
Created August 24, 2018 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngw/0bc000fdf484a70dbc9693142790d2f0 to your computer and use it in GitHub Desktop.
Save ngw/0bc000fdf484a70dbc9693142790d2f0 to your computer and use it in GitHub Desktop.
ngw@bluemonday ~ rails new myapp --webpack=elm
create
create README.md
create Rakefile
create .ruby-version
create config.ru
create .gitignore
create Gemfile
run git init from "."
Initialized empty Git repository in /Users/ngw/myapp/.git/
create package.json
create app
create app/assets/config/manifest.js
create app/assets/javascripts/application.js
create app/assets/javascripts/cable.js
create app/assets/stylesheets/application.css
create app/channels/application_cable/channel.rb
create app/channels/application_cable/connection.rb
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/jobs/application_job.rb
create app/mailers/application_mailer.rb
create app/models/application_record.rb
create app/views/layouts/application.html.erb
create app/views/layouts/mailer.html.erb
create app/views/layouts/mailer.text.erb
create app/assets/images/.keep
create app/assets/javascripts/channels
create app/assets/javascripts/channels/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create bin/setup
create bin/update
create bin/yarn
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/cable.yml
create config/puma.rb
create config/spring.rb
create config/storage.yml
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/application_controller_renderer.rb
create config/initializers/assets.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/content_security_policy.rb
create config/initializers/cookies_serializer.rb
create config/initializers/cors.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_framework_defaults_5_2.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/master.key
append .gitignore
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/apple-touch-icon-precomposed.png
create public/apple-touch-icon.png
create public/favicon.ico
create public/robots.txt
create tmp
create tmp/.keep
create tmp/cache
create tmp/cache/assets
create vendor
create vendor/.keep
create test/fixtures
create test/fixtures/.keep
create test/fixtures/files
create test/fixtures/files/.keep
create test/controllers
create test/controllers/.keep
create test/mailers
create test/mailers/.keep
create test/models
create test/models/.keep
create test/helpers
create test/helpers/.keep
create test/integration
create test/integration/.keep
create test/test_helper.rb
create test/system
create test/system/.keep
create test/application_system_test_case.rb
create storage
create storage/.keep
create tmp/storage
create tmp/storage/.keep
remove config/initializers/cors.rb
remove config/initializers/new_framework_defaults_5_2.rb
run bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 12.3.1
Using concurrent-ruby 1.0.5
Using i18n 1.1.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.1
Using builder 3.2.3
Using erubi 1.7.1
Using mini_portile2 2.3.0
Using nokogiri 1.8.4
Using rails-dom-testing 2.0.3
Using crass 1.0.4
Using loofah 2.2.2
Using rails-html-sanitizer 1.0.4
Using actionview 5.2.1
Using rack 2.0.5
Using rack-test 1.1.0
Using actionpack 5.2.1
Using nio4r 2.3.1
Using websocket-extensions 0.1.3
Using websocket-driver 0.7.0
Using actioncable 5.2.1
Using globalid 0.4.1
Using activejob 5.2.1
Using mini_mime 1.0.1
Using mail 2.7.0
Using actionmailer 5.2.1
Using activemodel 5.2.1
Using arel 9.0.0
Using activerecord 5.2.1
Using mimemagic 0.3.2
Using marcel 0.3.2
Using activestorage 5.2.1
Using public_suffix 3.0.3
Using addressable 2.5.2
Using io-like 0.3.0
Using archive-zip 0.11.0
Using bindex 0.5.0
Using msgpack 1.2.4
Using bootsnap 1.3.1
Using bundler 1.16.4
Using byebug 10.0.2
Using xpath 3.1.0
Using capybara 3.6.0
Using ffi 1.9.25
Using childprocess 0.9.0
Using chromedriver-helper 1.2.0
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using coffee-script 2.4.1
Using method_source 0.9.0
Using thor 0.20.0
Using railties 5.2.1
Using coffee-rails 4.2.2
Using multi_json 1.13.1
Using jbuilder 2.7.0
Using rb-fsevent 0.10.3
Using rb-inotify 0.9.10
Using ruby_dep 1.5.0
Using listen 3.1.5
Using puma 3.12.0
Using rack-proxy 0.6.4
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.2.1
Using rubyzip 1.2.1
Using sass-listen 4.0.0
Using sass 3.5.7
Using tilt 2.0.8
Using sass-rails 5.0.7
Using selenium-webdriver 3.14.0
Using spring 2.0.2
Using spring-watcher-listen 2.0.1
Using sqlite3 1.3.13
Using turbolinks-source 5.2.0
Using turbolinks 5.2.0
Using uglifier 4.1.18
Using web-console 3.6.2
Using webpacker 3.5.5
Bundle complete! 19 Gemfile dependencies, 80 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
rails webpacker:install
RAILS_ENV=development environment is not defined in config/webpacker.yml, falling back to production environment
create config/webpacker.yml
Copying webpack core config
create config/webpack
create config/webpack/development.js
create config/webpack/environment.js
create config/webpack/production.js
create config/webpack/test.js
Copying .postcssrc.yml to app root directory
create .postcssrc.yml
Copying .babelrc to app root directory
create .babelrc
Creating JavaScript app source directory
create app/javascript
create app/javascript/packs/application.js
apply /Users/ngw/.rvm/gems/ruby-2.5.1/gems/webpacker-3.5.5/lib/install/binstubs.rb
Copying binstubs
exist bin
create bin/webpack
create bin/webpack-dev-server
Adding configurations
append .gitignore
Installing all JavaScript dependencies
run yarn add @rails/webpacker@3.5 --tilde from "."
yarn add v1.9.4
info No lockfile found.
[1/4] 🔍 Resolving packages...
warning @rails/webpacker > postcss-cssnext@3.1.0: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
warning @rails/webpacker > css-loader > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning @rails/webpacker > postcss-cssnext > autoprefixer > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning @rails/webpacker > css-loader > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning @rails/webpacker > postcss-cssnext > caniuse-api > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning @rails/webpacker > css-loader > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning @rails/webpacker > postcss-cssnext > pixrem > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
[2/4] 🚚 Fetching packages...
[-----------------------------------------------------------------------] 0/764(node:34282) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[3/4] 🔗 Linking dependencies...
warning "@rails/webpacker > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697".
[4/4] 📃 Building fresh packages...
success Saved lockfile.
success Saved 527 new dependencies.
info Direct dependencies
└─ @rails/webpacker@3.5.5
info All dependencies
├─ @rails/webpacker@3.5.5
├─ abbrev@1.1.1
├─ acorn-dynamic-import@2.0.2
├─ acorn@5.7.2
├─ ajv@5.5.2
├─ align-text@0.1.4
├─ amdefine@1.0.1
├─ ansi-styles@2.2.1
├─ anymatch@2.0.0
├─ are-we-there-yet@1.1.5
├─ arr-flatten@1.1.0
├─ array-find-index@1.0.2
├─ asn1.js@4.10.1
├─ asn1@0.2.4
├─ assert@1.4.1
├─ assign-symbols@1.0.0
├─ async-each@1.0.1
├─ async-foreach@0.1.3
├─ async@2.6.1
├─ asynckit@0.4.0
├─ atob@2.1.2
├─ autoprefixer@7.2.6
├─ aws4@1.8.0
├─ babel-core@6.26.3
├─ babel-generator@6.26.1
├─ babel-helper-builder-binary-assignment-operator-visitor@6.24.1
├─ babel-helper-call-delegate@6.24.1
├─ babel-helper-define-map@6.26.0
├─ babel-helper-explode-assignable-expression@6.24.1
├─ babel-helper-remap-async-to-generator@6.24.1
├─ babel-helpers@6.24.1
├─ babel-loader@7.1.5
├─ babel-plugin-check-es2015-constants@6.22.0
├─ babel-plugin-syntax-async-functions@6.13.0
├─ babel-plugin-syntax-class-properties@6.13.0
├─ babel-plugin-syntax-dynamic-import@6.18.0
├─ babel-plugin-syntax-exponentiation-operator@6.13.0
├─ babel-plugin-syntax-object-rest-spread@6.13.0
├─ babel-plugin-syntax-trailing-function-commas@6.22.0
├─ babel-plugin-transform-async-to-generator@6.24.1
├─ babel-plugin-transform-class-properties@6.24.1
├─ babel-plugin-transform-es2015-arrow-functions@6.22.0
├─ babel-plugin-transform-es2015-block-scoped-functions@6.22.0
├─ babel-plugin-transform-es2015-block-scoping@6.26.0
├─ babel-plugin-transform-es2015-classes@6.24.1
├─ babel-plugin-transform-es2015-computed-properties@6.24.1
├─ babel-plugin-transform-es2015-destructuring@6.23.0
├─ babel-plugin-transform-es2015-duplicate-keys@6.24.1
├─ babel-plugin-transform-es2015-for-of@6.23.0
├─ babel-plugin-transform-es2015-function-name@6.24.1
├─ babel-plugin-transform-es2015-literals@6.22.0
├─ babel-plugin-transform-es2015-modules-amd@6.24.1
├─ babel-plugin-transform-es2015-modules-commonjs@6.26.2
├─ babel-plugin-transform-es2015-modules-systemjs@6.24.1
├─ babel-plugin-transform-es2015-modules-umd@6.24.1
├─ babel-plugin-transform-es2015-object-super@6.24.1
├─ babel-plugin-transform-es2015-parameters@6.24.1
├─ babel-plugin-transform-es2015-shorthand-properties@6.24.1
├─ babel-plugin-transform-es2015-spread@6.22.0
├─ babel-plugin-transform-es2015-sticky-regex@6.24.1
├─ babel-plugin-transform-es2015-template-literals@6.22.0
├─ babel-plugin-transform-es2015-typeof-symbol@6.23.0
├─ babel-plugin-transform-es2015-unicode-regex@6.24.1
├─ babel-plugin-transform-exponentiation-operator@6.24.1
├─ babel-plugin-transform-object-rest-spread@6.26.0
├─ babel-plugin-transform-regenerator@6.26.0
├─ babel-plugin-transform-strict-mode@6.24.1
├─ babel-polyfill@6.26.0
├─ babel-preset-env@1.7.0
├─ babel-register@6.26.0
├─ base@0.11.2
├─ base64-js@1.3.0
├─ bcrypt-pbkdf@1.0.2
├─ big.js@3.2.0
├─ binary-extensions@1.11.0
├─ block-stream@0.0.9
├─ bluebird@3.5.1
├─ brace-expansion@1.1.11
├─ braces@2.3.2
├─ browserify-aes@1.2.0
├─ browserify-cipher@1.0.1
├─ browserify-des@1.0.2
├─ browserify-sign@4.0.4
├─ browserify-zlib@0.2.0
├─ browserslist@1.7.7
├─ buffer-from@1.1.1
├─ buffer-xor@1.0.3
├─ buffer@4.9.1
├─ builtin-modules@1.1.1
├─ builtin-status-codes@3.0.0
├─ cacache@10.0.4
├─ cache-base@1.0.1
├─ camelcase-keys@2.1.0
├─ caniuse-api@2.0.0
├─ caniuse-db@1.0.30000878
├─ caniuse-lite@1.0.30000878
├─ case-sensitive-paths-webpack-plugin@2.1.2
├─ center-align@0.1.3
├─ chokidar@2.0.4
├─ chownr@1.0.1
├─ clap@1.2.3
├─ class-utils@0.3.6
├─ clone-deep@2.0.2
├─ clone@1.0.4
├─ co@4.6.0
├─ coa@1.0.4
├─ code-point-at@1.1.0
├─ collection-visit@1.0.0
├─ color-convert@1.9.2
├─ color-string@1.5.3
├─ colormin@1.1.2
├─ colors@1.1.2
├─ combined-stream@1.0.6
├─ commander@2.13.0
├─ commondir@1.0.1
├─ compression-webpack-plugin@1.1.11
├─ concat-map@0.0.1
├─ concat-stream@1.6.2
├─ console-browserify@1.1.0
├─ console-control-strings@1.1.0
├─ constants-browserify@1.0.0
├─ convert-source-map@1.5.1
├─ copy-concurrently@1.0.5
├─ copy-descriptor@0.1.1
├─ core-util-is@1.0.2
├─ cosmiconfig@4.0.0
├─ create-ecdh@4.0.3
├─ create-hmac@1.1.7
├─ cross-spawn@3.0.1
├─ crypto-browserify@3.12.0
├─ css-color-function@1.3.3
├─ css-color-names@0.0.4
├─ css-loader@0.28.11
├─ cssesc@0.1.0
├─ cssnano@3.10.0
├─ csso@2.3.2
├─ currently-unhandled@0.4.1
├─ cyclist@0.2.2
├─ dashdash@1.14.1
├─ date-now@0.1.4
├─ debug@2.6.9
├─ decamelize@1.2.0
├─ decode-uri-component@0.2.0
├─ deep-extend@0.6.0
├─ defined@1.0.0
├─ delayed-stream@1.0.0
├─ delegates@1.0.0
├─ des.js@1.0.0
├─ detect-indent@4.0.0
├─ detect-libc@1.0.3
├─ diffie-hellman@5.0.3
├─ domain-browser@1.2.0
├─ duplexify@3.6.0
├─ ecc-jsbn@0.1.2
├─ electron-to-chromium@1.3.61
├─ emojis-list@2.1.0
├─ enhanced-resolve@3.4.1
├─ errno@0.1.7
├─ error-ex@1.3.2
├─ es6-map@0.1.5
├─ es6-set@0.1.5
├─ es6-symbol@3.1.1
├─ es6-weak-map@2.0.2
├─ escape-string-regexp@1.0.5
├─ escope@3.6.0
├─ esprima@4.0.1
├─ esrecurse@4.2.1
├─ estraverse@4.2.0
├─ events@1.1.1
├─ evp_bytestokey@1.0.3
├─ execa@0.7.0
├─ expand-brackets@2.1.4
├─ extend@3.0.2
├─ extglob@2.0.4
├─ extract-text-webpack-plugin@3.0.2
├─ extsprintf@1.3.0
├─ fast-deep-equal@1.1.0
├─ fastparse@1.1.1
├─ file-loader@1.1.11
├─ fill-range@4.0.0
├─ find-up@2.1.0
├─ flush-write-stream@1.0.3
├─ for-in@1.0.2
├─ for-own@1.0.0
├─ form-data@2.3.2
├─ from2@2.3.0
├─ fs-extra@0.30.0
├─ fs-minipass@1.2.5
├─ fs.realpath@1.0.0
├─ fsevents@1.2.4
├─ fstream@1.0.11
├─ function-bind@1.1.1
├─ gauge@2.7.4
├─ gaze@1.1.3
├─ get-stream@3.0.0
├─ get-value@2.0.6
├─ getpass@0.1.7
├─ glob-parent@3.1.0
├─ glob@7.1.2
├─ globals@9.18.0
├─ globule@1.2.1
├─ har-validator@5.0.3
├─ has-ansi@2.0.0
├─ has-flag@3.0.0
├─ has-unicode@2.0.1
├─ has-value@1.0.0
├─ has-values@1.0.0
├─ hash.js@1.1.5
├─ hmac-drbg@1.0.1
├─ home-or-tmp@2.0.0
├─ hosted-git-info@2.7.1
├─ html-comment-regex@1.1.1
├─ https-browserify@1.0.0
├─ iconv-lite@0.4.24
├─ icss-replace-symbols@1.1.0
├─ icss-utils@2.1.0
├─ ieee754@1.1.12
├─ ignore-walk@3.0.1
├─ import-cwd@2.1.0
├─ import-from@2.1.0
├─ in-publish@2.0.0
├─ indent-string@2.1.0
├─ indexof@0.0.1
├─ ini@1.3.5
├─ interpret@1.1.0
├─ invert-kv@1.0.0
├─ is-absolute-url@2.1.0
├─ is-accessor-descriptor@1.0.0
├─ is-arrayish@0.2.1
├─ is-binary-path@1.0.1
├─ is-builtin-module@1.0.0
├─ is-data-descriptor@1.0.0
├─ is-descriptor@1.0.2
├─ is-directory@0.3.1
├─ is-extglob@2.1.1
├─ is-finite@1.0.2
├─ is-fullwidth-code-point@1.0.0
├─ is-glob@4.0.0
├─ is-plain-obj@1.1.0
├─ is-plain-object@2.0.4
├─ is-stream@1.1.0
├─ is-svg@2.1.0
├─ is-utf8@0.2.1
├─ is-windows@1.0.2
├─ isarray@1.0.0
├─ isexe@2.0.0
├─ isnumeric@0.2.0
├─ js-base64@2.4.8
├─ js-tokens@3.0.2
├─ js-yaml@3.12.0
├─ jsesc@1.3.0
├─ json-loader@0.5.7
├─ json-parse-better-errors@1.0.2
├─ json-schema-traverse@0.3.1
├─ json-schema@0.2.3
├─ jsonfile@2.4.0
├─ jsprim@1.4.1
├─ kind-of@3.2.2
├─ klaw@1.3.1
├─ last-call-webpack-plugin@2.1.2
├─ lazy-cache@1.0.4
├─ load-json-file@1.1.0
├─ loader-runner@2.3.0
├─ locate-path@2.0.0
├─ lodash.assign@4.2.0
├─ lodash.camelcase@4.3.0
├─ lodash.clonedeep@4.5.0
├─ lodash.debounce@4.0.8
├─ lodash.mergewith@4.6.1
├─ lodash.tail@4.1.1
├─ lodash.template@4.4.0
├─ lodash.templatesettings@4.1.0
├─ lodash@4.17.10
├─ longest@1.0.1
├─ loose-envify@1.4.0
├─ loud-rejection@1.6.0
├─ make-dir@1.3.0
├─ map-obj@1.0.1
├─ map-visit@1.0.0
├─ math-expression-evaluator@1.2.17
├─ mem@1.1.0
├─ memory-fs@0.4.1
├─ meow@3.7.0
├─ micromatch@3.1.10
├─ miller-rabin@4.0.1
├─ mime-db@1.35.0
├─ mime-types@2.1.19
├─ mimic-fn@1.2.0
├─ minimalistic-crypto-utils@1.0.1
├─ minimatch@3.0.4
├─ minimist@1.2.0
├─ minizlib@1.1.0
├─ mississippi@2.0.0
├─ mixin-deep@1.3.1
├─ mixin-object@2.0.1
├─ mkdirp@0.5.1
├─ move-concurrently@1.0.1
├─ nan@2.10.0
├─ nanomatch@1.2.13
├─ needle@2.2.2
├─ next-tick@1.0.0
├─ node-gyp@3.8.0
├─ node-libs-browser@2.1.0
├─ node-pre-gyp@0.10.3
├─ node-sass@4.9.3
├─ nopt@3.0.6
├─ normalize-url@1.9.1
├─ npm-bundled@1.0.5
├─ npm-packlist@1.1.11
├─ npm-run-path@2.0.2
├─ npmlog@4.1.2
├─ oauth-sign@0.8.2
├─ object-copy@0.1.0
├─ once@1.4.0
├─ onecolor@3.0.5
├─ optimize-css-assets-webpack-plugin@3.2.0
├─ os-browserify@0.3.0
├─ os-locale@2.1.0
├─ os-tmpdir@1.0.2
├─ osenv@0.1.5
├─ p-finally@1.0.0
├─ p-limit@1.3.0
├─ p-locate@2.0.0
├─ p-try@1.0.0
├─ pako@1.0.6
├─ parallel-transform@1.1.0
├─ pascalcase@0.1.1
├─ path-browserify@0.0.0
├─ path-complete-extname@1.0.0
├─ path-dirname@1.0.2
├─ path-exists@2.1.0
├─ path-key@2.0.1
├─ path-parse@1.0.6
├─ path-type@1.1.0
├─ pinkie@2.0.4
├─ pixrem@4.0.1
├─ pkg-dir@2.0.0
├─ pleeease-filters@4.0.0
├─ posix-character-classes@0.1.1
├─ postcss-apply@0.8.0
├─ postcss-attribute-case-insensitive@2.0.0
├─ postcss-calc@6.0.1
├─ postcss-color-function@4.0.1
├─ postcss-color-gray@4.1.0
├─ postcss-color-hex-alpha@3.0.0
├─ postcss-color-hsl@2.0.0
├─ postcss-color-hwb@3.0.0
├─ postcss-color-rebeccapurple@3.1.0
├─ postcss-color-rgb@2.0.0
├─ postcss-color-rgba-fallback@3.0.0
├─ postcss-colormin@2.2.2
├─ postcss-convert-values@2.6.1
├─ postcss-cssnext@3.1.0
├─ postcss-custom-media@6.0.0
├─ postcss-custom-properties@6.3.1
├─ postcss-custom-selectors@4.0.1
├─ postcss-discard-comments@2.0.4
├─ postcss-discard-duplicates@2.1.0
├─ postcss-discard-empty@2.1.0
├─ postcss-discard-overridden@0.1.1
├─ postcss-discard-unused@2.2.3
├─ postcss-filter-plugins@2.0.3
├─ postcss-font-family-system-ui@3.0.0
├─ postcss-font-variant@3.0.0
├─ postcss-image-set-polyfill@0.3.5
├─ postcss-import@11.1.0
├─ postcss-initial@2.0.0
├─ postcss-load-config@2.0.0
├─ postcss-loader@2.1.6
├─ postcss-media-minmax@3.0.0
├─ postcss-media-query-parser@0.2.3
├─ postcss-merge-idents@2.1.7
├─ postcss-merge-longhand@2.0.2
├─ postcss-merge-rules@2.1.2
├─ postcss-minify-font-values@1.0.5
├─ postcss-minify-gradients@1.0.5
├─ postcss-minify-params@1.2.2
├─ postcss-minify-selectors@2.1.1
├─ postcss-modules-extract-imports@1.2.0
├─ postcss-modules-local-by-default@1.2.0
├─ postcss-modules-scope@1.1.0
├─ postcss-modules-values@1.3.0
├─ postcss-nesting@4.2.1
├─ postcss-normalize-charset@1.1.1
├─ postcss-normalize-url@3.0.8
├─ postcss-ordered-values@2.2.3
├─ postcss-pseudo-class-any-link@4.0.0
├─ postcss-pseudoelements@5.0.0
├─ postcss-reduce-idents@2.4.0
├─ postcss-reduce-initial@1.0.1
├─ postcss-reduce-transforms@1.0.4
├─ postcss-replace-overflow-wrap@2.0.0
├─ postcss-selector-matches@3.0.1
├─ postcss-selector-not@3.0.1
├─ postcss-svgo@2.1.6
├─ postcss-unique-selectors@2.0.2
├─ postcss-values-parser@1.5.0
├─ postcss-zindex@2.2.0
├─ prepend-http@1.0.4
├─ private@0.1.8
├─ process-nextick-args@2.0.0
├─ process@0.11.10
├─ promise-inflight@1.0.1
├─ prr@1.0.1
├─ pseudomap@1.0.2
├─ psl@1.1.29
├─ public-encrypt@4.0.2
├─ pump@2.0.1
├─ pumpify@1.5.1
├─ q@1.5.1
├─ qs@6.5.2
├─ query-string@4.3.4
├─ querystring-es3@0.2.1
├─ querystring@0.2.0
├─ randomfill@1.0.4
├─ rc@1.2.8
├─ read-cache@1.0.0
├─ read-pkg@1.1.0
├─ readdirp@2.1.0
├─ redent@1.0.0
├─ reduce-css-calc@1.3.0
├─ reduce-function-call@1.0.2
├─ regenerator-runtime@0.10.5
├─ regenerator-transform@0.10.1
├─ regexpu-core@1.0.0
├─ remove-trailing-separator@1.1.0
├─ repeat-element@1.1.3
├─ request@2.87.0
├─ require-from-string@2.0.2
├─ resolve-from@3.0.0
├─ resolve-url@0.2.1
├─ resolve@1.8.1
├─ ret@0.1.15
├─ rgb-hex@2.1.0
├─ rgb@0.1.0
├─ right-align@0.1.3
├─ rimraf@2.6.2
├─ run-queue@1.0.3
├─ safer-buffer@2.1.2
├─ sass-graph@2.2.4
├─ sass-loader@6.0.7
├─ sax@1.2.4
├─ scss-tokenizer@0.2.3
├─ semver@5.5.1
├─ set-immediate-shim@1.0.1
├─ set-value@2.0.0
├─ setimmediate@1.0.5
├─ shallow-clone@1.0.0
├─ shebang-command@1.2.0
├─ shebang-regex@1.0.0
├─ simple-swizzle@0.2.2
├─ slash@1.0.0
├─ snapdragon-node@2.1.1
├─ snapdragon-util@3.0.1
├─ sort-keys@1.1.2
├─ source-map-resolve@0.5.2
├─ source-map-support@0.4.18
├─ source-map-url@0.4.0
├─ spdx-correct@3.0.0
├─ spdx-exceptions@2.1.0
├─ split-string@3.1.0
├─ sprintf-js@1.0.3
├─ sshpk@1.14.2
├─ ssri@5.3.0
├─ static-extend@0.1.2
├─ stdout-stream@1.4.0
├─ stream-browserify@2.0.1
├─ stream-each@1.2.3
├─ stream-http@2.8.3
├─ strict-uri-encode@1.1.0
├─ string_decoder@1.1.1
├─ strip-bom@2.0.0
├─ strip-eof@1.0.0
├─ strip-indent@1.0.1
├─ strip-json-comments@2.0.1
├─ style-loader@0.21.0
├─ supports-color@5.5.0
├─ svgo@0.7.2
├─ tar@2.2.1
├─ through2@2.0.3
├─ timers-browserify@2.0.10
├─ to-arraybuffer@1.0.1
├─ to-fast-properties@1.0.3
├─ to-regex-range@2.1.1
├─ tough-cookie@2.3.4
├─ trim-newlines@1.0.0
├─ trim-right@1.0.1
├─ true-case-path@1.0.2
├─ tty-browserify@0.0.0
├─ tweetnacl@0.14.5
├─ typedarray@0.0.6
├─ uglify-es@3.3.9
├─ uglify-js@2.8.29
├─ uglify-to-browserify@1.0.2
├─ uglifyjs-webpack-plugin@1.3.0
├─ union-value@1.0.0
├─ unique-filename@1.1.0
├─ unique-slug@2.0.0
├─ units-css@0.4.0
├─ unset-value@1.0.0
├─ upath@1.1.0
├─ uri-js@4.2.2
├─ urix@0.1.0
├─ url@0.11.0
├─ use@3.1.1
├─ util-deprecate@1.0.2
├─ util@0.10.4
├─ uuid@3.3.2
├─ validate-npm-package-license@3.0.4
├─ vendors@1.0.2
├─ verror@1.10.0
├─ viewport-dimensions@0.2.0
├─ vm-browserify@0.0.4
├─ watchpack@1.6.0
├─ webpack-manifest-plugin@1.3.2
├─ webpack@3.12.0
├─ whet.extend@0.9.9
├─ which-module@2.0.0
├─ wide-align@1.1.3
├─ window-size@0.1.0
├─ wordwrap@0.0.2
├─ worker-farm@1.6.0
├─ wrap-ansi@2.1.0
├─ xtend@4.0.1
├─ yallist@3.0.2
├─ yargs-parser@7.0.0
└─ yargs@8.0.2
✨ Done in 15.71s.
Installing dev server for live reloading
run yarn add --dev webpack-dev-server@2.11.2 from "."
yarn add v1.9.4
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[-----------------------------------------------------------------------] 0/917(node:34294) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[3/4] 🔗 Linking dependencies...
warning "@rails/webpacker > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697".
warning " > webpack-dev-server@2.11.2" has unmet peer dependency "webpack@^2.2.0 || ^3.0.0".
warning "webpack-dev-server > webpack-dev-middleware@1.12.2" has unmet peer dependency "webpack@^1.0.0 || ^2.0.0 || ^3.0.0".
[4/4] 📃 Building fresh packages...
success Saved lockfile.
success Saved 115 new dependencies.
info Direct dependencies
└─ webpack-dev-server@2.11.2
info All dependencies
├─ accepts@1.3.5
├─ ansi-html@0.0.7
├─ array-flatten@1.1.1
├─ array-includes@3.0.3
├─ array-union@1.0.2
├─ array-uniq@1.0.3
├─ batch@0.6.1
├─ body-parser@1.18.2
├─ bonjour@3.5.0
├─ buffer-indexof@1.1.1
├─ compressible@2.0.14
├─ compression@1.7.3
├─ connect-history-api-fallback@1.5.0
├─ content-disposition@0.5.2
├─ cookie-signature@1.0.6
├─ cookie@0.3.1
├─ deep-equal@1.0.1
├─ define-properties@1.1.3
├─ del@3.0.0
├─ destroy@1.0.4
├─ detect-node@2.0.3
├─ dns-equal@1.0.0
├─ dns-packet@1.3.1
├─ dns-txt@2.0.2
├─ ee-first@1.1.1
├─ es-abstract@1.12.0
├─ es-to-primitive@1.1.1
├─ eventemitter3@3.1.0
├─ eventsource@0.1.6
├─ expand-brackets@0.1.5
├─ expand-range@1.8.2
├─ express@4.16.3
├─ extglob@0.3.2
├─ faye-websocket@0.10.0
├─ filename-regex@2.0.1
├─ finalhandler@1.1.1
├─ follow-redirects@1.5.7
├─ forwarded@0.1.2
├─ glob-base@0.3.0
├─ globby@6.1.0
├─ handle-thing@1.2.5
├─ hpack.js@2.1.6
├─ html-entities@1.2.1
├─ http-deceiver@1.2.7
├─ http-parser-js@0.4.13
├─ http-proxy-middleware@0.17.4
├─ http-proxy@1.17.0
├─ import-local@1.0.0
├─ internal-ip@1.2.0
├─ ip@1.1.5
├─ ipaddr.js@1.8.0
├─ is-callable@1.1.4
├─ is-date-object@1.0.1
├─ is-dotfile@1.0.3
├─ is-equal-shallow@0.1.3
├─ is-path-cwd@1.0.0
├─ is-path-in-cwd@1.0.1
├─ is-path-inside@1.0.1
├─ is-posix-bracket@0.1.1
├─ is-primitive@2.0.0
├─ is-regex@1.0.4
├─ is-symbol@1.0.1
├─ is-wsl@1.1.0
├─ json3@3.3.2
├─ killable@1.0.0
├─ loglevel@1.6.1
├─ math-random@1.0.1
├─ media-typer@0.3.0
├─ merge-descriptors@1.0.1
├─ methods@1.1.2
├─ micromatch@2.3.11
├─ mime-db@1.36.0
├─ mime@1.6.0
├─ multicast-dns-service-types@1.1.0
├─ multicast-dns@6.2.3
├─ negotiator@0.6.1
├─ node-forge@0.7.5
├─ object-keys@1.0.12
├─ object.omit@2.0.1
├─ obuf@1.1.2
├─ on-headers@1.0.1
├─ opn@5.3.0
├─ original@1.0.2
├─ p-map@1.2.0
├─ parse-glob@3.0.4
├─ path-is-inside@1.0.2
├─ path-to-regexp@0.1.7
├─ portfinder@1.0.17
├─ preserve@0.2.0
├─ proxy-addr@2.0.4
├─ querystringify@2.0.0
├─ randomatic@3.1.0
├─ raw-body@2.3.2
├─ regex-cache@0.4.4
├─ resolve-cwd@2.0.0
├─ select-hose@2.0.0
├─ selfsigned@1.10.3
├─ serve-index@1.9.1
├─ serve-static@1.13.2
├─ sockjs-client@1.1.4
├─ sockjs@0.3.19
├─ spdy-transport@2.1.0
├─ spdy@3.4.7
├─ thunky@1.0.2
├─ time-stamp@2.1.0
├─ type-is@1.6.16
├─ unpipe@1.0.0
├─ url-parse@1.4.3
├─ utils-merge@1.0.1
├─ wbuf@1.7.3
├─ webpack-dev-middleware@1.12.2
├─ webpack-dev-server@2.11.2
├─ websocket-extensions@0.1.3
├─ yargs-parser@4.2.1
└─ yargs@6.6.0
✨ Done in 4.10s.
You need to allow webpack-dev-server host as allowed origin for connect-src.
This can be done in Rails 5.2+ for development environment in the CSP initializer
config/initializers/content_security_policy.rb with a snippet like this:
policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
Webpacker successfully installed 🎉 🍰
rails webpacker:install:elm
Webpacker is installed 🎉 🍰
Using /Users/ngw/myapp/config/webpacker.yml file for setting up webpack paths
Copying elm loader to config/webpack/loaders
create config/webpack/loaders/elm.js
Adding elm loader to config/webpack/environment.js
insert config/webpack/environment.js
insert config/webpack/environment.js
Copying Elm example entry file to /Users/ngw/myapp/app/javascript/packs
create app/javascript/packs/hello_elm.js
Copying Elm app file to /Users/ngw/myapp/app/javascript
create app/javascript/Main.elm
Installing all Elm dependencies
run yarn add elm elm-webpack-loader from "."
yarn add v1.9.4
[1/4] 🔍 Resolving packages...
warning elm > binwrap > unzip > fstream > graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
warning elm-webpack-loader > elm > request > node-uuid@1.4.8: Use uuid module instead
warning elm-webpack-loader > elm > request > hawk > hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
warning elm-webpack-loader > elm > request > hawk > boom > hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
warning elm-webpack-loader > elm > request > hawk > sntp > hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
[2/4] 🚚 Fetching packages...
[-----------------------------------------------------------------------] 0/974(node:34313) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[3/4] 🔗 Linking dependencies...
warning "@rails/webpacker > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697".
warning " > webpack-dev-server@2.11.2" has unmet peer dependency "webpack@^2.2.0 || ^3.0.0".
warning "webpack-dev-server > webpack-dev-middleware@1.12.2" has unmet peer dependency "webpack@^1.0.0 || ^2.0.0 || ^3.0.0".
[4/4] 📃 Building fresh packages...
success Saved lockfile.
success Saved 34 new dependencies.
info Direct dependencies
├─ elm-webpack-loader@4.5.0
└─ elm@0.19.0-bugfix2
info All dependencies
├─ asap@2.0.6
├─ binary@0.3.0
├─ binwrap@0.1.4
├─ bl@1.1.2
├─ chainsaw@0.1.0
├─ cross-spawn@4.0.0
├─ cryptiles@2.0.5
├─ elm-webpack-loader@4.5.0
├─ elm@0.19.0-bugfix2
├─ find-elm-dependencies@1.0.2
├─ firstline@1.2.0
├─ generate-function@2.0.0
├─ generate-object-property@1.2.0
├─ hawk@3.1.3
├─ is-my-ip-valid@1.0.0
├─ is-my-json-valid@2.19.0
├─ is-property@1.0.2
├─ jsonpointer@4.0.1
├─ match-stream@0.0.2
├─ natives@1.1.4
├─ node-elm-compiler@4.5.0
├─ node-uuid@1.4.8
├─ over@0.0.5
├─ promise@7.1.1
├─ pullstream@0.4.1
├─ request-promise-core@1.1.1
├─ request-promise@4.2.2
├─ slice-stream@1.0.0
├─ sntp@1.0.9
├─ stealthy-require@1.1.1
├─ stringstream@0.0.6
├─ temp@0.8.3
├─ traverse@0.3.9
└─ unzip@0.1.11
✨ Done in 7.38s.
run yarn add --dev elm-hot-loader from "."
yarn add v1.9.4
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[-----------------------------------------------------------------------] 0/976(node:34317) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[3/4] 🔗 Linking dependencies...
warning "@rails/webpacker > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697".
warning " > webpack-dev-server@2.11.2" has unmet peer dependency "webpack@^2.2.0 || ^3.0.0".
warning "webpack-dev-server > webpack-dev-middleware@1.12.2" has unmet peer dependency "webpack@^1.0.0 || ^2.0.0 || ^3.0.0".
[4/4] 📃 Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ elm-hot-loader@0.5.4
info All dependencies
└─ elm-hot-loader@0.5.4
✨ Done in 3.04s.
run yarn run elm package install -- --yes from "."
yarn run v1.9.4
warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
$ /Users/ngw/myapp/node_modules/.bin/elm package install --yes
There is no package command.
Run `elm` with no arguments to get more hints.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Updating webpack paths to include .elm file extension
insert config/webpacker.yml
Updating Elm source location
gsub elm-package.json
rails aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - /Users/ngw/myapp/elm-package.json
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/thor-0.20.0/lib/thor/actions/file_manipulation.rb:263:in `binread'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/thor-0.20.0/lib/thor/actions/file_manipulation.rb:263:in `gsub_file'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/webpacker-3.5.5/lib/install/elm.rb:32:in `apply'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/thor-0.20.0/lib/thor/actions.rb:225:in `instance_eval'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/thor-0.20.0/lib/thor/actions.rb:225:in `apply'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/railties-5.2.1/lib/rails/tasks/framework.rake:15:in `block (2 levels) in <main>'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/railties-5.2.1/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/railties-5.2.1/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/railties-5.2.1/lib/rails/command.rb:48:in `invoke'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/railties-5.2.1/lib/rails/commands.rb:18:in `<main>'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
/Users/ngw/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
./bin/rails:4:in `<main>'
Tasks: TOP => app:template
(See full trace by running task with --trace)
run bundle exec spring binstub --all
* bin/rake: spring inserted
* bin/rails: spring inserted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment