mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
cfb169be0f
* New translations ansible.md (Chinese Simplified) * New translations packages.md (Chinese Simplified) * New translations windows.md (Chinese Simplified) * New translations web.md (Chinese Simplified) * New translations use-cases.md (Chinese Simplified) * New translations uplinks.md (Chinese Simplified) * New translations test.md (Chinese Simplified) * New translations ssl.md (Chinese Simplified) * New translations server.md (Chinese Simplified) * New translations reverse-proxy.md (Chinese Simplified) * New translations repositories.md (Chinese Simplified) * New translations protect-your-dependencies.md (Chinese Simplified) * New translations plugins.md (Chinese Simplified) * New translations notifications.md (Chinese Simplified) * New translations auth.md (Chinese Simplified) * New translations logger.md (Chinese Simplified) * New translations kubernetes.md (Chinese Simplified) * New translations install.md (Chinese Simplified) * New translations index.md (Chinese Simplified) * New translations iis-server.md (Chinese Simplified) * New translations home.md (Chinese Simplified) * New translations docker.md (Chinese Simplified) * New translations dev-plugins.md (Chinese Simplified) * New translations contributing.md (Chinese Simplified) * New translations config.md (Chinese Simplified) * New translations cli.md (Chinese Simplified) * New translations build.md (Chinese Simplified) * New translations en.json (Chinese Simplified) * New translations en.json (Chinese Simplified) * New translations en.json (Chinese Simplified) * New translations en.json (Chinese Simplified) * New translations install.md (Chinese Simplified) * New translations install.md (Chinese Simplified) * New translations home.md (Chinese Simplified) * New translations cli.md (Chinese Simplified) * New translations config.md (Chinese Simplified) * New translations config.md (Chinese Simplified) * New translations config.md (Chinese Simplified) * New translations auth.md (Chinese Simplified) * New translations config.md (Chinese Simplified) * New translations auth.md (Chinese Simplified) * New translations auth.md (Chinese Simplified) * New translations config.md (Chinese Simplified) * New translations en.json (Spanish) * New translations en.json (Spanish) * New translations en.json (Spanish) * New translations en.json (Spanish) * New translations en.json (Spanish) * New translations config.md (Chinese Simplified) * New translations config.md (Spanish) * New translations config.md (Urdu (Pakistan)) * New translations config.md (Chinese Traditional, Hong Kong) * New translations config.md (Portuguese, Brazilian) * New translations config.md (Chinese Traditional)
6.4 KiB
6.4 KiB
id | title |
---|---|
build | Build the source code |
Verdaccio relies on yarn
instead npm
to download depenedencies.
Note: the current build only will build with ➜ yarn
latest.
yarn install
Scripts
We have a list of scripts that you will use for diferent kind of tasks, in the following section we describe all posible task based on branches. (yes
Master branch (2.x)
On master branch the unique part we have to build is the UI which is based on React.js, webpack and CSS Modules.
Scripts
script | Description |
---|---|
release | this script is used to generate changelog and raise up the version according the commits messages |
prepublish | it ensures before publish the new ui is being generated |
test | run all the test |
pre:ci | specific task for CI, build the UI required for test |
test:ci | run test generating coverage |
test:only | run only test |
test:coverage | run nyc as a wrapper to generate coverage with mocha test |
coverage:html | run nyc to generate coverage reports |
coverage:publish | publish on codecov the coverage (don't use it) |
lint | run the linting for javascript code. |
lint:css | run the linter for css |
dev:webui | run a webpack server with hot reloading enabled http://localhost:4872/#/ it requires a verdaccio server running in port 4873 . |
pre:webpack | prepare the field for webpack (it a substask of build:webui ) |
build:webui | create the static assets for the UI with webpack |
build:docker | create a local docker image with verdaccio |
build:rpi | create a local docker for raspberry pi image with verdaccio (experimental with no support) |
Branch (3.x)
The next major version is based on babel
and flow
. If you switch from master ensure to run yarn install
again.
Note: Only new scripts in bold
Scripts
script | Description |
---|---|
flow | run flow check |
dev:start | run babel-node and transpile code on memory |
code:build | transpile verdaccio with babel and copy transpiled code to build/ |
release | this script is used to generate changelog and raise up the version according the commits messages |
prepublish | it ensures before publish the new ui is being generated |
test | run all the test jest |
pre:ci | specific task for CI, build the UI required for test |
test:ci | run test generating coverage |
test:only | run only test |
coverage:publish | publish on codecov the coverage (don't use it) |
lint | run the linting for javascript code. |
lint:css | run the linter for css |
dev:webui | run a webpack server with hot reloading enabled http://localhost:4872/#/ it requires a verdaccio server running in port 4873 . |
pre:webpack | prepare the field for webpack (it a substask of build:webui ) |
build:webui | create the static assets for the UI with webpack |
build:docker | create a local docker image with verdaccio |
build:rpi | create a local docker for raspberry pi image with verdaccio (experimental with no support) |