1. 02 Sep, 2019 1 commit
  2. 27 Aug, 2019 1 commit
  3. 14 Jul, 2019 2 commits
  4. 02 Jul, 2019 1 commit
    • silverwind's avatar
      update dependencies and various tweaks (#7344) · 68ec7b8b
      silverwind authored
      - ran `make npm-update`
      - ran `make js`, fixed new lint issue
      - ran `make css`, this added back some vendor prefixes
      - added `engines` property to package.json to specify minimum required
        Node.js version
      - added `private` property to package.json to prevent accidential
        publishing to npm
      68ec7b8b
  5. 27 Jun, 2019 1 commit
    • silverwind's avatar
      replace lesshint with stylelint (#7305) · c37ec66e
      silverwind authored
      New CSS linter which is much more powerfull than the previous one.
      Configuration is default but I had to remove a few rules that were
      throwing too many or weird errors.
      
      More importantly, the linter will exit with code 1 on errors so now our
      build will fail if the CSS linter fails which should eliminate linter
      errors being introduced without notice.
      c37ec66e
  6. 19 Jun, 2019 1 commit
    • silverwind's avatar
      add 'npm' and 'npm-update' make targets and lockfile (#7246) · a71cabbd
      silverwind authored
      * add 'npm' and 'npm-update' make targets and lockfile
      
      - `make npm` installs and updates node_modules, triggered automatically
         on `make css` and `make js` as it completes reasonably fast and
         ensures consistent modules.
      - `make npm-update` updates all dependencies to their latest version,
         regenerates `node_modules` from scratch and updates
         `package-lock.json`. It uses npm modules `updates` written by yours
         truly to find the latest version of each dependency.
      
      * add suggested make dependencies
      
      * remove package-lock.json during npm-update
      
      * regenerate package-lock.json
      a71cabbd
  7. 16 May, 2019 2 commits
    • silverwind's avatar
      remove and disable package-lock (#6969) · 04f996f1
      silverwind authored
      * remove and disable package-lock
      
      Using exact versions in package.json has the same effect as lockfiles
      without all the troubles the lockfiles bring (different versions of
      package manager generating different lockfiles primarily).
      
      Ensured we only use exact versions in package.json and stopped
      generation of new lockfiles via .npmrc which is support by both the npm
      and yarn package managers.
      
      Fixes: https://github.com/go-gitea/gitea/issues/6967
      
      * enable save-exact
      04f996f1
    • silverwind's avatar
      add make targets for js and css, add js linter (#6952) · d9dcd093
      silverwind authored
      * add make targets for js,css, add javascript linter
      
      - add `make js`, deprecating `make javascripts`
      - add `make css`, deprecating `make generate-stylesheets` and
        `make stylesheets-check`
      - changed the unclean css check to only run on CI
      - add JS linting via eslint with basic configuration and fixed
        discovered issues
      - changed autoprefixer to use official `postcss-cli` avoiding the need
        to loop in the makefile
      - moved browserslist to package.json so other future tools can use it
        too.
      - update documentation for new make targets and added JS section
      
      * fix indentation
      
      * move functions used in html to 'exported' list
      
      * Run lessc binary without having to install anything to node_modules
      
      * use relative paths to node bin scripts, removing npx
      
      * Revert "use relative paths to node bin scripts, removing npx"
      
      This reverts commit 119b725525a8430b32ee7a6e6009b4ece544e39b.
      
      * fix lessc and postcss plugins
      
      * check for node_modules and use actual bin names
      d9dcd093
  8. 14 May, 2019 1 commit
  9. 11 Feb, 2019 1 commit
  10. 09 Feb, 2019 1 commit
  11. 11 Jul, 2018 1 commit
  12. 05 Jul, 2018 1 commit
    • techknowlogick's avatar
      Add the ability to have built in themes in Gitea (#4198) · f1d6a1ff
      techknowlogick authored
      This makes it easier for user who want to theme but
      don't have the ability to know how to customize templates
      all that is required is a change in a config option
      
      The reason why I chose the DEFAULT_THEME as variable,
      as perhaps in the future we will allow users to chose their
      theme whon logged in just like we do with languages
      Unverified
      f1d6a1ff
  13. 10 May, 2018 1 commit
  14. 07 May, 2018 1 commit