rubyonjets / jets

Ruby on Jets
http://rubyonjets.com
MIT License
2.6k stars 181 forks source link

Webpack not compiling #246

Closed alxx closed 5 years ago

alxx commented 5 years ago

My Environment

Software Version
Operating System OSX 10.13.6
Jets 1.8.11
Ruby 2.5.3

Expected Behaviour

jets webpack:install should run without errors

Current Behavior

The installation crashes because it can't install bootstrap, because there's actually nothing at https://registry.npmjs.org/stdlib.themes.bootstrap.opx (well, there's a JSON with the error "Not found").

Step-by-step reproduction instructions

jets new demo
cd demo
bundle install
jets webpack:install

Full error:

$ jets webpacker:install
   identical  config/webpacker.yml
Copying webpack core config
       exist  config/webpack
   identical  config/webpack/development.js
   identical  config/webpack/environment.js
   identical  config/webpack/production.js
   identical  config/webpack/staging.js
   identical  config/webpack/test.js
Copying .postcssrc.yml to app root directory
   identical  .postcssrc.yml
Copying .babelrc to app root directory
   identical  .babelrc
Installing binstubs
         run  bundle binstubs webpacker from "."
Skipped webpack and webpack-dev-server since they already exist.
If you want to overwrite skipped stubs, use --force.
      append  .gitignore
Installing all JavaScript dependencies
         run  yarn add @rails/webpacker coffeescript@1.12.7 from "."
yarn add v1.15.2
warning package.json: No license field
info No lockfile found.
warning link@1.1.0: No license field
[1/4] 🔍  Resolving packages...
error An unexpected error occurred: "https://registry.npmjs.org/stdlib.themes.bootstrap.opx: Not found".
info If you think this is a bug, please open a bug report with the information provided in "/Users/alxx/abc/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Installing dev server for live reloading
         run  yarn add --dev webpack-dev-server from "."
yarn add v1.15.2
warning package.json: No license field
info No lockfile found.
warning link@1.1.0: No license field
[1/4] 🔍  Resolving packages...
error An unexpected error occurred: "https://registry.npmjs.org/stdlib.themes.bootstrap.opx: Not found".
info If you think this is a bug, please open a bug report with the information provided in "/Users/alxx/abc/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Webpacker successfully installed 🎉 🍰
       exist  app/javascript
   identical  app/javascript/packs/application.js
   identical  app/javascript/packs/theme.scss
   identical  app/javascript/src/jets/crud.js
tongueroo commented 5 years ago

Unable to reproduce the issue. Unsure if it makes a difference but here are my node and yarn versions on a macosx machine just in case.

$ node --version
v8.10.0
$ yarn --version
1.10.1
$ 

This also reminds me of:

Believe in those cases, it was a system specific setup that was somehow resolved but issue itself was not identified.

