yarnpkg

How to “install” Bootstrap Datetimepicker on Symfony?

China☆狼群 提交于 2021-01-28 06:40:34
问题 I have files like assets/css/bootstrap-4.3.1.css and assets/js/bootstrap-4.3.1.js and in webpack.config I have .addEntry('js/bootstrap','./assets/js/bootstrap-4.3.1.js') and .addStyleEntry('css/bootstrap', './assets/css/bootstrap-4.3.1.css') I need bootstrap-3.3.1.js and bootstrap-3.3.1.css , respectively. I need to install these in yarn in order to ensure that I have my perequisites for Bootstrap datetimepicker. Tried with yarn add bootstrap@3.3.1 without any luck. Then I tried to download

lerna import always returns EDESTDIR

微笑、不失礼 提交于 2021-01-28 03:23:44
问题 I have a pre-existing project that I'd like to import into my existing lerna monorepo that uses yarn workspaces. Command(s): I've tried running all of the following commands. The error remains stubbornly unchanged. Also, petstore has a package.json file and is a git repo. lerna import ./petstore --dest="./packages/" lerna import ./petstore --dest="./packages/api/" ERROR: lerna notice cli v3.20.2 lerna ERR! EDESTDIR --dest does not match with the package directories: packages/** Also, lerna

Why does Capistrano deployment fail at assets:precompile without error?

末鹿安然 提交于 2021-01-28 01:13:23
问题 I've tried everything I could think of, but I can't get deployment to work. The app needs to deploy to a VPS hosted by Alwaysdata and running ruby 2.6.2, using Capistrano for deployment. It's a Rails 6.0.2.2 application, using webpack for JS and sprockets for legacy scripts, all images and CSS. # On local machine (MacOS) $ bundle exec cap production deploy 00:00 git:wrapper 00:01 git:check 00:03 deploy:check:directories 00:03 deploy:check:linked_dirs 00:03 deploy:check:make_linked_dirs 00:05

How to Import node_modules with Webpacker

♀尐吖头ヾ 提交于 2021-01-27 19:41:59
问题 I'm new to the whole JS/webpacker game and am failing to understand how to import and use a javascript package using webpacker. I am trying to include and use the Animate On Scroll Library. I have Webpacker installed and working (I know it's working because I am able to happily use StimulusJs). Here's what my /javascript/packs/application.js file looks like: import { Application } from "stimulus" import { definitionsFromContext } from "stimulus/webpack-helpers" import { trix } from "trix"

How to Import node_modules with Webpacker

萝らか妹 提交于 2021-01-27 19:17:17
问题 I'm new to the whole JS/webpacker game and am failing to understand how to import and use a javascript package using webpacker. I am trying to include and use the Animate On Scroll Library. I have Webpacker installed and working (I know it's working because I am able to happily use StimulusJs). Here's what my /javascript/packs/application.js file looks like: import { Application } from "stimulus" import { definitionsFromContext } from "stimulus/webpack-helpers" import { trix } from "trix"

Pass args into lerna exec command

别来无恙 提交于 2021-01-24 07:22:06
问题 Goal I have yarn test , which is actually composed of two subcommands yarn test:root && yarn test:packages . Both run jest (but packages does it indirectly using lerna exec). I want to be able to type yarn test -t=Pattern from the terminal and have both sub-commands append -t=Pattern to the end. lerna exec -- "yarn test" doesnt seem to have a way to do this. Background I have a monorepo, that uses lerna exec to run yarn test on each lerna package. Given: "test": "yarn run test:packages $@ &&

Pass args into lerna exec command

那年仲夏 提交于 2021-01-24 07:21:07
问题 Goal I have yarn test , which is actually composed of two subcommands yarn test:root && yarn test:packages . Both run jest (but packages does it indirectly using lerna exec). I want to be able to type yarn test -t=Pattern from the terminal and have both sub-commands append -t=Pattern to the end. lerna exec -- "yarn test" doesnt seem to have a way to do this. Background I have a monorepo, that uses lerna exec to run yarn test on each lerna package. Given: "test": "yarn run test:packages $@ &&

Pass args into lerna exec command

只愿长相守 提交于 2021-01-24 07:20:23
问题 Goal I have yarn test , which is actually composed of two subcommands yarn test:root && yarn test:packages . Both run jest (but packages does it indirectly using lerna exec). I want to be able to type yarn test -t=Pattern from the terminal and have both sub-commands append -t=Pattern to the end. lerna exec -- "yarn test" doesnt seem to have a way to do this. Background I have a monorepo, that uses lerna exec to run yarn test on each lerna package. Given: "test": "yarn run test:packages $@ &&

Yarn can't authenticate with Github Packages - but npm can

南笙酒味 提交于 2021-01-21 11:20:24
问题 What do I need to do to configure yarn to authenticate with Github Packages? I've got a hello-world npm package that I'm trying to publish privately to github. I want to be able to use yarn instead of npm, but for some reason yarn can't authenticate with the Github Package service: error Couldn't publish package: "https://npm.pkg.github.com/@myuser/test-models: Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the

Yarn install command error No such file or directory: 'install'

落花浮王杯 提交于 2021-01-20 14:10:18
问题 I am installing sylius bundle and while install sylius I need to run yarn install So While i run command yarn install I get error: ERROR: [Errno 2] No such file or directory: 'install' 回答1: I had the same issue on Ubuntu 17.04. This solution worked for me: sudo apt remove cmdtest sudo apt remove yarn curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update sudo