UNPKG

rollup-plugin-drupal-interface-translations

Version:

This is a [Rollup](https://rollupjs.org) plugin that helps you to [translation strings in JavaScript](https://www.drupal.org/docs/8/api/translation-api/overview#s-translation-in-javascript-files) that are used in [Drupal](https://www.drupal.org) websites.

57 lines (56 loc) 1.38 kB
# EXAMPLE USAGE: # # Refer for explanation to following link: # https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md # # pre-push: # commands: # packages-audit: # tags: frontend security # run: yarn audit # gems-audit: # tags: backend security # run: bundle audit # # pre-commit: # parallel: true # commands: # eslint: # glob: "*.{js,ts,jsx,tsx}" # run: yarn eslint {staged_files} # rubocop: # tags: backend style # glob: "*.rb" # exclude: '(^|/)(application|routes)\.rb$' # run: bundle exec rubocop --force-exclusion {all_files} # govet: # tags: backend style # files: git ls-files -m # glob: "*.go" # run: go vet {files} # scripts: # "hello.js": # runner: node # "any.go": # runner: go run pre-push: commands: project_tests: run: npm run test pre-commit: parallel: true commands: project_checks: &checks glob: "*.{json,js,jsx,mjs,cjs}" exclude: '(^|/)package-lock\.json$' run: | npm install npm run --if-present prettier:fix -- {staged_files} npm run --if-present lint:fix -- {staged_files} stage_fixed: true examples_react_checks: <<: *checks root: examples/react examples_vanilla_checks: <<: *checks root: examples/react