Skip to content

Commit

Permalink
Go stimulus 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo committed Apr 29, 2021
1 parent d466e73 commit 46d27ca
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
3 changes: 1 addition & 2 deletions app/javascript/controllers/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Load all the controllers within this directory and all subdirectories.
// Load all the controllers within this directory and all subdirectories.
// Controller files must be named *_controller.js.

import { Application } from "stimulus"
Expand All @@ -7,4 +7,3 @@ import { definitionsFromContext } from "stimulus/webpack-helpers"
const application = Application.start()
const context = require.context("controllers", true, /_controller\.js$/)
application.load(definitionsFromContext(context))

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"perfect-scrollbar": "^1.5.0",
"popper.js": "^1.16.1",
"regenerator-runtime": "^0.13.7",
"stimulus": "^1.1.1",
"stimulus": "^2.0.0",
"turbolinks": "^5.2.0"
},
"devDependencies": {
Expand Down
48 changes: 24 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1008,24 +1008,24 @@
webpack-cli "^3.3.12"
webpack-sources "^1.4.3"

"@stimulus/core@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@stimulus/core/-/core-1.1.1.tgz#42b0cfe5b73ca492f41de64b77a03980bae92c82"
integrity sha512-PVJv7IpuQx0MVPCBblXc6O2zbCmU8dlxXNH4bC9KK6LsvGaE+PCXXrXQfXUwAsse1/CmRu/iQG7Ov58himjiGg==
"@stimulus/core@^2.0.0":
version "2.0.0"
resolved "https://registry.npm.taobao.org/@stimulus/core/download/@stimulus/core-2.0.0.tgz#140c85318d6a8a8210c0faf182223b8459348877"
integrity sha1-FAyFMY1qioIQwPrxgiI7hFk0iHc=
dependencies:
"@stimulus/mutation-observers" "^1.1.1"
"@stimulus/mutation-observers" "^2.0.0"

"@stimulus/multimap@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@stimulus/multimap/-/multimap-1.1.1.tgz#b95e3fd607345ab36e5d5b55486ee1a12d56b331"
integrity sha512-26R1fI3a8uUj0WlMmta4qcfIQGlagegdP4PTz6lz852q/dXlG6r+uPS/bx+H8GtfyS+OOXVr3SkZ0Zg0iRqRfQ==
"@stimulus/multimap@^2.0.0":
version "2.0.0"
resolved "https://registry.npm.taobao.org/@stimulus/multimap/download/@stimulus/multimap-2.0.0.tgz#420cfa096ed6538df4a91dbd2b2842c1779952b2"
integrity sha1-Qgz6CW7WU430qR29KyhCwXeZUrI=

"@stimulus/mutation-observers@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@stimulus/mutation-observers/-/mutation-observers-1.1.1.tgz#0f6c6f081308427fed2a26360dda0c173b79cfc0"
integrity sha512-/zCnnw1KJlWO2mrx0yxYaRFZWMGnDMdOgSnI4hxDLxdWVuL2HMROU8FpHWVBLjKY3T9A+lGkcrmPGDHF3pfS9w==
"@stimulus/mutation-observers@^2.0.0":
version "2.0.0"
resolved "https://registry.npm.taobao.org/@stimulus/mutation-observers/download/@stimulus/mutation-observers-2.0.0.tgz#3dbe37453bda47a6c795a90204ee8d77a799fb87"
integrity sha1-Pb43RTvaR6bHlakCBO6Nd6eZ+4c=
dependencies:
"@stimulus/multimap" "^1.1.1"
"@stimulus/multimap" "^2.0.0"

"@stimulus/polyfills@^1.1.1":
version "1.1.1"
Expand All @@ -1036,10 +1036,10 @@
element-closest "^2.0.2"
mutation-observer-inner-html-shim "^1.0.0"

"@stimulus/webpack-helpers@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@stimulus/webpack-helpers/-/webpack-helpers-1.1.1.tgz#eff60cd4e58b921d1a2764dc5215f5141510f2c2"
integrity sha512-XOkqSw53N9072FLHvpLM25PIwy+ndkSSbnTtjKuyzsv8K5yfkFB2rv68jU1pzqYa9FZLcvZWP4yazC0V38dx9A==
"@stimulus/webpack-helpers@^2.0.0":
version "2.0.0"
resolved "https://registry.npm.taobao.org/@stimulus/webpack-helpers/download/@stimulus/webpack-helpers-2.0.0.tgz#54296d2a2dffd4f962d2e802d99a3fdd84b8845f"
integrity sha1-VCltKi3/1Pli0ugC2Zo/3YS4hF8=

"@types/glob@^7.1.1":
version "7.1.3"
Expand Down Expand Up @@ -6227,13 +6227,13 @@ static-extend@^0.1.1:
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=

stimulus@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/stimulus/-/stimulus-1.1.1.tgz#53c2fded6849e7b85eed3ed8dd76e33abd74bec5"
integrity sha512-R0mBqKp48YnRDZOxZ8hiOH4Ilph3Yj78CIFTBkCwyHs4iGCpe7xlEdQ7cjIxb+7qVCSxFKgxO+mAQbsNgt/5XQ==
stimulus@^2.0.0:
version "2.0.0"
resolved "https://registry.nlark.com/stimulus/download/stimulus-2.0.0.tgz#713c8b91a72ef90914b90955f0e705f004403047"
integrity sha1-cTyLkacu+QkUuQlV8OcF8ARAMEc=
dependencies:
"@stimulus/core" "^1.1.1"
"@stimulus/webpack-helpers" "^1.1.1"
"@stimulus/core" "^2.0.0"
"@stimulus/webpack-helpers" "^2.0.0"

stream-browserify@^2.0.1:
version "2.0.2"
Expand Down

0 comments on commit 46d27ca

Please sign in to comment.