aberlaas 2.8.0 → 2.10.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 (70) hide show
  1. package/bin/aberlaas.js +1 -1
  2. package/configs/eslint.js +3 -0
  3. package/configs/lintstaged.js +2 -24
  4. package/configs/prettier.js +3 -4
  5. package/configs/stylelint.js +3 -41
  6. package/configs/vite.js +2 -41
  7. package/{main.js → lib/main.js} +26 -30
  8. package/package.json +37 -45
  9. package/commands/ci/index.js +0 -47
  10. package/commands/compress/dummy.js +0 -11
  11. package/commands/compress/index.js +0 -41
  12. package/commands/compress/png.js +0 -49
  13. package/commands/init/helper.js +0 -171
  14. package/commands/init/index.js +0 -59
  15. package/commands/init/module.js +0 -111
  16. package/commands/init/monorepo.js +0 -261
  17. package/commands/lint/circleci.js +0 -81
  18. package/commands/lint/css.js +0 -73
  19. package/commands/lint/helpers/prettier.js +0 -54
  20. package/commands/lint/index.js +0 -50
  21. package/commands/lint/js.js +0 -73
  22. package/commands/lint/json.js +0 -60
  23. package/commands/lint/yml.js +0 -62
  24. package/commands/precommit/index.js +0 -33
  25. package/commands/readme/index.js +0 -181
  26. package/commands/setup/circleci.js +0 -60
  27. package/commands/setup/github.js +0 -42
  28. package/commands/setup/helpers/circleci.js +0 -43
  29. package/commands/setup/helpers/github.js +0 -72
  30. package/commands/setup/helpers/npm.js +0 -16
  31. package/commands/setup/helpers/ssh.js +0 -77
  32. package/commands/setup/index.js +0 -52
  33. package/commands/setup/renovate.js +0 -54
  34. package/commands/test/index.js +0 -124
  35. package/configs/eslint.cjs +0 -154
  36. package/configs/node.cjs +0 -9
  37. package/configs/vite/test/setupFiles/captureOutput.js +0 -4
  38. package/configs/vite/test/setupFiles/dedent.js +0 -4
  39. package/configs/vite/test/setupFiles/fit-xit-fdescribe-xdescribe.js +0 -13
  40. package/configs/vite/test/setupFiles/jest-extended.js +0 -10
  41. package/configs/vite/test/setupFiles/testName.js +0 -9
  42. package/helper.js +0 -115
  43. package/templates/LICENSE +0 -9
  44. package/templates/_circleci/config.yml +0 -33
  45. package/templates/_eslintignore.conf +0 -12
  46. package/templates/_eslintrc.cjs +0 -3
  47. package/templates/_gitattributes +0 -4
  48. package/templates/_github/README.template.md +0 -7
  49. package/templates/_github/renovate.json +0 -3
  50. package/templates/_gitignore +0 -29
  51. package/templates/_yarnrc.yml +0 -15
  52. package/templates/lerna.json +0 -6
  53. package/templates/lib/__tests__/main.js +0 -13
  54. package/templates/lib/main.js +0 -5
  55. package/templates/lintstaged.config.js +0 -5
  56. package/templates/prettier.config.js +0 -5
  57. package/templates/scripts/ci +0 -6
  58. package/templates/scripts/compress +0 -4
  59. package/templates/scripts/docs/build +0 -4
  60. package/templates/scripts/docs/build-prod +0 -4
  61. package/templates/scripts/docs/cms +0 -4
  62. package/templates/scripts/docs/serve +0 -4
  63. package/templates/scripts/hooks/pre-commit +0 -11
  64. package/templates/scripts/lib/release +0 -5
  65. package/templates/scripts/lib/test +0 -5
  66. package/templates/scripts/lib/test-watch +0 -5
  67. package/templates/scripts/lint +0 -4
  68. package/templates/scripts/lint-fix +0 -4
  69. package/templates/stylelint.config.js +0 -5
  70. package/templates/vite.config.js +0 -5
