Provide an opt in js tooling system by adding a node env with prettier and eslint configured. 3 bash scripts are provided: enable.sh, disable.sh and reload.sh. Enable.sh: add to the community root (and optionaly to the enterprise root) the env. Disable.sh: remove the env. Reload.sh: disable then enable.
40 lines
909 B
Plaintext
40 lines
909 B
Plaintext
# Ignore everything
|
|
*
|
|
|
|
# Whitelist web
|
|
!addons
|
|
addons/*
|
|
!addons/web
|
|
!addons/web/**/*
|
|
|
|
# Whitelist web_enterprise
|
|
!web_enterprise
|
|
!web_enterprise/**/*
|
|
|
|
# Whitelist web_studio
|
|
!web_studio
|
|
!web_studio/**/*
|
|
|
|
# BlackList libs
|
|
addons/web/static/lib
|
|
|
|
# Ignore everything in web legacy but the top level (adapters)
|
|
addons/web/static/src/legacy/**/*
|
|
!addons/web/static/src/legacy
|
|
!addons/web/static/src/legacy/*.js
|
|
|
|
# Ignore everything in web_enterprise legacy but the top level (adapters)
|
|
web_enterprise/static/src/legacy/**/*
|
|
!web_enterprise/static/src/legacy
|
|
!web_enterprise/static/src/legacy/*.js
|
|
|
|
# Ignore everything in web_studio legacy but the top level (adapters)
|
|
web_studio/static/src/legacy/**/*
|
|
!web_studio/static/src/legacy
|
|
!web_studio/static/src/legacy/*.js
|
|
|
|
# Ignore all legacy related tests
|
|
addons/web/static/tests/**/legacy/*
|
|
web_enterprise/static/tests/**/legacy/*
|
|
web_studio/static/tests/**/legacy/*
|