embed yarn (#7740)
* embed yarn binary using yarn policies set-version and loosen the restriction on yarn in the dockerfile and the package.json * don't lint the embedded yarn package
This commit is contained in:
parent
eae5e114ba
commit
f982899f1e
|
@ -16,7 +16,7 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
|
|||
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
||||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
RUN apt-get update -y && apt-get install -y -q nodejs yarn=1.19.1
|
||||
RUN apt-get update -y && apt-get install -y -q nodejs yarn
|
||||
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
/bower_components/
|
||||
/node_modules/
|
||||
/.storybook/
|
||||
/.yarn/
|
||||
/stories/
|
||||
|
||||
# misc
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,6 @@
|
|||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
lastUpdateCheck 1572032507422
|
||||
yarn-path ".yarn/releases/yarn-1.19.1.js"
|
|
@ -39,6 +39,9 @@ If don't want optional dependencies installed you can run `yarn --ignore-optiona
|
|||
previously and want to install them, you have to tell yarn to refetch all deps by
|
||||
running `yarn --force`.
|
||||
|
||||
In order to enforce the same version of `yarn` across installs, the `yarn` binary is included in the repo
|
||||
in the `.yarn/releases` folder. To update to a different version of `yarn`, use the `yarn policies set-version VERSION` command. For more information on this, see the [documentation](https://yarnpkg.com/en/docs/cli/policies).
|
||||
|
||||
## Running / Development
|
||||
|
||||
To get all of the JavaScript dependencies installed, run this in the `ui` directory:
|
||||
|
@ -48,7 +51,7 @@ To get all of the JavaScript dependencies installed, run this in the `ui` direct
|
|||
If you want to run Vault UI and proxy back to a Vault server running
|
||||
on the default port, 8200, run the following in the `ui` directory:
|
||||
|
||||
- `yarn run start`
|
||||
- `yarn start`
|
||||
|
||||
This will start an Ember CLI server that proxies requests to port 8200,
|
||||
and enable live rebuilding of the application as you change the UI application code.
|
||||
|
|
|
@ -155,8 +155,7 @@
|
|||
"handlebars": "^4.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": " >= 10.* <11",
|
||||
"yarn": "1.19.1"
|
||||
"node": " >= 10.* <11"
|
||||
},
|
||||
"private": true,
|
||||
"ember-addon": {
|
||||
|
|
Loading…
Reference in New Issue