@@ -1,12 +0,0 @@
1
- # Hidden files are ignored by default by ESLint
2
- # The following line will unignore them
3
- !.*
4
-
5
- # node_modules in subfolders are not ignored by default
6
- node_modules/
7
-
8
- # .yarn contains the yarn source code, we don't need to lint it
9
- .yarn/
10
-
11
- # Ignore the documentation for now, I haven't migrated it to ESM yet
12
- docs/
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: ['./node_modules/aberlaas/configs/eslint.cjs'],
3
- };
@@ -1,4 +0,0 @@
1
- /.yarn/** linguist-vendored
2
- /.yarn/releases/* binary
3
- /.yarn/plugins/**/* binary
4
- /.pnp.* binary linguist-generated
@@ -1,7 +0,0 @@
1
- # {package.name}
2
-
3
- {index}
4
-
5
- ## Documentation
6
-
7
- The complete documentation can be found on {package.homepage}
@@ -1,3 +0,0 @@
1
- {
2
- "extends": ["config:js-lib", "aberlaas"]
3
- }
@@ -1,29 +0,0 @@
1
- # Hidden files
2
- .DS_Store
3
- .envrc
4
-
5
- # Directories
6
- build/
7
- dist/
8
- node_modules/
9
- tmp/
10
-
11
- # Files
12
- Thumbs.db
13
- lerna-debug.log
14
- npm-debug.log
15
- yarn-error.log
16
- *~
17
-
18
- # Yarn
19
- # https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
20
- .yarn/*
21
- !.yarn/patches
22
- !.yarn/plugins
23
- !.yarn/releases
24
- !.yarn/sdks
25
- !.yarn/versions
26
-
27
-
28
- # Netlify
29
- .netlify
@@ -1,15 +0,0 @@
1
- compressionLevel: 0
2
-
3
- defaultSemverRangePrefix: ''
4
-
5
- enableGlobalCache: true
6
-
7
- # Keep old-school saving of dependencies in node_modules
8
- # This makes debugging imported modules so much easier
9
- nodeLinker: node-modules
10
-
11
- # Use hardlinks to a global cache
12
- nmMode: hardlinks-local
13
-
14
- # Make sure each workspace has its own local node_modules
15
- nmHoistingLimits: workspaces
@@ -1,6 +0,0 @@
1
- {
2
- "version": "0.0.1",
3
- "useWorkspaces": true,
4
- "packages": ["lib", "docs"],
5
- "npmClient": "yarn"
6
- }
@@ -1,13 +0,0 @@
1
- import current from '../main.js';
2
-
3
- describe('main', () => {
4
- describe('run', () => {
5
- it('should pass', async () => {
6
- const input = 'something';
7
-
8
- const actual = current.run(input);
9
-
10
- expect(actual).toBe('something');
11
- });
12
- });
13
- });
@@ -1,5 +0,0 @@
1
- export default {
2
- run(input) {
3
- return input;
4
- },
5
- };
@@ -1,5 +0,0 @@
1
- import config from 'aberlaas/configs/lintstaged';
2
-
3
- export default {
4
- ...config,
5
- };
@@ -1,5 +0,0 @@
1
- import config from 'aberlaas/configs/prettier';
2
-
3
- export default {
4
- ...config,
5
- };
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- echo "node $(node --version), yarn $(yarn --version)"
5
-
6
- aberlaas ci "$@"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- aberlaas compress "${@:-$INIT_CWD}"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- echo "TODO: Set a default script"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- echo "TODO: Set a default script"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- echo "TODO: Set a default script"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- echo "TODO: Set a default script"
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env sh
2
- # This script *should be* automatically triggered before each git commit.
3
- #
4
- # If it doesn't work, make sure your local git repo is configured to use
5
- # ./scripts/hooks as the base directory for git hooks.
6
- #
7
- # If not, run:
8
- # $ git config core.hooksPath scripts/hooks
9
- set -e
10
-
11
- yarn run aberlaas precommit
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- yarn run test
5
- lerna publish --yes "$@"
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- cd ./lib
5
- aberlaas test "$@"
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- cd ./lib
5
- aberlaas test --watch "$@"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- aberlaas lint "${@:-$INIT_CWD}"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- aberlaas lint --fix "${@:-$INIT_CWD}"
@@ -1,5 +0,0 @@
1
- import config from 'aberlaas/configs/stylelint';
2
-
3
- export default {
4
- ...config,
5
- };
@@ -1,5 +0,0 @@
1
- import config from 'aberlaas/configs/vite';
2
-
3
- export default {
4
- ...config,
5
- };