Click Me for Step by Step Commands ```bash $ jets new demo Creating new project called demo. create demo create demo/.env.development create demo/.env.test create demo/.env create demo/.gitignore create demo/.jetskeep create demo/.rspec create demo/Gemfile create demo/Procfile create demo/README.md create demo/Rakefile create demo/app/controllers/application_controller.rb create demo/app/helpers/application_helper.rb create demo/app/jobs/application_job.rb create demo/app/models/application_item.rb create demo/app/models/application_record.rb create demo/app/views/layouts/application.html.erb create demo/config.ru create demo/config/application.rb create demo/config/database.yml create demo/config/dynamodb.yml create demo/config/environments/development.rb create demo/config/environments/production.rb create demo/config/environments/test.rb create demo/config/routes.rb create demo/db/.gitkeep create demo/public/404.html create demo/public/422.html create demo/public/500.html create demo/public/favicon.ico create demo/public/index.html create demo/spec/controllers/posts_controller_spec.rb create demo/spec/fixtures/payloads/posts-index.json create demo/spec/fixtures/payloads/posts-show.json create demo/spec/spec_helper.rb Fetching https://github.com/tongueroo/webpacker.git Fetching gem metadata from https://rubygems.org/........ Resolving dependencies.... Using rake 12.3.2 Using concurrent-ruby 1.1.5 Using i18n 1.6.0 Using minitest 5.11.3 Using thread_safe 0.3.6 Using tzinfo 1.2.5 Using activesupport 5.2.3 Using builder 3.2.3 Using erubi 1.8.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.3 Using rails-dom-testing 2.0.3 Using crass 1.0.4 Using loofah 2.2.3 Using rails-html-sanitizer 1.0.4 Using actionview 5.2.3 Using rack 2.0.7 Using rack-test 1.1.0 Using actionpack 5.2.3 Using globalid 0.4.2 Using activejob 5.2.3 Using mini_mime 1.0.1 Using mail 2.7.1 Using actionmailer 5.2.3 Using activemodel 5.2.3 Using arel 9.0.0 Using activerecord 5.2.3 Using public_suffix 3.0.3 Using addressable 2.6.0 Using aws-eventstream 1.0.3 Using aws-partitions 1.160.0 Using aws-sigv4 1.1.0 Using jmespath 1.4.0 Using aws-sdk-core 3.50.0 Using aws-sdk-apigateway 1.26.0 Using aws-sdk-cloudformation 1.19.0 Using aws-sdk-cloudwatchlogs 1.17.0 Using aws-sdk-dynamodb 1.26.0 Using aws-sdk-kinesis 1.13.1 Using aws-sdk-kms 1.18.0 Using aws-sdk-lambda 1.22.0 Using aws-sdk-s3 1.36.1 Using aws-sdk-sns 1.13.0 Using aws-sdk-sqs 1.13.0 Using bundler 2.0.1 Using byebug 11.0.1 Fetching regexp_parser 1.4.0 Installing regexp_parser 1.4.0 Using xpath 3.2.0 Fetching capybara 3.18.0 Installing capybara 3.18.0 Using cfnresponse 0.4.0 Using diff-lcs 1.3 Using dotenv 2.7.2 Using dynomite 1.2.2 Using json 2.2.0 Using gems 1.1.1 Using hashie 3.6.0 Using jets-html-sanitizer 1.0.4 Using kramdown 2.1.0 Using memoist 0.16.0 Using mimemagic 0.3.3 Using method_source 0.9.2 Using thor 0.20.3 Using railties 5.2.3 Using rainbow 3.0.0 Using recursive-open-struct 1.1.0 Using text-table 1.2.4 Fetching jets 1.8.11 Installing jets 1.8.11 Using launchy 2.4.3 Using mysql2 0.5.2 Using rack-proxy 0.6.5 Using rspec-support 3.8.0 Using rspec-core 3.8.0 Using rspec-expectations 3.8.3 Using rspec-mocks 3.8.0 Using rspec 3.8.0 Using shotgun 0.9.2 Using webpacker 3.2.0 from https://github.com/tongueroo/webpacker.git (at jets@1a012c9) Bundle complete! 10 Gemfile dependencies, 77 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. run jets webpacker:install from "." 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/staging.js create config/webpack/test.js Copying .postcssrc.yml to app root directory create .postcssrc.yml Copying .babelrc to app root directory create .babelrc Installing binstubs run bundle binstubs webpacker from "." append .gitignore Installing all JavaScript dependencies run yarn add @rails/webpacker coffeescript@1.12.7 from "." yarn add v1.10.1 info No lockfile found. [1/4] 🔍 Resolving packages... warning @rails/webpacker > postcss-preset-env > postcss-color-gray > postcss-values-parser > flatten@1.0.2: I wrote this module a very long time ago; you should use something else. [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning "@rails/webpacker > pnp-webpack-plugin > ts-pnp@1.1.2" has unmet peer dependency "typescript@*". [4/4] 📃 Building fresh packages... success Saved lockfile. warning Your current version of Yarn is out of date. The latest version is "1.15.2", while you're on "1.10.1". info To upgrade, run the following command: $ curl --compressed -o- -L https://yarnpkg.com/install.sh | bash success Saved 593 new dependencies. info Direct dependencies ├─ @rails/webpacker@4.0.2 └─ coffeescript@1.12.7 info All dependencies ├─ @babel/core@7.4.4 ├─ @babel/helper-builder-binary-assignment-operator-visitor@7.1.0 ├─ @babel/helper-call-delegate@7.4.4 ├─ @babel/helper-create-class-features-plugin@7.4.4 ├─ @babel/helper-define-map@7.4.4 ├─ @babel/helper-explode-assignable-expression@7.1.0 ├─ @babel/helper-replace-supers@7.4.4 ├─ @babel/helper-wrap-function@7.2.0 ├─ @babel/helpers@7.4.4 ├─ @babel/highlight@7.0.0 ├─ @babel/plugin-proposal-async-generator-functions@7.2.0 ├─ @babel/plugin-proposal-class-properties@7.4.4 ├─ @babel/plugin-proposal-json-strings@7.2.0 ├─ @babel/plugin-proposal-object-rest-spread@7.4.4 ├─ @babel/plugin-proposal-optional-catch-binding@7.2.0 ├─ @babel/plugin-proposal-unicode-property-regex@7.4.4 ├─ @babel/plugin-syntax-dynamic-import@7.2.0 ├─ @babel/plugin-transform-arrow-functions@7.2.0 ├─ @babel/plugin-transform-async-to-generator@7.4.4 ├─ @babel/plugin-transform-block-scoped-functions@7.2.0 ├─ @babel/plugin-transform-block-scoping@7.4.4 ├─ @babel/plugin-transform-classes@7.4.4 ├─ @babel/plugin-transform-computed-properties@7.2.0 ├─ @babel/plugin-transform-destructuring@7.4.4 ├─ @babel/plugin-transform-dotall-regex@7.4.4 ├─ @babel/plugin-transform-duplicate-keys@7.2.0 ├─ @babel/plugin-transform-exponentiation-operator@7.2.0 ├─ @babel/plugin-transform-for-of@7.4.4 ├─ @babel/plugin-transform-function-name@7.4.4 ├─ @babel/plugin-transform-literals@7.2.0 ├─ @babel/plugin-transform-member-expression-literals@7.2.0 ├─ @babel/plugin-transform-modules-amd@7.2.0 ├─ @babel/plugin-transform-modules-commonjs@7.4.4 ├─ @babel/plugin-transform-modules-systemjs@7.4.4 ├─ @babel/plugin-transform-modules-umd@7.2.0 ├─ @babel/plugin-transform-named-capturing-groups-regex@7.4.4 ├─ @babel/plugin-transform-new-target@7.4.4 ├─ @babel/plugin-transform-object-super@7.2.0 ├─ @babel/plugin-transform-parameters@7.4.4 ├─ @babel/plugin-transform-property-literals@7.2.0 ├─ @babel/plugin-transform-regenerator@7.4.4 ├─ @babel/plugin-transform-reserved-words@7.2.0 ├─ @babel/plugin-transform-runtime@7.4.4 ├─ @babel/plugin-transform-shorthand-properties@7.2.0 ├─ @babel/plugin-transform-spread@7.2.2 ├─ @babel/plugin-transform-sticky-regex@7.2.0 ├─ @babel/plugin-transform-template-literals@7.4.4 ├─ @babel/plugin-transform-typeof-symbol@7.2.0 ├─ @babel/plugin-transform-unicode-regex@7.4.4 ├─ @babel/polyfill@7.4.4 ├─ @babel/preset-env@7.4.4 ├─ @babel/runtime@7.4.4 ├─ @rails/webpacker@4.0.2 ├─ @types/q@1.5.2 ├─ @webassemblyjs/floating-point-hex-parser@1.8.5 ├─ @webassemblyjs/helper-code-frame@1.8.5 ├─ @webassemblyjs/helper-fsm@1.8.5 ├─ @webassemblyjs/helper-wasm-section@1.8.5 ├─ @webassemblyjs/wasm-edit@1.8.5 ├─ @webassemblyjs/wasm-opt@1.8.5 ├─ @xtuc/ieee754@1.2.0 ├─ abbrev@1.1.1 ├─ acorn-dynamic-import@4.0.0 ├─ acorn@6.1.1 ├─ ajv-errors@1.0.1 ├─ ajv@6.10.0 ├─ amdefine@1.0.1 ├─ ansi-styles@3.2.1 ├─ anymatch@2.0.0 ├─ are-we-there-yet@1.1.5 ├─ argparse@1.0.10 ├─ arr-flatten@1.1.0 ├─ array-find-index@1.0.2 ├─ asn1.js@4.10.1 ├─ asn1@0.2.4 ├─ assert@1.5.0 ├─ assign-symbols@1.0.0 ├─ async-each@1.0.3 ├─ async-foreach@0.1.3 ├─ asynckit@0.4.0 ├─ atob@2.1.2 ├─ autoprefixer@9.5.1 ├─ aws-sign2@0.7.0 ├─ aws4@1.8.0 ├─ babel-loader@8.0.5 ├─ babel-plugin-dynamic-import-node@2.2.0 ├─ babel-plugin-macros@2.5.1 ├─ base@0.11.2 ├─ base64-js@1.3.0 ├─ bcrypt-pbkdf@1.0.2 ├─ big.js@5.2.2 ├─ binary-extensions@1.13.1 ├─ block-stream@0.0.9 ├─ bluebird@3.5.4 ├─ boolbase@1.0.0 ├─ 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 ├─ buffer-xor@1.0.3 ├─ buffer@4.9.1 ├─ builtin-status-codes@3.0.0 ├─ cacache@11.3.2 ├─ cache-base@1.0.1 ├─ caller-callsite@2.0.0 ├─ caller-path@2.0.0 ├─ callsites@2.0.0 ├─ camelcase-keys@2.1.0 ├─ caniuse-lite@1.0.30000967 ├─ case-sensitive-paths-webpack-plugin@2.2.0 ├─ caseless@0.12.0 ├─ chokidar@2.1.5 ├─ chownr@1.1.1 ├─ chrome-trace-event@1.0.0 ├─ class-utils@0.3.6 ├─ cliui@4.1.0 ├─ clone-deep@2.0.2 ├─ coa@2.0.2 ├─ code-point-at@1.1.0 ├─ coffeescript@1.12.7 ├─ collection-visit@1.0.0 ├─ color-convert@1.9.3 ├─ color-name@1.1.3 ├─ color-string@1.5.3 ├─ color@3.1.1 ├─ combined-stream@1.0.7 ├─ commander@2.20.0 ├─ commondir@1.0.1 ├─ compression-webpack-plugin@2.0.0 ├─ 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.6.0 ├─ copy-concurrently@1.0.5 ├─ copy-descriptor@0.1.1 ├─ core-js-compat@3.0.1 ├─ core-js-pure@3.0.1 ├─ core-js@2.6.5 ├─ core-util-is@1.0.2 ├─ cosmiconfig@5.2.0 ├─ create-ecdh@4.0.3 ├─ create-hmac@1.1.7 ├─ cross-spawn@6.0.5 ├─ crypto-browserify@3.12.0 ├─ css-blank-pseudo@0.1.4 ├─ css-color-names@0.0.4 ├─ css-declaration-sorter@4.0.1 ├─ css-has-pseudo@0.10.0 ├─ css-loader@2.1.1 ├─ css-prefers-color-scheme@3.1.1 ├─ css-select-base-adapter@0.1.1 ├─ css-select@2.0.2 ├─ css-tree@1.0.0-alpha.28 ├─ css-unit-converter@1.1.1 ├─ css-url-regex@1.1.0 ├─ css-what@2.1.3 ├─ cssdb@4.4.0 ├─ cssesc@2.0.0 ├─ cssnano-preset-default@4.0.7 ├─ cssnano-util-raw-cache@4.0.1 ├─ cssnano-util-same-parent@4.0.1 ├─ cssnano@4.1.10 ├─ csso@3.5.1 ├─ currently-unhandled@0.4.1 ├─ cyclist@0.2.2 ├─ dashdash@1.14.1 ├─ date-now@0.1.4 ├─ debug@4.1.1 ├─ decode-uri-component@0.2.0 ├─ deep-extend@0.6.0 ├─ define-properties@1.1.3 ├─ delayed-stream@1.0.0 ├─ delegates@1.0.0 ├─ des.js@1.0.0 ├─ detect-file@1.0.0 ├─ detect-libc@1.0.3 ├─ diffie-hellman@5.0.3 ├─ dom-serializer@0.1.1 ├─ domain-browser@1.2.0 ├─ domelementtype@1.3.1 ├─ domutils@1.7.0 ├─ dot-prop@4.2.0 ├─ duplexify@3.7.1 ├─ ecc-jsbn@0.1.2 ├─ electron-to-chromium@1.3.133 ├─ emojis-list@2.1.0 ├─ entities@1.1.2 ├─ errno@0.1.7 ├─ error-ex@1.3.2 ├─ es-abstract@1.13.0 ├─ es-to-primitive@1.2.0 ├─ escape-string-regexp@1.0.5 ├─ eslint-scope@4.0.3 ├─ esprima@4.0.1 ├─ esrecurse@4.2.1 ├─ estraverse@4.2.0 ├─ events@3.0.0 ├─ execa@1.0.0 ├─ expand-brackets@2.1.4 ├─ expand-tilde@2.0.2 ├─ extend@3.0.2 ├─ extglob@2.0.4 ├─ extsprintf@1.3.0 ├─ fast-deep-equal@2.0.1 ├─ fast-json-stable-stringify@2.0.0 ├─ file-loader@3.0.1 ├─ fill-range@4.0.0 ├─ findup-sync@2.0.0 ├─ flatted@2.0.0 ├─ flatten@1.0.2 ├─ flush-write-stream@1.1.1 ├─ for-in@1.0.2 ├─ for-own@1.0.0 ├─ forever-agent@0.6.1 ├─ form-data@2.3.3 ├─ from2@2.3.0 ├─ fs-minipass@1.2.5 ├─ fs.realpath@1.0.0 ├─ fsevents@1.2.9 ├─ fstream@1.0.11 ├─ gauge@2.7.4 ├─ gaze@1.1.3 ├─ get-stream@4.1.0 ├─ get-value@2.0.6 ├─ getpass@0.1.7 ├─ glob-parent@3.1.0 ├─ glob@7.1.4 ├─ global-prefix@1.0.2 ├─ globule@1.2.1 ├─ har-schema@2.0.0 ├─ har-validator@5.1.3 ├─ has-ansi@2.0.0 ├─ has-unicode@2.0.1 ├─ has-value@1.0.0 ├─ has-values@1.0.0 ├─ hash.js@1.1.7 ├─ hex-color-regex@1.1.0 ├─ hmac-drbg@1.0.1 ├─ hosted-git-info@2.7.1 ├─ hsl-regex@1.0.0 ├─ hsla-regex@1.0.0 ├─ html-comment-regex@1.1.2 ├─ http-signature@1.2.0 ├─ https-browserify@1.0.0 ├─ iconv-lite@0.4.24 ├─ icss-replace-symbols@1.1.0 ├─ icss-utils@4.1.0 ├─ ieee754@1.1.13 ├─ ignore-walk@3.0.1 ├─ import-cwd@2.1.0 ├─ import-fresh@2.0.0 ├─ import-from@2.1.0 ├─ import-local@2.0.0 ├─ in-publish@2.0.0 ├─ indent-string@2.1.0 ├─ indexof@0.0.1 ├─ inflight@1.0.6 ├─ ini@1.3.5 ├─ interpret@1.2.0 ├─ invariant@2.2.4 ├─ invert-kv@2.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-color-stop@1.1.0 ├─ is-data-descriptor@1.0.0 ├─ is-date-object@1.0.1 ├─ is-descriptor@1.0.2 ├─ is-extglob@2.1.1 ├─ is-finite@1.0.2 ├─ is-fullwidth-code-point@1.0.0 ├─ is-obj@1.0.1 ├─ is-plain-object@2.0.4 ├─ is-regex@1.0.4 ├─ is-resolvable@1.1.0 ├─ is-stream@1.1.0 ├─ is-svg@3.0.0 ├─ is-symbol@1.0.2 ├─ is-typedarray@1.0.0 ├─ is-utf8@0.2.1 ├─ is-windows@1.0.2 ├─ isarray@1.0.0 ├─ isexe@2.0.0 ├─ isstream@0.1.2 ├─ js-base64@2.5.1 ├─ js-levenshtein@1.1.6 ├─ js-tokens@4.0.0 ├─ js-yaml@3.13.1 ├─ jsesc@2.5.2 ├─ json-parse-better-errors@1.0.2 ├─ json-schema-traverse@0.4.1 ├─ json-schema@0.2.3 ├─ json-stringify-safe@5.0.1 ├─ json5@2.1.0 ├─ jsprim@1.4.1 ├─ kind-of@3.2.2 ├─ last-call-webpack-plugin@3.0.0 ├─ lcid@2.0.0 ├─ load-json-file@1.1.0 ├─ loader-runner@2.4.0 ├─ locate-path@3.0.0 ├─ lodash.get@4.4.2 ├─ lodash.has@4.5.2 ├─ lodash.memoize@4.1.2 ├─ lodash.tail@4.1.1 ├─ lodash.template@4.4.0 ├─ lodash.templatesettings@4.1.0 ├─ lodash.uniq@4.5.0 ├─ lodash@4.17.11 ├─ loose-envify@1.4.0 ├─ loud-rejection@1.6.0 ├─ lru-cache@4.1.5 ├─ make-dir@2.1.0 ├─ mamacro@0.0.3 ├─ map-age-cleaner@0.1.3 ├─ map-obj@1.0.1 ├─ map-visit@1.0.0 ├─ mem@4.3.0 ├─ memory-fs@0.4.1 ├─ meow@3.7.0 ├─ micromatch@3.1.10 ├─ miller-rabin@4.0.1 ├─ mime-db@1.40.0 ├─ mime-types@2.1.24 ├─ mimic-fn@2.1.0 ├─ mini-css-extract-plugin@0.5.0 ├─ minimalistic-crypto-utils@1.0.1 ├─ minimatch@3.0.4 ├─ minimist@1.2.0 ├─ minizlib@1.2.1 ├─ mississippi@3.0.0 ├─ mixin-deep@1.3.1 ├─ mixin-object@2.0.1 ├─ mkdirp@0.5.1 ├─ move-concurrently@1.0.1 ├─ ms@2.1.1 ├─ nan@2.13.2 ├─ nanomatch@1.2.13 ├─ needle@2.3.1 ├─ nice-try@1.0.5 ├─ node-gyp@3.8.0 ├─ node-libs-browser@2.2.0 ├─ node-pre-gyp@0.12.0 ├─ node-releases@1.1.18 ├─ node-sass@4.12.0 ├─ nopt@3.0.6 ├─ normalize-package-data@2.5.0 ├─ normalize-range@0.1.2 ├─ normalize-url@3.3.0 ├─ npm-bundled@1.0.6 ├─ npm-packlist@1.4.1 ├─ npm-run-path@2.0.2 ├─ npmlog@4.1.2 ├─ nth-check@1.0.2 ├─ num2fraction@1.2.2 ├─ oauth-sign@0.9.0 ├─ object-assign@4.1.1 ├─ object-copy@0.1.0 ├─ object.assign@4.1.0 ├─ object.getownpropertydescriptors@2.0.3 ├─ object.values@1.1.0 ├─ optimize-css-assets-webpack-plugin@5.0.1 ├─ os-browserify@0.3.0 ├─ os-homedir@1.0.2 ├─ os-locale@3.1.0 ├─ os-tmpdir@1.0.2 ├─ osenv@0.1.5 ├─ p-defer@1.0.0 ├─ p-finally@1.0.0 ├─ p-is-promise@2.1.0 ├─ p-limit@2.2.0 ├─ p-locate@3.0.0 ├─ p-try@2.2.0 ├─ pako@1.0.10 ├─ parallel-transform@1.1.0 ├─ parse-passwd@1.0.0 ├─ pascalcase@0.1.1 ├─ path-browserify@0.0.0 ├─ path-complete-extname@1.0.0 ├─ path-dirname@1.0.2 ├─ path-exists@3.0.0 ├─ path-key@2.0.1 ├─ path-parse@1.0.6 ├─ path-type@1.1.0 ├─ performance-now@2.1.0 ├─ pinkie@2.0.4 ├─ pnp-webpack-plugin@1.4.3 ├─ posix-character-classes@0.1.1 ├─ postcss-attribute-case-insensitive@4.0.1 ├─ postcss-calc@7.0.1 ├─ postcss-color-functional-notation@2.0.1 ├─ postcss-color-gray@5.0.0 ├─ postcss-color-hex-alpha@5.0.3 ├─ postcss-color-mod-function@3.0.3 ├─ postcss-color-rebeccapurple@4.0.1 ├─ postcss-colormin@4.0.3 ├─ postcss-convert-values@4.0.1 ├─ postcss-custom-media@7.0.8 ├─ postcss-custom-properties@8.0.10 ├─ postcss-custom-selectors@5.1.2 ├─ postcss-dir-pseudo-class@5.0.0 ├─ postcss-discard-comments@4.0.2 ├─ postcss-discard-duplicates@4.0.2 ├─ postcss-discard-empty@4.0.1 ├─ postcss-discard-overridden@4.0.1 ├─ postcss-double-position-gradients@1.0.0 ├─ postcss-env-function@2.0.2 ├─ postcss-flexbugs-fixes@4.1.0 ├─ postcss-focus-visible@4.0.0 ├─ postcss-focus-within@3.0.0 ├─ postcss-font-variant@4.0.0 ├─ postcss-gap-properties@2.0.0 ├─ postcss-image-set-function@3.0.1 ├─ postcss-import@12.0.1 ├─ postcss-initial@3.0.0 ├─ postcss-lab-function@2.0.1 ├─ postcss-load-config@2.0.0 ├─ postcss-loader@3.0.0 ├─ postcss-logical@3.0.0 ├─ postcss-media-minmax@4.0.0 ├─ postcss-merge-longhand@4.0.11 ├─ postcss-merge-rules@4.0.3 ├─ postcss-minify-font-values@4.0.2 ├─ postcss-minify-gradients@4.0.2 ├─ postcss-minify-params@4.0.2 ├─ postcss-minify-selectors@4.0.2 ├─ postcss-modules-extract-imports@2.0.0 ├─ postcss-modules-local-by-default@2.0.6 ├─ postcss-modules-scope@2.1.0 ├─ postcss-modules-values@2.0.0 ├─ postcss-nesting@7.0.0 ├─ postcss-normalize-charset@4.0.1 ├─ postcss-normalize-display-values@4.0.2 ├─ postcss-normalize-positions@4.0.2 ├─ postcss-normalize-repeat-style@4.0.2 ├─ postcss-normalize-string@4.0.2 ├─ postcss-normalize-timing-functions@4.0.2 ├─ postcss-normalize-unicode@4.0.1 ├─ postcss-normalize-url@4.0.1 ├─ postcss-normalize-whitespace@4.0.2 ├─ postcss-ordered-values@4.1.2 ├─ postcss-overflow-shorthand@2.0.0 ├─ postcss-page-break@2.0.0 ├─ postcss-place@4.0.1 ├─ postcss-preset-env@6.6.0 ├─ postcss-pseudo-class-any-link@6.0.0 ├─ postcss-reduce-initial@4.0.3 ├─ postcss-reduce-transforms@4.0.2 ├─ postcss-replace-overflow-wrap@3.0.0 ├─ postcss-safe-parser@4.0.1 ├─ postcss-selector-matches@4.0.0 ├─ postcss-selector-not@4.0.0 ├─ postcss-svgo@4.0.2 ├─ postcss-unique-selectors@4.0.1 ├─ 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.31 ├─ public-encrypt@4.0.3 ├─ pumpify@1.5.1 ├─ punycode@1.4.1 ├─ q@1.5.1 ├─ qs@6.5.2 ├─ 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.2.1 ├─ redent@1.0.0 ├─ regenerate-unicode-properties@8.0.2 ├─ regenerator-transform@0.13.4 ├─ regexp-tree@0.1.6 ├─ regjsgen@0.5.0 ├─ regjsparser@0.6.0 ├─ remove-trailing-separator@1.1.0 ├─ repeat-element@1.1.3 ├─ repeating@2.0.1 ├─ request@2.88.0 ├─ require-from-string@2.0.2 ├─ resolve-cwd@2.0.0 ├─ resolve-dir@1.0.1 ├─ resolve-url@0.2.1 ├─ ret@0.1.15 ├─ rgb-regex@1.0.1 ├─ rgba-regex@1.0.0 ├─ rimraf@2.6.3 ├─ ripemd160@2.0.2 ├─ run-queue@1.0.3 ├─ safer-buffer@2.1.2 ├─ sass-graph@2.2.4 ├─ sass-loader@7.1.0 ├─ sax@1.2.4 ├─ scss-tokenizer@0.2.3 ├─ semver@5.7.0 ├─ 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 ├─ snapdragon-node@2.1.1 ├─ snapdragon-util@3.0.1 ├─ source-list-map@2.0.1 ├─ source-map-resolve@0.5.2 ├─ source-map-support@0.5.12 ├─ source-map-url@0.4.0 ├─ spdx-correct@3.1.0 ├─ spdx-exceptions@2.2.0 ├─ split-string@3.1.0 ├─ sprintf-js@1.0.3 ├─ sshpk@1.16.1 ├─ ssri@6.0.1 ├─ stable@0.1.8 ├─ static-extend@0.1.2 ├─ stdout-stream@1.4.1 ├─ stream-browserify@2.0.2 ├─ stream-each@1.2.3 ├─ stream-http@2.8.3 ├─ string_decoder@1.2.0 ├─ strip-bom@2.0.0 ├─ strip-eof@1.0.0 ├─ strip-indent@1.0.1 ├─ strip-json-comments@2.0.1 ├─ style-loader@0.23.1 ├─ stylehacks@4.0.3 ├─ supports-color@5.5.0 ├─ svgo@1.2.2 ├─ tar@2.2.1 ├─ terser-webpack-plugin@1.2.3 ├─ terser@3.17.0 ├─ through2@2.0.5 ├─ timers-browserify@2.0.10 ├─ timsort@0.3.0 ├─ to-arraybuffer@1.0.1 ├─ to-fast-properties@2.0.0 ├─ to-regex-range@2.1.1 ├─ tough-cookie@2.4.3 ├─ trim-newlines@1.0.0 ├─ trim-right@1.0.1 ├─ true-case-path@1.0.3 ├─ ts-pnp@1.1.2 ├─ tslib@1.9.3 ├─ tty-browserify@0.0.0 ├─ tunnel-agent@0.6.0 ├─ tweetnacl@0.14.5 ├─ typedarray@0.0.6 ├─ unicode-canonical-property-names-ecmascript@1.0.4 ├─ unicode-match-property-ecmascript@1.0.4 ├─ unicode-match-property-value-ecmascript@1.1.0 ├─ unicode-property-aliases-ecmascript@1.0.5 ├─ union-value@1.0.0 ├─ unique-filename@1.1.1 ├─ unique-slug@2.0.1 ├─ unquote@1.1.1 ├─ unset-value@1.0.0 ├─ upath@1.1.2 ├─ uri-js@4.2.2 ├─ urix@0.1.0 ├─ url@0.11.0 ├─ use@3.1.1 ├─ util-deprecate@1.0.2 ├─ util.promisify@1.0.0 ├─ util@0.11.1 ├─ uuid@3.3.2 ├─ v8-compile-cache@2.0.2 ├─ validate-npm-package-license@3.0.4 ├─ vendors@1.0.3 ├─ verror@1.10.0 ├─ vm-browserify@0.0.4 ├─ watchpack@1.6.0 ├─ webpack-assets-manifest@3.1.1 ├─ webpack-cli@3.3.2 ├─ webpack@4.31.0 ├─ which-module@2.0.0 ├─ which@1.3.1 ├─ wide-align@1.1.3 ├─ worker-farm@1.7.0 ├─ xtend@4.0.1 ├─ y18n@4.0.0 ├─ yallist@3.0.3 ├─ yargs-parser@11.1.1 └─ yargs@12.0.5 ✨ Done in 17.19s. Installing dev server for live reloading run yarn add --dev webpack-dev-server from "." yarn add v1.10.1 warning package.json: No license field warning No license field [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning "@rails/webpacker > pnp-webpack-plugin > ts-pnp@1.1.2" has unmet peer dependency "typescript@*". warning "webpack-dev-server > webpack-dev-middleware@3.6.2" has unmet peer dependency "webpack@^4.0.0". warning " > webpack-dev-server@3.3.1" has unmet peer dependency "webpack@^4.0.0". [4/4] 📃 Building fresh packages... success Saved lockfile. success Saved 91 new dependencies. info Direct dependencies └─ webpack-dev-server@3.3.1 info All dependencies ├─ @types/events@3.0.0 ├─ @types/glob@7.1.1 ├─ @types/minimatch@3.0.3 ├─ @types/node@12.0.0 ├─ accepts@1.3.7 ├─ ansi-colors@3.2.4 ├─ ansi-html@0.0.7 ├─ array-flatten@1.1.1 ├─ array-union@1.0.2 ├─ array-uniq@1.0.3 ├─ async@1.5.2 ├─ batch@0.6.1 ├─ body-parser@1.18.3 ├─ bonjour@3.5.0 ├─ buffer-indexof@1.1.1 ├─ compressible@2.0.17 ├─ compression@1.7.4 ├─ connect-history-api-fallback@1.6.0 ├─ content-disposition@0.5.2 ├─ cookie-signature@1.0.6 ├─ cookie@0.3.1 ├─ deep-equal@1.0.1 ├─ default-gateway@4.2.0 ├─ del@4.1.1 ├─ destroy@1.0.4 ├─ detect-node@2.0.4 ├─ dns-equal@1.0.0 ├─ dns-packet@1.3.1 ├─ dns-txt@2.0.2 ├─ ee-first@1.1.1 ├─ eventemitter3@3.1.2 ├─ eventsource@1.0.7 ├─ express@4.16.4 ├─ faye-websocket@0.10.0 ├─ finalhandler@1.1.1 ├─ follow-redirects@1.7.0 ├─ forwarded@0.1.2 ├─ globby@6.1.0 ├─ handle-thing@2.0.0 ├─ hpack.js@2.1.6 ├─ html-entities@1.2.1 ├─ http-deceiver@1.2.7 ├─ http-errors@1.6.3 ├─ http-parser-js@0.5.0 ├─ http-proxy-middleware@0.19.1 ├─ http-proxy@1.17.0 ├─ internal-ip@4.3.0 ├─ ip-regex@2.1.0 ├─ ip@1.1.5 ├─ ipaddr.js@1.9.0 ├─ is-path-cwd@2.1.0 ├─ is-path-in-cwd@2.1.0 ├─ is-path-inside@2.1.0 ├─ is-wsl@1.1.0 ├─ json3@3.3.2 ├─ killable@1.0.1 ├─ loglevel@1.6.1 ├─ media-typer@0.3.0 ├─ merge-descriptors@1.0.1 ├─ methods@1.1.2 ├─ mime@2.4.2 ├─ multicast-dns-service-types@1.1.0 ├─ multicast-dns@6.2.3 ├─ negotiator@0.6.2 ├─ node-forge@0.7.5 ├─ obuf@1.1.2 ├─ on-headers@1.0.2 ├─ opn@5.5.0 ├─ original@1.0.2 ├─ p-map@2.1.0 ├─ path-is-inside@1.0.2 ├─ path-to-regexp@0.1.7 ├─ portfinder@1.0.20 ├─ proxy-addr@2.0.5 ├─ querystringify@2.1.1 ├─ raw-body@2.3.3 ├─ select-hose@2.0.0 ├─ selfsigned@1.10.4 ├─ serve-index@1.9.1 ├─ serve-static@1.13.2 ├─ sockjs-client@1.3.0 ├─ sockjs@0.3.19 ├─ spdy-transport@3.0.0 ├─ spdy@4.0.0 ├─ thunky@1.0.3 ├─ unpipe@1.0.0 ├─ utils-merge@1.0.1 ├─ wbuf@1.7.3 ├─ webpack-dev-middleware@3.6.2 ├─ webpack-dev-server@3.3.1 └─ websocket-extensions@0.1.3 warning No license field ✨ Done in 4.23s. Webpacker successfully installed 🎉 🍰 create app/javascript create app/javascript/packs/application.js create app/javascript/packs/theme.scss create app/javascript/src/jets/crud.js insert config/webpack/environment.js run yarn add bootstrap@4.0.0-beta jquery popper.js postcss-cssnext from "." yarn add v1.10.1 warning package.json: No license field warning No license field [1/4] 🔍 Resolving packages... warning 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 postcss-cssnext > autoprefixer > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning postcss-cssnext > caniuse-api > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning 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... [3/4] 🔗 Linking dependencies... warning "@rails/webpacker > pnp-webpack-plugin > ts-pnp@1.1.2" has unmet peer dependency "typescript@*". warning " > webpack-dev-server@3.3.1" has unmet peer dependency "webpack@^4.0.0". warning "webpack-dev-server > webpack-dev-middleware@3.6.2" has unmet peer dependency "webpack@^4.0.0". warning " > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697". [4/4] 📃 Building fresh packages... success Saved lockfile. success Saved 45 new dependencies. info Direct dependencies ├─ bootstrap@4.0.0-beta ├─ jquery@3.4.1 ├─ popper.js@1.15.0 └─ postcss-cssnext@3.1.0 info All dependencies ├─ autoprefixer@7.2.6 ├─ babel-runtime@6.26.0 ├─ bootstrap@4.0.0-beta ├─ clone@1.0.4 ├─ css-color-function@1.3.3 ├─ isnumeric@0.2.0 ├─ jquery@3.4.1 ├─ math-expression-evaluator@1.2.17 ├─ onecolor@3.1.0 ├─ pixrem@4.0.1 ├─ pleeease-filters@4.0.0 ├─ popper.js@1.15.0 ├─ postcss-apply@0.8.0 ├─ postcss-attribute-case-insensitive@2.0.0 ├─ postcss-calc@6.0.2 ├─ postcss-color-function@4.1.0 ├─ 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-cssnext@3.1.0 ├─ postcss-custom-media@6.0.0 ├─ postcss-custom-properties@6.3.1 ├─ postcss-custom-selectors@4.0.1 ├─ postcss-font-family-system-ui@3.0.0 ├─ postcss-font-variant@3.0.0 ├─ postcss-image-set-polyfill@0.3.5 ├─ postcss-initial@2.0.0 ├─ postcss-media-minmax@3.0.0 ├─ postcss-media-query-parser@0.2.3 ├─ postcss-nesting@4.2.1 ├─ postcss-pseudo-class-any-link@4.0.0 ├─ postcss-pseudoelements@5.0.0 ├─ postcss-replace-overflow-wrap@2.0.0 ├─ postcss-selector-matches@3.0.1 ├─ postcss-selector-not@3.0.1 ├─ reduce-css-calc@1.3.0 ├─ reduce-function-call@1.0.2 ├─ rgb-hex@2.1.0 ├─ rgb@0.1.0 ├─ units-css@0.4.0 └─ viewport-dimensions@0.2.0 warning No license field ✨ Done in 4.59s. run git init from "." Initialized empty Git repository in /Users/tung/environment/demo/.git/ run git add . from "." run git commit -m 'first commit' from "." [master (root-commit) 979ccec] first commit 47 files changed, 8706 insertions(+) create mode 100644 .babelrc create mode 100644 .gitignore create mode 100644 .jetskeep create mode 100644 .postcssrc.yml create mode 100644 .rspec create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 Procfile create mode 100644 README.md create mode 100644 Rakefile create mode 100644 app/controllers/application_controller.rb create mode 100644 app/helpers/application_helper.rb create mode 100644 app/javascript/packs/application.js create mode 100644 app/javascript/packs/theme.scss create mode 100644 app/javascript/src/jets/crud.js create mode 100644 app/jobs/application_job.rb create mode 100644 app/models/application_item.rb create mode 100644 app/models/application_record.rb create mode 100644 app/views/layouts/application.html.erb create mode 100755 bin/webpack create mode 100755 bin/webpack-dev-server create mode 100644 config.ru create mode 100644 config/application.rb create mode 100644 config/database.yml create mode 100644 config/dynamodb.yml create mode 100644 config/environments/development.rb create mode 100644 config/environments/production.rb create mode 100644 config/environments/test.rb create mode 100644 config/routes.rb create mode 100644 config/webpack/development.js create mode 100644 config/webpack/environment.js create mode 100644 config/webpack/production.js create mode 100644 config/webpack/staging.js create mode 100644 config/webpack/test.js create mode 100644 config/webpacker.yml create mode 100644 db/.gitkeep create mode 100644 package.json create mode 100644 public/404.html create mode 100644 public/422.html create mode 100644 public/500.html create mode 100644 public/favicon.ico create mode 100644 public/index.html create mode 100644 spec/controllers/posts_controller_spec.rb create mode 100644 spec/fixtures/payloads/posts-index.json create mode 100644 spec/fixtures/payloads/posts-show.json create mode 100644 spec/spec_helper.rb create mode 100644 yarn.lock ================================================================ Congrats 🎉 You have successfully created a Jets project. Cd into the project directory: cd demo To start a server and test locally: jets server # localhost:8888 should have the Jets welcome page Scaffold example: jets generate scaffold post title:string body:text published:boolean jets db:create db:migrate To deploy to AWS Lambda, edit your .env.development.remote and add a DATABASE_URL endpoint. Then run: jets deploy $ cd demo /Users/tung/environment/demo $ bundle install Using rake 12.3.2 Using concurrent-ruby 1.1.5 Using i18n 1.6.0 Using minitest 5.11.3 Using thread_safe 0.3.6 Using tzinfo 1.2.5 Using activesupport 5.2.3 Using builder 3.2.3 Using erubi 1.8.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.3 Using rails-dom-testing 2.0.3 Using crass 1.0.4 Using loofah 2.2.3 Using rails-html-sanitizer 1.0.4 Using actionview 5.2.3 Using rack 2.0.7 Using rack-test 1.1.0 Using actionpack 5.2.3 Using globalid 0.4.2 Using activejob 5.2.3 Using mini_mime 1.0.1 Using mail 2.7.1 Using actionmailer 5.2.3 Using activemodel 5.2.3 Using arel 9.0.0 Using activerecord 5.2.3 Using public_suffix 3.0.3 Using addressable 2.6.0 Using aws-eventstream 1.0.3 Using aws-partitions 1.160.0 Using aws-sigv4 1.1.0 Using jmespath 1.4.0 Using aws-sdk-core 3.50.0 Using aws-sdk-apigateway 1.26.0 Using aws-sdk-cloudformation 1.19.0 Using aws-sdk-cloudwatchlogs 1.17.0 Using aws-sdk-dynamodb 1.26.0 Using aws-sdk-kinesis 1.13.1 Using aws-sdk-kms 1.18.0 Using aws-sdk-lambda 1.22.0 Using aws-sdk-s3 1.36.1 Using aws-sdk-sns 1.13.0 Using aws-sdk-sqs 1.13.0 Using bundler 2.0.1 Using byebug 11.0.1 Using regexp_parser 1.4.0 Using xpath 3.2.0 Using capybara 3.18.0 Using cfnresponse 0.4.0 Using diff-lcs 1.3 Using dotenv 2.7.2 Using dynomite 1.2.2 Using json 2.2.0 Using gems 1.1.1 Using hashie 3.6.0 Using jets-html-sanitizer 1.0.4 Using kramdown 2.1.0 Using memoist 0.16.0 Using mimemagic 0.3.3 Using method_source 0.9.2 Using thor 0.20.3 Using railties 5.2.3 Using rainbow 3.0.0 Using recursive-open-struct 1.1.0 Using text-table 1.2.4 Using jets 1.8.11 Using launchy 2.4.3 Using mysql2 0.5.2 Using rack-proxy 0.6.5 Using rspec-support 3.8.0 Using rspec-core 3.8.0 Using rspec-expectations 3.8.3 Using rspec-mocks 3.8.0 Using rspec 3.8.0 Using shotgun 0.9.2 Using webpacker 3.2.0 from https://github.com/tongueroo/webpacker.git (at jets@1a012c9) Bundle complete! 10 Gemfile dependencies, 77 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. $ jets webpacker:install Using local version at ~/src/tongueroo/jets WARN: Unresolved or ambigious specs during Gem::Specification.reset: minitest (~> 5.1) Available/installed versions of this gem: - 5.11.3 - 5.11.1 - 5.10.3 WARN: Clearing out unresolved specs. Try 'gem cleanup ' Please report a bug if this causes problems. identical config/webpacker.yml Copying webpack core config exist config/webpack identical config/webpack/development.js conflict config/webpack/environment.js Overwrite /Users/tung/environment/demo/config/webpack/environment.js? (enter "h" for help) [Ynaqdhm] a force config/webpack/environment.js identical config/webpack/production.js identical config/webpack/staging.js identical config/webpack/test.js Copying .postcssrc.yml to app root directory identical .postcssrc.yml Copying .babelrc to app root directory identical .babelrc Installing binstubs run bundle binstubs webpacker from "." Skipped webpack and webpack-dev-server since they already exist. If you want to overwrite skipped stubs, use --force. append .gitignore Installing all JavaScript dependencies run yarn add @rails/webpacker coffeescript@1.12.7 from "." yarn add v1.10.1 warning package.json: No license field warning No license field [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning " > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697". warning " > webpack-dev-server@3.3.1" has unmet peer dependency "webpack@^4.0.0". warning "webpack-dev-server > webpack-dev-middleware@3.6.2" has unmet peer dependency "webpack@^4.0.0". warning "@rails/webpacker > pnp-webpack-plugin > ts-pnp@1.1.2" has unmet peer dependency "typescript@*". [4/4] 📃 Building fresh packages... success Saved 1 new dependency. info Direct dependencies └─ @rails/webpacker@4.0.2 info All dependencies └─ @rails/webpacker@4.0.2 warning No license field ✨ Done in 3.18s. Installing dev server for live reloading run yarn add --dev webpack-dev-server from "." yarn add v1.10.1 warning package.json: No license field warning No license field [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning "@rails/webpacker > pnp-webpack-plugin > ts-pnp@1.1.2" has unmet peer dependency "typescript@*". warning " > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697". warning "webpack-dev-server > webpack-dev-middleware@3.6.2" has unmet peer dependency "webpack@^4.0.0". warning " > webpack-dev-server@3.3.1" has unmet peer dependency "webpack@^4.0.0". [4/4] 📃 Building fresh packages... success Saved 1 new dependency. info Direct dependencies └─ webpack-dev-server@3.3.1 info All dependencies └─ webpack-dev-server@3.3.1 warning No license field ✨ Done in 3.17s. Webpacker successfully installed 🎉 🍰 exist app/javascript identical app/javascript/packs/application.js identical app/javascript/packs/theme.scss identical app/javascript/src/jets/crud.js $ ```

