aberlaas-init 2.10.0 → 2.13.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 (68) hide show
  1. package/lib/helper.js +32 -25
  2. package/lib/layouts/__tests__/libdocs.js +222 -0
  3. package/lib/layouts/__tests__/module.js +130 -0
  4. package/lib/layouts/__tests__/monorepo.js +226 -0
  5. package/lib/{monorepo.js → layouts/libdocs.js} +39 -78
  6. package/lib/{module.js → layouts/module.js} +18 -21
  7. package/lib/layouts/monorepo.js +236 -0
  8. package/lib/main.js +37 -6
  9. package/package.json +6 -5
  10. package/templates/_yarnrc.yml +1 -0
  11. package/templates/scripts/__libdocs/local/build +5 -0
  12. package/templates/scripts/__libdocs/local/build-prod +5 -0
  13. package/templates/scripts/__libdocs/local/ci +5 -0
  14. package/templates/scripts/__libdocs/local/cms +4 -0
  15. package/templates/scripts/__libdocs/local/compress +5 -0
  16. package/templates/scripts/__libdocs/local/lint +5 -0
  17. package/templates/scripts/__libdocs/local/lint-fix +5 -0
  18. package/templates/scripts/__libdocs/local/release +5 -0
  19. package/templates/scripts/__libdocs/local/serve +5 -0
  20. package/templates/scripts/__libdocs/local/test +5 -0
  21. package/templates/scripts/__libdocs/local/test-watch +6 -0
  22. package/templates/scripts/__libdocs/meta/build +4 -0
  23. package/templates/scripts/__libdocs/meta/build-prod +4 -0
  24. package/templates/scripts/__libdocs/meta/ci +4 -0
  25. package/templates/scripts/__libdocs/meta/cms +4 -0
  26. package/templates/scripts/__libdocs/meta/compress +4 -0
  27. package/templates/scripts/__libdocs/meta/lint +4 -0
  28. package/templates/scripts/__libdocs/meta/lint-fix +4 -0
  29. package/templates/scripts/__libdocs/meta/serve +4 -0
  30. package/templates/scripts/__libdocs/meta/test +4 -0
  31. package/templates/scripts/__libdocs/meta/test-watch +4 -0
  32. package/templates/scripts/__module/hooks/pre-commit +11 -0
  33. package/templates/scripts/__module/release +4 -0
  34. package/templates/scripts/__monorepo/hooks/pre-commit +11 -0
  35. package/templates/scripts/__monorepo/local/build +5 -0
  36. package/templates/scripts/__monorepo/local/build-prod +5 -0
  37. package/templates/scripts/__monorepo/local/ci +5 -0
  38. package/templates/scripts/__monorepo/local/cms +5 -0
  39. package/templates/scripts/__monorepo/local/compress +5 -0
  40. package/templates/scripts/__monorepo/local/lint +5 -0
  41. package/templates/scripts/__monorepo/local/lint-fix +5 -0
  42. package/templates/scripts/__monorepo/local/release +5 -0
  43. package/templates/scripts/__monorepo/local/serve +5 -0
  44. package/templates/scripts/__monorepo/local/test +5 -0
  45. package/templates/scripts/__monorepo/local/test-watch +6 -0
  46. package/templates/scripts/__monorepo/meta/build +4 -0
  47. package/templates/scripts/__monorepo/meta/build-prod +4 -0
  48. package/templates/scripts/__monorepo/meta/ci +4 -0
  49. package/templates/scripts/__monorepo/meta/cms +4 -0
  50. package/templates/scripts/__monorepo/meta/compress +4 -0
  51. package/templates/scripts/__monorepo/meta/lint +4 -0
  52. package/templates/scripts/__monorepo/meta/lint-fix +4 -0
  53. package/templates/scripts/__monorepo/meta/release +5 -0
  54. package/templates/scripts/__monorepo/meta/serve +4 -0
  55. package/templates/scripts/__monorepo/meta/test +4 -0
  56. package/templates/scripts/__monorepo/meta/test-watch +4 -0
  57. package/templates/scripts/docs/build +0 -4
  58. package/templates/scripts/docs/build-prod +0 -4
  59. package/templates/scripts/docs/cms +0 -4
  60. package/templates/scripts/docs/serve +0 -4
  61. /package/templates/scripts/{hooks → __libdocs/hooks}/pre-commit +0 -0
  62. /package/templates/scripts/{lib → __libdocs/meta}/release +0 -0
  63. /package/templates/scripts/{ci → __module/ci} +0 -0
  64. /package/templates/scripts/{compress → __module/compress} +0 -0
  65. /package/templates/scripts/{lint → __module/lint} +0 -0
  66. /package/templates/scripts/{lint-fix → __module/lint-fix} +0 -0
  67. /package/templates/scripts/{lib → __module}/test +0 -0
  68. /package/templates/scripts/{lib → __module}/test-watch +0 -0
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ..
5
+ ./scripts/meta/lint-fix "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ..
5
+ ./scripts/meta/release "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ..
5
+ ./scripts/meta/serve "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ..
5
+ ./scripts/meta/test "$@"
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ cd ..
6
+ ./scripts/meta/test-watch "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: Should build the documentation"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: Should build the documentation for production"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run aberlaas ci "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: Set a script to load the CMS UI"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run aberlaas compress "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run aberlaas lint "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run aberlaas lint --fix "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: Should serve the documentation locally"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run aberlaas test "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run aberlaas test --watch "$@"
@@ -0,0 +1,11 @@
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
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: Find a way to release a simple module, not in a mono-repo"
@@ -0,0 +1,11 @@
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
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ../..
5
+ ./scripts/meta/build "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ../..
5
+ ./scripts/meta/build-prod "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ../..
5
+ ./scripts/meta/ci "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ../..
5
+ ./scripts/meta/cms
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ../..
5
+ ./scripts/meta/compress "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ../..
5
+ ./scripts/meta/lint "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ../..
5
+ ./scripts/meta/lint-fix "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ../..
5
+ ./scripts/meta/release "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ../..
5
+ ./scripts/meta/serve "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ cd ../..
5
+ ./scripts/meta/test "$@"
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ #
3
+ set -e
4
+
5
+ cd ../..
6
+ ./scripts/meta/test-watch "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: Should build the documentation"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: Should build the documentation for production"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run aberlaas ci "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: Set a script to load the CMS UI"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run aberlaas compress "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run aberlaas lint "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run aberlaas lint --fix "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run test
5
+ lerna publish --yes "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ echo "TODO: Should serve the documentation locally"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run aberlaas test "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ yarn run aberlaas test --watch "$@"
@@ -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"
File without changes
File without changes
File without changes
File without changes