aberlaas 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +2 -3
  2. package/bin/{aberlaas → aberlaas.js} +1 -1
  3. package/commands/ci/autoRelease.js +9 -8
  4. package/commands/ci/index.js +10 -10
  5. package/commands/compress/index.js +6 -6
  6. package/commands/compress/png.js +5 -5
  7. package/commands/{init.js → init/index.js} +47 -31
  8. package/commands/lint/circleci.js +10 -11
  9. package/commands/lint/css.js +12 -10
  10. package/commands/lint/helpers/prettier.js +29 -0
  11. package/commands/lint/index.js +18 -48
  12. package/commands/lint/js.js +40 -51
  13. package/commands/lint/json.js +11 -10
  14. package/commands/lint/yml.js +13 -11
  15. package/commands/{precommit.js → precommit/index.js} +7 -7
  16. package/commands/readme/index.js +16 -16
  17. package/commands/{release.js → release/index.js} +5 -6
  18. package/commands/setup/autoRelease/envVars.js +9 -8
  19. package/commands/setup/autoRelease/index.js +12 -11
  20. package/commands/setup/autoRelease/privateKey.js +6 -5
  21. package/commands/setup/autoRelease/publicKey.js +8 -7
  22. package/commands/setup/circleci.js +9 -8
  23. package/commands/setup/github.js +6 -5
  24. package/commands/setup/helpers/circleci.js +6 -5
  25. package/commands/setup/helpers/github.js +6 -5
  26. package/commands/setup/helpers/npm.js +1 -1
  27. package/commands/setup/helpers/ssh.js +11 -10
  28. package/commands/setup/index.js +6 -6
  29. package/commands/setup/renovate.js +7 -6
  30. package/commands/test/index.js +84 -0
  31. package/configs/{eslint.js → eslint.cjs} +63 -30
  32. package/configs/jest/{index.js → index.cjs} +13 -10
  33. package/configs/jest/{testEnvironment.js → testEnvironment.cjs} +1 -1
  34. package/configs/jest.cjs +1 -0
  35. package/configs/{lintstaged.js → lintstaged.cjs} +1 -1
  36. package/configs/node.cjs +5 -0
  37. package/configs/vite/test/setupFiles/captureOutput.js +4 -0
  38. package/configs/vite/test/setupFiles/dedent.js +4 -0
  39. package/configs/vite/test/setupFiles/fit-xit-fdescribe-xdescribe.js +13 -0
  40. package/configs/vite/test/setupFiles/jest-extended.js +10 -0
  41. package/configs/vite/test/setupFiles/testName.js +9 -0
  42. package/configs/vite.js +25 -0
  43. package/helper.js +37 -39
  44. package/main.js +28 -22
  45. package/package.json +33 -21
  46. package/scripts/postinstall +15 -0
  47. package/templates/_circleci/config.yml +1 -1
  48. package/templates/_eslintignore.conf +1 -1
  49. package/templates/_eslintrc.cjs +3 -0
  50. package/templates/_lintstagedrc.cjs +4 -0
  51. package/templates/_prettierrc.cjs +4 -0
  52. package/templates/_stylelintrc.cjs +4 -0
  53. package/templates/jest.config.cjs +4 -0
  54. package/templates/lib/__tests__/main.js +2 -2
  55. package/templates/lib/main.js +1 -1
  56. package/templates/scripts/hooks/pre-commit +11 -0
  57. package/templates/vite.config.js +4 -0
  58. package/commands/test.js +0 -92
  59. package/configs/husky.js +0 -5
  60. package/configs/jest.js +0 -1
  61. package/configs/node.js +0 -3
  62. package/lib/configs/deprecated.js +0 -17
  63. package/lib/configs/eslint.js +0 -2
  64. package/lib/configs/husky.js +0 -2
  65. package/lib/configs/jest.js +0 -2
  66. package/lib/configs/lintstaged.js +0 -2
  67. package/lib/configs/prettier.js +0 -2
  68. package/lib/configs/stylelint.js +0 -2
  69. package/templates/_eslintrc.js +0 -3
  70. package/templates/_huskyrc.js +0 -4
  71. package/templates/_lintstagedrc.js +0 -4
  72. package/templates/_prettierrc.js +0 -4
  73. package/templates/_stylelintrc.js +0 -4
  74. package/templates/babel.config.js +0 -3
  75. package/templates/jest.config.js +0 -4
  76. package/templates/scripts/husky-precommit +0 -4
  77. /package/configs/jest/{jest-extended.js → jest-extended.cjs} +0 -0
  78. /package/configs/jest/{setupFileAfterEnv.js → setupFileAfterEnv.cjs} +0 -0
  79. /package/configs/jest/{sharedState.js → sharedState.cjs} +0 -0
  80. /package/configs/{prettier.js → prettier.cjs} +0 -0
  81. /package/configs/{stylelint.js → stylelint.cjs} +0 -0
@@ -1,2 +0,0 @@
1
- const deprecated = require('./deprecated.js');
2
- module.exports = deprecated('.huskyrc.js', 'configs/husky.js');
@@ -1,2 +0,0 @@
1
- const deprecated = require('./deprecated.js');
2
- module.exports = deprecated('jest.config.js', 'configs/jest.js');
@@ -1,2 +0,0 @@
1
- const deprecated = require('./deprecated.js');
2
- module.exports = deprecated('.lintstagedrc.js', 'configs/lintstaged.js');
@@ -1,2 +0,0 @@
1
- const deprecated = require('./deprecated.js');
2
- module.exports = deprecated('.prettierrc.js', 'configs/prettier.js');
@@ -1,2 +0,0 @@
1
- const deprecated = require('./deprecated.js');
2
- module.exports = deprecated('.stylelintrc.js', 'configs/stylelint.js');
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: ['./node_modules/aberlaas/configs/eslint.js'],
3
- };
@@ -1,4 +0,0 @@
1
- const config = require('aberlaas/configs/husky.js');
2
- module.exports = {
3
- ...config,
4
- };
@@ -1,4 +0,0 @@
1
- const config = require('aberlaas/configs/lintstaged.js');
2
- module.exports = {
3
- ...config,
4
- };
@@ -1,4 +0,0 @@
1
- const config = require('aberlaas/configs/prettier.js');
2
- module.exports = {
3
- ...config,
4
- };
@@ -1,4 +0,0 @@
1
- const config = require('aberlaas/configs/stylelint.js');
2
- module.exports = {
3
- ...config,
4
- };
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- presets: ['aberlaas/configs/babel.js'],
3
- };
@@ -1,4 +0,0 @@
1
- const config = require('aberlaas/configs/jest.js');
2
- module.exports = {
3
- ...config,
4
- };
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- set -e
3
-
4
- aberlaas precommit "$@"
File without changes
File without changes