Hoping for some more info.

alxx commented 5 years ago

But the fact remains that during install a call is made to https://registry.npmjs.org/stdlib.themes.bootstrap.opx which returns a "not found". Try it in your browser; does it work for you?

tongueroo commented 5 years ago

Sure. Thanks. The https://registry.npmjs.org/stdlib.themes.bootstrap.opx doesn't work.

Wondering if there's a more direct command we can run that reproduces the issue. Helps to dig into a fix. Thinking maybe an npm or yarn command.

alxx commented 5 years ago

I tried to get closer, but couldn't. I'm not very good at the JS part; I'm in this for the Ruby side, and in fact I'm pretty annoyed that there's so much Node-related stuff that I need to wade through before I can actually start writing code. :)

tongueroo commented 5 years ago

Yup. Webpacker is currently used for asset compiling which uses node. Unsure if there are better tools for compiling assets at the moment. Would be interested in there are. Node land and it's ecosystem seems to be the tooling of choice of compiling assets.

This may or may not help, but if you don't need assets then consider.

jets new api --mode api
# or
jets new demo --no-webpacker

More help: jets new cli reference

Leaving open for now in case, someone is hopefully able to track down a lower-level, more direct command to dig into the issue further. Also, it may be environment specific, which makes it tricker.

alxx commented 5 years ago

Ah, that's great. I actually don't need any assets, I'm only producing JSON. The API mode should be just what I need.

Still, it'd be great if someone might be able to help with the original issue here.

Why do you think it might be environment-specific? It seems to me that Bootstrap is a pretty universal requirement.

tongueroo commented 5 years ago

RE: Ah, that's great. I actually don't need any assets, I'm only producing JSON. The API mode should be just what I need.

Awesome 🎉 Glad that helped. You may be interested in this article also then: Build an API with the Jets Ruby Serverless Framework

RE: Why do you think it might be environment-specific?

Mainly because wasn't able to reproduce on my machine. Also, have seen in the past that npm or yarn have updated packages or themselves in a way where default behavior changes. Then things would break depending on what versions you have. It could be what initial dotfiles were generated with those versions too. Hence sometimes reinstalling yarn or npm "fixes" the issue. It could be that with the latest version it doesn't pull from that url. Unsure 🤷🏻‍♂️

Thinking that's why #217 and #187 were resolved. Believe those folks ended up either blowing away their node cache or some settings and it was "fixed".

alxx commented 5 years ago

Thanks for the article! I'll certainly read it.