mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 01:47:48 +00:00
More yarn removal
This commit is contained in:
parent
6af4829c4c
commit
fff02aebfc
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -29,9 +29,9 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
cache: yarn
|
cache: npm
|
||||||
|
|
||||||
- run: yarn install
|
- run: npm install
|
||||||
|
|
||||||
- uses: ruby/setup-ruby@v1
|
- uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -16,9 +16,6 @@
|
|||||||
/public/packs
|
/public/packs
|
||||||
/public/packs-test
|
/public/packs-test
|
||||||
/node_modules
|
/node_modules
|
||||||
/yarn-error.log
|
|
||||||
yarn-debug.log*
|
|
||||||
.yarn-integrity
|
|
||||||
|
|
||||||
/app/assets/builds/*
|
/app/assets/builds/*
|
||||||
!/app/assets/builds/.keep
|
!/app/assets/builds/.keep
|
||||||
|
17
bin/yarn
17
bin/yarn
@ -1,17 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
APP_ROOT = File.expand_path('..', __dir__)
|
|
||||||
Dir.chdir(APP_ROOT) do
|
|
||||||
yarn = ENV["PATH"].split(File::PATH_SEPARATOR).
|
|
||||||
select { |dir| File.expand_path(dir) != __dir__ }.
|
|
||||||
product(["yarn", "yarn.cmd", "yarn.ps1"]).
|
|
||||||
map { |dir, file| File.expand_path(file, dir) }.
|
|
||||||
find { |file| File.executable?(file) }
|
|
||||||
|
|
||||||
if yarn
|
|
||||||
exec yarn, *ARGV
|
|
||||||
else
|
|
||||||
$stderr.puts "Yarn executable was not detected in the system."
|
|
||||||
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
|
|
||||||
exit 1
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
x
Reference in New Issue
Block a user