Skip to content
Snippets Groups Projects
  1. Dec 01, 2022
  2. Mar 29, 2022
    • Samuel Degueldre's avatar
      [FIX] web: fix tooling failing to run due to bash-specific syntax · 92497ed4
      Samuel Degueldre authored
      
      In #86163 we added a check on the branch name to avoid running the
      tooling on stable branches, however this check used bash-specific
      syntax. While the hashbang in the pre-commit hook specifies that the
      hook should be run using bash, we were using the npm module "husky" to
      manage git hooks, which would ignore this hashbang and always run the
      hook using sh, causing the hook to fail in all cases.
      
      After some consideration, we have decided to stop using husky, as its
      main purpose is to make hook management easier in npm-based projects.
      Since we already need a script to enable the tooling, we can do
      essentially the same thing that husky is doing but with more control
      over the process with no drawbacks.
      
      closes odoo/odoo#87436
      
      X-original-commit: 3104ab16
      Signed-off-by: default avatarSimon Genin (ges@odoo) <ges@odoo.com>
      92497ed4
  3. Jun 18, 2021
    • Simon Genin (ges)'s avatar
      [ADD] web: prettier and eslint tooling · 8d57a5cd
      Simon Genin (ges) authored
      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.
      8d57a5cd
  4. Feb 15, 2021
    • Simon Genin (ges)'s avatar
      [ADD] cli: add a command to generate tsconfig · 396fec39
      Simon Genin (ges) authored
      
      With the new native JS module system, we have a lot of new features for
      the developer: autocompletion, docstrings, ...
      
      However, it does not work across modules: if a JS file in
      /addons/stock/static/src/some_file.js want to import a file in web, say
      /addons/web/static/src/blabla.js, we will need to use a statement like
      this:
      
      import { something } from '@web/blabla';
      
      Obviously, there is no automatic way for IDEs to know that '@web' should
      map to 'addons/web'.
      
      This is why we propose to use a tsconfig.json that defines the mapping
      between modules and their paths.  This is not mandatory, and only
      affects those developers that work commonly in JS.
      
      Part of PR 63177
      
      Co-authored-by: default avatarFrancois (fge) <fge@odoo.com>
      396fec39
  5. Apr 20, 2020
  6. Oct 03, 2017
  7. Sep 14, 2017
    • Xavier Morel's avatar
      [FIX] P3: metadata update · 4a878fa4
      Xavier Morel authored
      * gitignore pycache folders (apparently appear for some)
      * update xlwt requirement: 1.1.2 does not work with Python 3.6, 1.2 should work, 1.3 officially supports it
      4a878fa4
  8. Sep 23, 2016
  9. Feb 08, 2015
  10. Oct 29, 2014
  11. May 28, 2014
  12. May 21, 2014
  13. May 19, 2014
  14. May 17, 2014
  15. May 16, 2014
  16. Jun 08, 2009
  17. Apr 21, 2009
  18. Nov 24, 2008
Loading