2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-22 09:57:31 +00:00

Use npm instead of yarn

More in line with classic package manager. Yarn 2+ is just weird.
This commit is contained in:
nanaya 2022-02-12 07:01:56 +09:00
parent ac08c4e650
commit 0ef16b2661
4 changed files with 3595 additions and 1656 deletions

View File

@ -0,0 +1,14 @@
# Mostly lifted from [1] but replace yarn with npm
# [1] https://github.com/rails/jsbundling-rails/blob/98780f28809ebad5d84921ce38dc238472a35812/lib/tasks/jsbundling/build.rake
# First clear existing task actions
Rake::Task["javascript:build"].clear_actions
namespace :javascript do
desc "Build your JavaScript bundle"
task :build do
unless system "npm install && npm run build"
raise "jsbundling-rails: Command build failed, ensure npm is installed and `npm run build` runs without errors"
end
end
end

3581
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,6 @@
"mousetrap": "^1.6.5", "mousetrap": "^1.6.5",
"timeago": "^1.6.7" "timeago": "^1.6.7"
}, },
"devDependencies": {},
"scripts": { "scripts": {
"build": "./build.js" "build": "./build.js"
}, },

1655
yarn.lock

File diff suppressed because it is too large Load Diff