Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
0a1b2a00
Commit
0a1b2a00
authored
May 31, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update the frontend dependency guide with distinction between dependencies and devDependencies
parent
e57ad62d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
doc/development/new_fe_guide/dependencies.md
doc/development/new_fe_guide/dependencies.md
+18
-1
No files found.
doc/development/new_fe_guide/dependencies.md
View file @
0a1b2a00
# Dependencies
# Dependencies
## Adding Dependencies.
GitLab uses
`yarn`
to manage dependencies. These dependencies are defined in
two groups within
`package.json`
,
`dependencies`
and
`devDependencies`
. For
our purposes, we consider anything that is required to compile our production
assets a "production" dependency. That is, anything required to run the
`webpack`
script with
`NODE_ENV=production`
. Tools like
`eslint`
,
`karma`
, and
various plugins and tools used in development are considered
`devDependencies`
.
This distinction is used by omnibus to determine which dependencies it requires
when building GitLab.
Exceptions are made for some tools that we require in the
`gitlab:assets:compile`
CI job such as
`webpack-bundle-analyzer`
to analyze our
production assets post-compile.
---
> TODO: Add Dependencies
> TODO: Add Dependencies
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment