@seayoo-web/scripts 1.0.1 → 1.0.2

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 (2) hide show
  1. package/dist/index.js +3 -414
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13,6 +13,7 @@ import { exec } from "child_process";
13
13
  import { Command } from "commander";
14
14
  import inquirer from "inquirer";
15
15
  import ora from "ora";
16
+ import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
16
17
  import { flatConfigs } from "eslint-plugin-import";
17
18
  import pluginVue from "eslint-plugin-vue";
18
19
  function defineLibBuildConfig(option) {
@@ -317,7 +318,7 @@ function definePageBuildConfig(option) {
317
318
  const {
318
319
  plugins = [],
319
320
  define = {},
320
- build: build2 = {},
321
+ build = {},
321
322
  resolve = {},
322
323
  server = {},
323
324
  sentry = {},
@@ -332,7 +333,7 @@ function definePageBuildConfig(option) {
332
333
  assetsDir: "assets",
333
334
  reportCompressedSize: false,
334
335
  sourcemap: command === "build" && !!envs.sentryAuthToken,
335
- ...build2
336
+ ...build
336
337
  },
337
338
  plugins: [
338
339
  vue(),
@@ -657,418 +658,6 @@ async function destroyRepo() {
657
658
  spinner.succeed("页面已经销毁!".green);
658
659
  }
659
660
  program.action(startCreateJob);
660
- function getDefaultExportFromCjs(x) {
661
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
662
- }
663
- var build;
664
- var hasRequiredBuild;
665
- function requireBuild() {
666
- if (hasRequiredBuild) return build;
667
- hasRequiredBuild = 1;
668
- const includeDeprecated = !process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED;
669
- const specialRule = 0;
670
- build = {
671
- rules: {
672
- // The following rules can be used in some cases. See the README for more
673
- // information. These are marked with `0` instead of `"off"` so that a
674
- // script can distinguish them. Note that there are a few more of these
675
- // in the deprecated section below.
676
- "curly": specialRule,
677
- "no-unexpected-multiline": specialRule,
678
- "@stylistic/lines-around-comment": specialRule,
679
- "@stylistic/max-len": specialRule,
680
- "@stylistic/no-confusing-arrow": specialRule,
681
- "@stylistic/no-mixed-operators": specialRule,
682
- "@stylistic/no-tabs": specialRule,
683
- "@stylistic/quotes": specialRule,
684
- "@stylistic/js/lines-around-comment": specialRule,
685
- "@stylistic/js/max-len": specialRule,
686
- "@stylistic/js/no-confusing-arrow": specialRule,
687
- "@stylistic/js/no-mixed-operators": specialRule,
688
- "@stylistic/js/no-tabs": specialRule,
689
- "@stylistic/js/quotes": specialRule,
690
- "@stylistic/ts/lines-around-comment": specialRule,
691
- "@stylistic/ts/quotes": specialRule,
692
- "@typescript-eslint/lines-around-comment": specialRule,
693
- "@typescript-eslint/quotes": specialRule,
694
- "babel/quotes": specialRule,
695
- "unicorn/template-indent": specialRule,
696
- "vue/html-self-closing": specialRule,
697
- "vue/max-len": specialRule,
698
- // The rest are rules that you never need to enable when using Prettier.
699
- "@babel/object-curly-spacing": "off",
700
- "@babel/semi": "off",
701
- "@stylistic/array-bracket-newline": "off",
702
- "@stylistic/array-bracket-spacing": "off",
703
- "@stylistic/array-element-newline": "off",
704
- "@stylistic/arrow-parens": "off",
705
- "@stylistic/arrow-spacing": "off",
706
- "@stylistic/block-spacing": "off",
707
- "@stylistic/brace-style": "off",
708
- "@stylistic/comma-dangle": "off",
709
- "@stylistic/comma-spacing": "off",
710
- "@stylistic/comma-style": "off",
711
- "@stylistic/computed-property-spacing": "off",
712
- "@stylistic/dot-location": "off",
713
- "@stylistic/eol-last": "off",
714
- "@stylistic/func-call-spacing": "off",
715
- "@stylistic/function-call-argument-newline": "off",
716
- "@stylistic/function-call-spacing": "off",
717
- "@stylistic/function-paren-newline": "off",
718
- "@stylistic/generator-star-spacing": "off",
719
- "@stylistic/implicit-arrow-linebreak": "off",
720
- "@stylistic/indent": "off",
721
- "@stylistic/jsx-quotes": "off",
722
- "@stylistic/key-spacing": "off",
723
- "@stylistic/keyword-spacing": "off",
724
- "@stylistic/linebreak-style": "off",
725
- "@stylistic/max-statements-per-line": "off",
726
- "@stylistic/multiline-ternary": "off",
727
- "@stylistic/new-parens": "off",
728
- "@stylistic/newline-per-chained-call": "off",
729
- "@stylistic/no-extra-parens": "off",
730
- "@stylistic/no-extra-semi": "off",
731
- "@stylistic/no-floating-decimal": "off",
732
- "@stylistic/no-mixed-spaces-and-tabs": "off",
733
- "@stylistic/no-multi-spaces": "off",
734
- "@stylistic/no-multiple-empty-lines": "off",
735
- "@stylistic/no-trailing-spaces": "off",
736
- "@stylistic/no-whitespace-before-property": "off",
737
- "@stylistic/nonblock-statement-body-position": "off",
738
- "@stylistic/object-curly-newline": "off",
739
- "@stylistic/object-curly-spacing": "off",
740
- "@stylistic/object-property-newline": "off",
741
- "@stylistic/one-var-declaration-per-line": "off",
742
- "@stylistic/operator-linebreak": "off",
743
- "@stylistic/padded-blocks": "off",
744
- "@stylistic/quote-props": "off",
745
- "@stylistic/rest-spread-spacing": "off",
746
- "@stylistic/semi": "off",
747
- "@stylistic/semi-spacing": "off",
748
- "@stylistic/semi-style": "off",
749
- "@stylistic/space-before-blocks": "off",
750
- "@stylistic/space-before-function-paren": "off",
751
- "@stylistic/space-in-parens": "off",
752
- "@stylistic/space-infix-ops": "off",
753
- "@stylistic/space-unary-ops": "off",
754
- "@stylistic/switch-colon-spacing": "off",
755
- "@stylistic/template-curly-spacing": "off",
756
- "@stylistic/template-tag-spacing": "off",
757
- "@stylistic/wrap-iife": "off",
758
- "@stylistic/wrap-regex": "off",
759
- "@stylistic/yield-star-spacing": "off",
760
- "@stylistic/member-delimiter-style": "off",
761
- "@stylistic/type-annotation-spacing": "off",
762
- "@stylistic/jsx-child-element-spacing": "off",
763
- "@stylistic/jsx-closing-bracket-location": "off",
764
- "@stylistic/jsx-closing-tag-location": "off",
765
- "@stylistic/jsx-curly-newline": "off",
766
- "@stylistic/jsx-curly-spacing": "off",
767
- "@stylistic/jsx-equals-spacing": "off",
768
- "@stylistic/jsx-first-prop-new-line": "off",
769
- "@stylistic/jsx-indent": "off",
770
- "@stylistic/jsx-indent-props": "off",
771
- "@stylistic/jsx-max-props-per-line": "off",
772
- "@stylistic/jsx-newline": "off",
773
- "@stylistic/jsx-one-expression-per-line": "off",
774
- "@stylistic/jsx-props-no-multi-spaces": "off",
775
- "@stylistic/jsx-tag-spacing": "off",
776
- "@stylistic/jsx-wrap-multilines": "off",
777
- "@stylistic/indent-binary-ops": "off",
778
- "@stylistic/type-generic-spacing": "off",
779
- "@stylistic/type-named-tuple-spacing": "off",
780
- "@stylistic/js/array-bracket-newline": "off",
781
- "@stylistic/js/array-bracket-spacing": "off",
782
- "@stylistic/js/array-element-newline": "off",
783
- "@stylistic/js/arrow-parens": "off",
784
- "@stylistic/js/arrow-spacing": "off",
785
- "@stylistic/js/block-spacing": "off",
786
- "@stylistic/js/brace-style": "off",
787
- "@stylistic/js/comma-dangle": "off",
788
- "@stylistic/js/comma-spacing": "off",
789
- "@stylistic/js/comma-style": "off",
790
- "@stylistic/js/computed-property-spacing": "off",
791
- "@stylistic/js/dot-location": "off",
792
- "@stylistic/js/eol-last": "off",
793
- "@stylistic/js/func-call-spacing": "off",
794
- "@stylistic/js/function-call-argument-newline": "off",
795
- "@stylistic/js/function-call-spacing": "off",
796
- "@stylistic/js/function-paren-newline": "off",
797
- "@stylistic/js/generator-star-spacing": "off",
798
- "@stylistic/js/implicit-arrow-linebreak": "off",
799
- "@stylistic/js/indent": "off",
800
- "@stylistic/js/jsx-quotes": "off",
801
- "@stylistic/js/key-spacing": "off",
802
- "@stylistic/js/keyword-spacing": "off",
803
- "@stylistic/js/linebreak-style": "off",
804
- "@stylistic/js/max-statements-per-line": "off",
805
- "@stylistic/js/multiline-ternary": "off",
806
- "@stylistic/js/new-parens": "off",
807
- "@stylistic/js/newline-per-chained-call": "off",
808
- "@stylistic/js/no-extra-parens": "off",
809
- "@stylistic/js/no-extra-semi": "off",
810
- "@stylistic/js/no-floating-decimal": "off",
811
- "@stylistic/js/no-mixed-spaces-and-tabs": "off",
812
- "@stylistic/js/no-multi-spaces": "off",
813
- "@stylistic/js/no-multiple-empty-lines": "off",
814
- "@stylistic/js/no-trailing-spaces": "off",
815
- "@stylistic/js/no-whitespace-before-property": "off",
816
- "@stylistic/js/nonblock-statement-body-position": "off",
817
- "@stylistic/js/object-curly-newline": "off",
818
- "@stylistic/js/object-curly-spacing": "off",
819
- "@stylistic/js/object-property-newline": "off",
820
- "@stylistic/js/one-var-declaration-per-line": "off",
821
- "@stylistic/js/operator-linebreak": "off",
822
- "@stylistic/js/padded-blocks": "off",
823
- "@stylistic/js/quote-props": "off",
824
- "@stylistic/js/rest-spread-spacing": "off",
825
- "@stylistic/js/semi": "off",
826
- "@stylistic/js/semi-spacing": "off",
827
- "@stylistic/js/semi-style": "off",
828
- "@stylistic/js/space-before-blocks": "off",
829
- "@stylistic/js/space-before-function-paren": "off",
830
- "@stylistic/js/space-in-parens": "off",
831
- "@stylistic/js/space-infix-ops": "off",
832
- "@stylistic/js/space-unary-ops": "off",
833
- "@stylistic/js/switch-colon-spacing": "off",
834
- "@stylistic/js/template-curly-spacing": "off",
835
- "@stylistic/js/template-tag-spacing": "off",
836
- "@stylistic/js/wrap-iife": "off",
837
- "@stylistic/js/wrap-regex": "off",
838
- "@stylistic/js/yield-star-spacing": "off",
839
- "@stylistic/ts/block-spacing": "off",
840
- "@stylistic/ts/brace-style": "off",
841
- "@stylistic/ts/comma-dangle": "off",
842
- "@stylistic/ts/comma-spacing": "off",
843
- "@stylistic/ts/func-call-spacing": "off",
844
- "@stylistic/ts/function-call-spacing": "off",
845
- "@stylistic/ts/indent": "off",
846
- "@stylistic/ts/key-spacing": "off",
847
- "@stylistic/ts/keyword-spacing": "off",
848
- "@stylistic/ts/member-delimiter-style": "off",
849
- "@stylistic/ts/no-extra-parens": "off",
850
- "@stylistic/ts/no-extra-semi": "off",
851
- "@stylistic/ts/object-curly-spacing": "off",
852
- "@stylistic/ts/semi": "off",
853
- "@stylistic/ts/space-before-blocks": "off",
854
- "@stylistic/ts/space-before-function-paren": "off",
855
- "@stylistic/ts/space-infix-ops": "off",
856
- "@stylistic/ts/type-annotation-spacing": "off",
857
- "@stylistic/jsx/jsx-child-element-spacing": "off",
858
- "@stylistic/jsx/jsx-closing-bracket-location": "off",
859
- "@stylistic/jsx/jsx-closing-tag-location": "off",
860
- "@stylistic/jsx/jsx-curly-newline": "off",
861
- "@stylistic/jsx/jsx-curly-spacing": "off",
862
- "@stylistic/jsx/jsx-equals-spacing": "off",
863
- "@stylistic/jsx/jsx-first-prop-new-line": "off",
864
- "@stylistic/jsx/jsx-indent": "off",
865
- "@stylistic/jsx/jsx-indent-props": "off",
866
- "@stylistic/jsx/jsx-max-props-per-line": "off",
867
- "@typescript-eslint/block-spacing": "off",
868
- "@typescript-eslint/brace-style": "off",
869
- "@typescript-eslint/comma-dangle": "off",
870
- "@typescript-eslint/comma-spacing": "off",
871
- "@typescript-eslint/func-call-spacing": "off",
872
- "@typescript-eslint/indent": "off",
873
- "@typescript-eslint/key-spacing": "off",
874
- "@typescript-eslint/keyword-spacing": "off",
875
- "@typescript-eslint/member-delimiter-style": "off",
876
- "@typescript-eslint/no-extra-parens": "off",
877
- "@typescript-eslint/no-extra-semi": "off",
878
- "@typescript-eslint/object-curly-spacing": "off",
879
- "@typescript-eslint/semi": "off",
880
- "@typescript-eslint/space-before-blocks": "off",
881
- "@typescript-eslint/space-before-function-paren": "off",
882
- "@typescript-eslint/space-infix-ops": "off",
883
- "@typescript-eslint/type-annotation-spacing": "off",
884
- "babel/object-curly-spacing": "off",
885
- "babel/semi": "off",
886
- "flowtype/boolean-style": "off",
887
- "flowtype/delimiter-dangle": "off",
888
- "flowtype/generic-spacing": "off",
889
- "flowtype/object-type-curly-spacing": "off",
890
- "flowtype/object-type-delimiter": "off",
891
- "flowtype/quotes": "off",
892
- "flowtype/semi": "off",
893
- "flowtype/space-after-type-colon": "off",
894
- "flowtype/space-before-generic-bracket": "off",
895
- "flowtype/space-before-type-colon": "off",
896
- "flowtype/union-intersection-spacing": "off",
897
- "react/jsx-child-element-spacing": "off",
898
- "react/jsx-closing-bracket-location": "off",
899
- "react/jsx-closing-tag-location": "off",
900
- "react/jsx-curly-newline": "off",
901
- "react/jsx-curly-spacing": "off",
902
- "react/jsx-equals-spacing": "off",
903
- "react/jsx-first-prop-new-line": "off",
904
- "react/jsx-indent": "off",
905
- "react/jsx-indent-props": "off",
906
- "react/jsx-max-props-per-line": "off",
907
- "react/jsx-newline": "off",
908
- "react/jsx-one-expression-per-line": "off",
909
- "react/jsx-props-no-multi-spaces": "off",
910
- "react/jsx-tag-spacing": "off",
911
- "react/jsx-wrap-multilines": "off",
912
- "standard/array-bracket-even-spacing": "off",
913
- "standard/computed-property-even-spacing": "off",
914
- "standard/object-curly-even-spacing": "off",
915
- "unicorn/empty-brace-spaces": "off",
916
- "unicorn/no-nested-ternary": "off",
917
- "unicorn/number-literal-case": "off",
918
- "vue/array-bracket-newline": "off",
919
- "vue/array-bracket-spacing": "off",
920
- "vue/array-element-newline": "off",
921
- "vue/arrow-spacing": "off",
922
- "vue/block-spacing": "off",
923
- "vue/block-tag-newline": "off",
924
- "vue/brace-style": "off",
925
- "vue/comma-dangle": "off",
926
- "vue/comma-spacing": "off",
927
- "vue/comma-style": "off",
928
- "vue/dot-location": "off",
929
- "vue/func-call-spacing": "off",
930
- "vue/html-closing-bracket-newline": "off",
931
- "vue/html-closing-bracket-spacing": "off",
932
- "vue/html-end-tags": "off",
933
- "vue/html-indent": "off",
934
- "vue/html-quotes": "off",
935
- "vue/key-spacing": "off",
936
- "vue/keyword-spacing": "off",
937
- "vue/max-attributes-per-line": "off",
938
- "vue/multiline-html-element-content-newline": "off",
939
- "vue/multiline-ternary": "off",
940
- "vue/mustache-interpolation-spacing": "off",
941
- "vue/no-extra-parens": "off",
942
- "vue/no-multi-spaces": "off",
943
- "vue/no-spaces-around-equal-signs-in-attribute": "off",
944
- "vue/object-curly-newline": "off",
945
- "vue/object-curly-spacing": "off",
946
- "vue/object-property-newline": "off",
947
- "vue/operator-linebreak": "off",
948
- "vue/quote-props": "off",
949
- "vue/script-indent": "off",
950
- "vue/singleline-html-element-content-newline": "off",
951
- "vue/space-in-parens": "off",
952
- "vue/space-infix-ops": "off",
953
- "vue/space-unary-ops": "off",
954
- "vue/template-curly-spacing": "off",
955
- ...includeDeprecated && {
956
- // Removed in version 0.10.0.
957
- // https://eslint.org/docs/latest/rules/space-unary-word-ops
958
- "space-unary-word-ops": "off",
959
- // Removed in version 1.0.0.
960
- // https://github.com/eslint/eslint/issues/1898
961
- "generator-star": "off",
962
- "no-comma-dangle": "off",
963
- "no-reserved-keys": "off",
964
- "no-space-before-semi": "off",
965
- "no-wrap-func": "off",
966
- "space-after-function-name": "off",
967
- "space-before-function-parentheses": "off",
968
- "space-in-brackets": "off",
969
- // Removed in version 2.0.0.
970
- // https://github.com/eslint/eslint/issues/5032
971
- "no-arrow-condition": "off",
972
- "space-after-keywords": "off",
973
- "space-before-keywords": "off",
974
- "space-return-throw-case": "off",
975
- // Deprecated since version 3.3.0.
976
- // https://eslint.org/docs/rules/no-spaced-func
977
- "no-spaced-func": "off",
978
- // Deprecated since version 4.0.0.
979
- // https://github.com/eslint/eslint/pull/8286
980
- "indent-legacy": "off",
981
- // Deprecated since version 8.53.0.
982
- // https://eslint.org/blog/2023/10/deprecating-formatting-rules/
983
- "array-bracket-newline": "off",
984
- "array-bracket-spacing": "off",
985
- "array-element-newline": "off",
986
- "arrow-parens": "off",
987
- "arrow-spacing": "off",
988
- "block-spacing": "off",
989
- "brace-style": "off",
990
- "comma-dangle": "off",
991
- "comma-spacing": "off",
992
- "comma-style": "off",
993
- "computed-property-spacing": "off",
994
- "dot-location": "off",
995
- "eol-last": "off",
996
- "func-call-spacing": "off",
997
- "function-call-argument-newline": "off",
998
- "function-paren-newline": "off",
999
- "generator-star-spacing": "off",
1000
- "implicit-arrow-linebreak": "off",
1001
- "indent": "off",
1002
- "jsx-quotes": "off",
1003
- "key-spacing": "off",
1004
- "keyword-spacing": "off",
1005
- "linebreak-style": "off",
1006
- "lines-around-comment": specialRule,
1007
- "max-len": specialRule,
1008
- "max-statements-per-line": "off",
1009
- "multiline-ternary": "off",
1010
- "new-parens": "off",
1011
- "newline-per-chained-call": "off",
1012
- "no-confusing-arrow": specialRule,
1013
- "no-extra-parens": "off",
1014
- "no-extra-semi": "off",
1015
- "no-floating-decimal": "off",
1016
- "no-mixed-operators": specialRule,
1017
- "no-mixed-spaces-and-tabs": "off",
1018
- "no-multi-spaces": "off",
1019
- "no-multiple-empty-lines": "off",
1020
- "no-tabs": specialRule,
1021
- "no-trailing-spaces": "off",
1022
- "no-whitespace-before-property": "off",
1023
- "nonblock-statement-body-position": "off",
1024
- "object-curly-newline": "off",
1025
- "object-curly-spacing": "off",
1026
- "object-property-newline": "off",
1027
- "one-var-declaration-per-line": "off",
1028
- "operator-linebreak": "off",
1029
- "padded-blocks": "off",
1030
- "quote-props": "off",
1031
- "quotes": specialRule,
1032
- "rest-spread-spacing": "off",
1033
- "semi": "off",
1034
- "semi-spacing": "off",
1035
- "semi-style": "off",
1036
- "space-before-blocks": "off",
1037
- "space-before-function-paren": "off",
1038
- "space-in-parens": "off",
1039
- "space-infix-ops": "off",
1040
- "space-unary-ops": "off",
1041
- "switch-colon-spacing": "off",
1042
- "template-curly-spacing": "off",
1043
- "template-tag-spacing": "off",
1044
- "wrap-iife": "off",
1045
- "wrap-regex": "off",
1046
- "yield-star-spacing": "off",
1047
- // Deprecated since version 7.0.0.
1048
- // https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#700---2017-05-06
1049
- "react/jsx-space-before-closing": "off"
1050
- }
1051
- }
1052
- };
1053
- return build;
1054
- }
1055
- var skipFormatting$1;
1056
- var hasRequiredSkipFormatting;
1057
- function requireSkipFormatting() {
1058
- if (hasRequiredSkipFormatting) return skipFormatting$1;
1059
- hasRequiredSkipFormatting = 1;
1060
- const eslintConfigPrettier = requireBuild();
1061
- skipFormatting$1 = {
1062
- ...eslintConfigPrettier,
1063
- rules: {
1064
- ...eslintConfigPrettier.rules,
1065
- "prettier/prettier": "off"
1066
- }
1067
- };
1068
- return skipFormatting$1;
1069
- }
1070
- var skipFormattingExports = requireSkipFormatting();
1071
- const skipFormatting = /* @__PURE__ */ getDefaultExportFromCjs(skipFormattingExports);
1072
661
  const vueConfig = [
1073
662
  ...pluginVue.configs["flat/essential"],
1074
663
  skipFormatting,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seayoo-web/scripts",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "scripts for seayoo web monorepos",
5
5
  "type": "module",
6
6
  "source": "index.ts",