uranio 0.0.108 → 0.1.3

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 (159) hide show
  1. package/.editorconfig +4 -0
  2. package/.eslintignore +2 -0
  3. package/.eslintrc.js +77 -75
  4. package/.prettierrc.toml +4 -0
  5. package/.repo/husky/pre-commit +4 -0
  6. package/dist/bin.js +13 -0
  7. package/dist/bin.js.map +1 -0
  8. package/dist/generate/index.d.ts +6 -0
  9. package/dist/generate/index.js +18 -0
  10. package/dist/generate/index.js.map +1 -0
  11. package/dist/index.d.ts +9 -8
  12. package/dist/index.js +6 -7
  13. package/dist/index.js.map +1 -1
  14. package/package.json +43 -71
  15. package/scripts/version.sh +61 -0
  16. package/src/bin.ts +8 -0
  17. package/src/generate/index.ts +13 -0
  18. package/src/index.ts +9 -13
  19. package/tsconfig.json +31 -42
  20. package/.github/workflows/npm-publish.yml +0 -67
  21. package/README.md +0 -692
  22. package/TODO.md +0 -50
  23. package/dist/args/args.d.ts +0 -7
  24. package/dist/args/args.js +0 -17
  25. package/dist/args/args.js.map +0 -1
  26. package/dist/args/index.d.ts +0 -6
  27. package/dist/args/index.js +0 -23
  28. package/dist/args/index.js.map +0 -1
  29. package/dist/ascii/index.d.ts +0 -262
  30. package/dist/ascii/index.js +0 -543
  31. package/dist/ascii/index.js.map +0 -1
  32. package/dist/cmd/build.d.ts +0 -9
  33. package/dist/cmd/build.js +0 -136
  34. package/dist/cmd/build.js.map +0 -1
  35. package/dist/cmd/common.d.ts +0 -22
  36. package/dist/cmd/common.js +0 -159
  37. package/dist/cmd/common.js.map +0 -1
  38. package/dist/cmd/deinit.d.ts +0 -7
  39. package/dist/cmd/deinit.js +0 -196
  40. package/dist/cmd/deinit.js.map +0 -1
  41. package/dist/cmd/dev.d.ts +0 -10
  42. package/dist/cmd/dev.js +0 -256
  43. package/dist/cmd/dev.js.map +0 -1
  44. package/dist/cmd/docker.d.ts +0 -55
  45. package/dist/cmd/docker.js +0 -905
  46. package/dist/cmd/docker.js.map +0 -1
  47. package/dist/cmd/generate.d.ts +0 -31
  48. package/dist/cmd/generate.js +0 -251
  49. package/dist/cmd/generate.js.map +0 -1
  50. package/dist/cmd/help.d.ts +0 -6
  51. package/dist/cmd/help.js +0 -58
  52. package/dist/cmd/help.js.map +0 -1
  53. package/dist/cmd/index.d.ts +0 -15
  54. package/dist/cmd/index.js +0 -34
  55. package/dist/cmd/index.js.map +0 -1
  56. package/dist/cmd/info.d.ts +0 -7
  57. package/dist/cmd/info.js +0 -77
  58. package/dist/cmd/info.js.map +0 -1
  59. package/dist/cmd/init.d.ts +0 -8
  60. package/dist/cmd/init.js +0 -578
  61. package/dist/cmd/init.js.map +0 -1
  62. package/dist/cmd/start.d.ts +0 -9
  63. package/dist/cmd/start.js +0 -106
  64. package/dist/cmd/start.js.map +0 -1
  65. package/dist/cmd/title.d.ts +0 -6
  66. package/dist/cmd/title.js +0 -35
  67. package/dist/cmd/title.js.map +0 -1
  68. package/dist/cmd/transpose.d.ts +0 -25
  69. package/dist/cmd/transpose.js +0 -498
  70. package/dist/cmd/transpose.js.map +0 -1
  71. package/dist/conf/defaults.d.ts +0 -44
  72. package/dist/conf/defaults.js +0 -81
  73. package/dist/conf/defaults.js.map +0 -1
  74. package/dist/output/class.d.ts +0 -45
  75. package/dist/output/class.js +0 -699
  76. package/dist/output/class.js.map +0 -1
  77. package/dist/output/index.d.ts +0 -6
  78. package/dist/output/index.js +0 -24
  79. package/dist/output/index.js.map +0 -1
  80. package/dist/output/spinner.d.ts +0 -8
  81. package/dist/output/spinner.js +0 -17
  82. package/dist/output/spinner.js.map +0 -1
  83. package/dist/output/types.d.ts +0 -5
  84. package/dist/output/types.js +0 -21
  85. package/dist/output/types.js.map +0 -1
  86. package/dist/process.d.ts +0 -7
  87. package/dist/process.js +0 -600
  88. package/dist/process.js.map +0 -1
  89. package/dist/sh.js +0 -8
  90. package/dist/sh.js.map +0 -1
  91. package/dist/test.js +0 -38
  92. package/dist/test.js.map +0 -1
  93. package/dist/types.d.ts +0 -91
  94. package/dist/types.js +0 -125
  95. package/dist/types.js.map +0 -1
  96. package/dist/util/class.d.ts +0 -26
  97. package/dist/util/class.js +0 -134
  98. package/dist/util/class.js.map +0 -1
  99. package/dist/util/cmd.d.ts +0 -58
  100. package/dist/util/cmd.js +0 -368
  101. package/dist/util/cmd.js.map +0 -1
  102. package/dist/util/fs.d.ts +0 -34
  103. package/dist/util/fs.js +0 -157
  104. package/dist/util/fs.js.map +0 -1
  105. package/dist/util/index.d.ts +0 -7
  106. package/dist/util/index.js +0 -24
  107. package/dist/util/index.js.map +0 -1
  108. package/dist/util/spawn.d.ts +0 -48
  109. package/dist/util/spawn.js +0 -436
  110. package/dist/util/spawn.js.map +0 -1
  111. package/dist/util/types.d.ts +0 -14
  112. package/dist/util/types.js +0 -14
  113. package/dist/util/types.js.map +0 -1
  114. package/docker/.bash_docker +0 -6
  115. package/docker/Dockerfile +0 -14
  116. package/img/URN_TEXT_1440_BANNER_00.png +0 -0
  117. package/img/URN_TEXT_1440_BANNER_01.png +0 -0
  118. package/img/URN_TEXT_1920_00.png +0 -0
  119. package/img/uranio_repos.jpg +0 -0
  120. package/img/uranio_repos_00.png +0 -0
  121. package/readme/DOCKER.md +0 -132
  122. package/readme/ENV.md +0 -279
  123. package/readme/TOML.md +0 -747
  124. package/readme/WORKFLOW.md +0 -162
  125. package/src/args/args.ts +0 -14
  126. package/src/args/index.ts +0 -7
  127. package/src/ascii/1.txt +0 -6
  128. package/src/ascii/index.ts +0 -282
  129. package/src/cmd/build.ts +0 -170
  130. package/src/cmd/common.ts +0 -180
  131. package/src/cmd/deinit.ts +0 -209
  132. package/src/cmd/dev.ts +0 -260
  133. package/src/cmd/docker.ts +0 -1106
  134. package/src/cmd/generate.ts +0 -299
  135. package/src/cmd/help.ts +0 -61
  136. package/src/cmd/index.ts +0 -26
  137. package/src/cmd/info.ts +0 -74
  138. package/src/cmd/init.ts +0 -679
  139. package/src/cmd/start.ts +0 -90
  140. package/src/cmd/title.ts +0 -40
  141. package/src/cmd/transpose.ts +0 -634
  142. package/src/conf/defaults.ts +0 -80
  143. package/src/output/class.ts +0 -805
  144. package/src/output/index.ts +0 -9
  145. package/src/output/spinner.ts +0 -13
  146. package/src/output/types.ts +0 -21
  147. package/src/process.ts +0 -709
  148. package/src/sh.ts +0 -9
  149. package/src/tags +0 -379
  150. package/src/test.ts +0 -47
  151. package/src/types.ts +0 -197
  152. package/src/util/class.ts +0 -159
  153. package/src/util/cmd.ts +0 -448
  154. package/src/util/fs.ts +0 -174
  155. package/src/util/index.ts +0 -9
  156. package/src/util/spawn.ts +0 -533
  157. package/src/util/types.ts +0 -28
  158. /package/{dist/test.d.ts → .repo/.gitkeep} +0 -0
  159. /package/dist/{sh.d.ts → bin.d.ts} +0 -0
package/.editorconfig ADDED
@@ -0,0 +1,4 @@
1
+ # Space indentation (no size specified)
2
+ [*]
3
+ indent_style = space
4
+ insert_final_newline = true
package/.eslintignore CHANGED
@@ -2,3 +2,5 @@
2
2
  node_modules
3
3
  node_modules/*
4
4
  node_modules/**/*
5
+ !.*
6
+ /node_modules/.*
package/.eslintrc.js CHANGED
@@ -1,76 +1,78 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true,
5
- browser: true,
6
- es6: true
7
- },
8
- extends: [
9
- 'eslint:recommended',
10
- 'plugin:json/recommended'
11
- ],
12
- parserOptions: {
13
- ecmaVersion: 2020,
14
- sourceType: "module"
15
- },
16
- rules: {
17
- 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
18
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
19
- 'semi': ['warn', 'always'],
20
- 'padded-blocks': ['off', 'always'],
21
- 'no-tabs': ['error', {allowIndentationTabs: true}],
22
- 'indent': ['warn', 'tab', {SwitchCase: 1}],
23
- 'space-before-function-paren': ['off', 'always'],
24
- 'space-before-blocks': ['off', 'always'],
25
- 'object-curly-spacing': ['off', 'always'],
26
- 'no-trailing-spaces': ['warn', {skipBlankLines: true}],
27
- 'no-multiple-empty-lines': ['warn', {max: 3}],
28
- 'keyword-spacing': ['off'],
29
- 'camelcase': ['off'],
30
- 'no-unused-vars': ['warn', {"argsIgnorePattern": "^_", "varsIgnorePattern": "^_"}]
31
- },
32
- overrides: [
33
- {
34
- files: ['**/*.ts', '**/*.tsx'],
35
- env: {
36
- node: true,
37
- browser: true,
38
- es6: true
39
- },
40
- plugins: [
41
- '@typescript-eslint'
42
- ],
43
- parser: '@typescript-eslint/parser',
44
- extends: [
45
- 'eslint:recommended',
46
- 'plugin:@typescript-eslint/eslint-recommended',
47
- 'plugin:@typescript-eslint/recommended'
48
- ],
49
- parserOptions: {
50
- ecmaVersion: 2020,
51
- sourceType: "module",
52
- project: './tsconfig.json'
53
- },
54
- rules: {
55
- 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
56
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
57
- 'semi': ['warn', 'always'],
58
- 'padded-blocks': ['off', 'always'],
59
- 'no-tabs': ['error', {allowIndentationTabs: true}],
60
- 'indent': ['warn', 'tab', {SwitchCase: 1}],
61
- 'space-before-function-paren': ['off', 'always'],
62
- 'space-before-blocks': ['off', 'always'],
63
- 'object-curly-spacing': ['off', 'always'],
64
- 'no-trailing-spaces': ['warn', {skipBlankLines: true}],
65
- 'no-multiple-empty-lines': ['warn', {max: 3}],
66
- 'keyword-spacing': ['off'],
67
- 'camelcase': ['off'],
68
- '@typescript-eslint/no-explicit-any': ['off'],
69
- '@typescript-eslint/no-empty-interface': ['off'],
70
- '@typescript-eslint/no-namespace': ['off'],
71
- '@typescript-eslint/no-non-null-assertion': ['off'],
72
- '@typescript-eslint/no-unused-vars': ['warn', {"argsIgnorePattern": "^_", "varsIgnorePattern": "^_"}]
73
- }
74
- }
75
- ]
1
+ export default {
2
+ root: true,
3
+ env: {
4
+ node: true,
5
+ browser: true,
6
+ es6: true,
7
+ },
8
+ extends: ['eslint:recommended', 'plugin:json/recommended', 'prettier'],
9
+ parserOptions: {
10
+ ecmaVersion: 2020,
11
+ sourceType: 'module',
12
+ },
13
+ rules: {
14
+ 'camelcase': ['off'],
15
+ 'keyword-spacing': ['off'],
16
+ 'object-curly-spacing': ['off', 'always'],
17
+ 'no-multiple-empty-lines': ['warn', {max: 3}],
18
+ 'no-tabs': ['warn'],
19
+ 'no-trailing-spaces': ['error', {skipBlankLines: true}],
20
+ 'no-unused-vars': [
21
+ 'warn',
22
+ {argsIgnorePattern: '^_', varsIgnorePattern: '^_'},
23
+ ],
24
+ 'padded-blocks': ['off', 'always'],
25
+ 'prettier/prettier': 'error',
26
+ 'semi': ['error', 'always'],
27
+ 'space-before-blocks': ['off', 'always'],
28
+ 'space-before-function-paren': ['off', 'always'],
29
+ },
30
+ overrides: [
31
+ {
32
+ files: ['**/*.ts', '**/*.tsx'],
33
+ env: {
34
+ node: true,
35
+ browser: true,
36
+ es6: true,
37
+ },
38
+ plugins: ['@typescript-eslint'],
39
+ parser: '@typescript-eslint/parser',
40
+ extends: [
41
+ 'eslint:recommended',
42
+ 'plugin:@typescript-eslint/eslint-recommended',
43
+ 'plugin:@typescript-eslint/recommended',
44
+ 'prettier',
45
+ ],
46
+ parserOptions: {
47
+ ecmaVersion: 2020,
48
+ sourceType: 'module',
49
+ project: './tsconfig.json',
50
+ },
51
+ rules: {
52
+ '@typescript-eslint/no-explicit-any': ['off'],
53
+ '@typescript-eslint/no-empty-interface': ['off'],
54
+ '@typescript-eslint/no-namespace': ['off'],
55
+ '@typescript-eslint/no-non-null-assertion': ['off'],
56
+ '@typescript-eslint/no-unused-vars': [
57
+ 'warn',
58
+ {argsIgnorePattern: '^_', varsIgnorePattern: '^_'},
59
+ ],
60
+ 'camelcase': ['off'],
61
+ 'keyword-spacing': ['off'],
62
+ 'object-curly-spacing': ['off', 'always'],
63
+ 'no-multiple-empty-lines': ['warn', {max: 3}],
64
+ 'no-tabs': ['warn'],
65
+ 'no-trailing-spaces': ['error', {skipBlankLines: true}],
66
+ 'no-unused-vars': [
67
+ 'warn',
68
+ {argsIgnorePattern: '^_', varsIgnorePattern: '^_'},
69
+ ],
70
+ 'padded-blocks': ['off', 'always'],
71
+ 'prettier/prettier': 'error',
72
+ 'semi': ['error', 'always'],
73
+ 'space-before-blocks': ['off', 'always'],
74
+ 'space-before-function-paren': ['off', 'always'],
75
+ },
76
+ },
77
+ ],
76
78
  };
@@ -0,0 +1,4 @@
1
+ singleQuote = true
2
+ bracketSpacing = false
3
+ useTabs = false
4
+ quoteProps = "consistent"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ yarn precommit
package/dist/bin.js ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const i0n_1 = __importDefault(require("i0n"));
8
+ const log = i0n_1.default.create();
9
+ const index_1 = require("./generate/index");
10
+ const tsconfig_path = `/home/x71c9/repos/uranio/builder/tsconfig.json`;
11
+ const response = (0, index_1.generate)(tsconfig_path);
12
+ log.debug(response);
13
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";;;;;;AAEA,8CAAsB;AACtB,MAAM,GAAG,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC;AACzB,4CAA0C;AAC1C,MAAM,aAAa,GAAG,gDAAgD,CAAC;AACvE,MAAM,QAAQ,GAAG,IAAA,gBAAQ,EAAC,aAAa,CAAC,CAAC;AACzC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ *
3
+ * Generate index module
4
+ *
5
+ */
6
+ export declare function generate(tsconfig_path: string): import("plutonio/dist/scanner/types").Scanned;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Generate index module
5
+ *
6
+ */
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.generate = void 0;
12
+ const plutonio_1 = __importDefault(require("plutonio"));
13
+ function generate(tsconfig_path) {
14
+ const scanned = plutonio_1.default.scanner(tsconfig_path);
15
+ return scanned;
16
+ }
17
+ exports.generate = generate;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generate/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,wDAAgC;AAEhC,SAAgB,QAAQ,CAAC,aAAqB;IAC5C,MAAM,OAAO,GAAG,kBAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAChD,OAAO,OAAO,CAAC;AACjB,CAAC;AAHD,4BAGC"}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import { init, build, start, docker } from './cmd/index';
2
- declare const _default: {
3
- init: typeof init;
4
- build: typeof build;
5
- start: typeof start;
6
- docker: typeof docker;
7
- };
8
- export default _default;
1
+ /**
2
+ *
3
+ * Index module
4
+ *
5
+ * @packageDocumentation
6
+ */
7
+ export interface atom {
8
+ _id: string;
9
+ }
package/dist/index.js CHANGED
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
+ /**
3
+ *
4
+ * Index module
5
+ *
6
+ * @packageDocumentation
7
+ */
2
8
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const index_1 = require("./cmd/index");
4
- exports.default = {
5
- init: index_1.init,
6
- build: index_1.build,
7
- start: index_1.start,
8
- docker: index_1.docker,
9
- };
10
9
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,uCAKqB;AAErB,kBAAe;IACd,IAAI,EAAJ,YAAI;IACJ,KAAK,EAAL,aAAK;IACL,KAAK,EAAL,aAAK;IACL,MAAM,EAAN,cAAM;CACN,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
package/package.json CHANGED
@@ -1,73 +1,45 @@
1
1
  {
2
- "name": "uranio",
3
- "license": "UNLICENSED",
4
- "version": "0.0.108",
5
- "description": "Uranio command line interface",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "bin": {
9
- "urn": "dist/sh.js",
10
- "uranio": "dist/sh.js"
11
- },
12
- "scripts": {
13
- "build": "yarn tsc -b",
14
- "plain:sh": "node -r source-map-support/register ./dist/sh.js ",
15
- "dev:init": "yarn tsc-watch --onSuccess \"yarn plain:sh init -ftuw -r api -x [CL] --branch master --nospinner\"",
16
- "dev:docker": "yarn tsc-watch --onSuccess \"yarn plain:sh docker build -ftuw -r api -e [D] --branch master --nospin\"",
17
- "dev:docker:build": "yarn tsc-watch --onSuccess \"yarn plain:sh docker build -ftuw -r api -e [D] --branch master\"",
18
- "dev:build": "yarn tsc-watch --onSuccess \"yarn plain:sh build -ut -r api -e [CL] --branch master\"",
19
- "dev:build:w": "yarn tsc-watch --onSuccess \"yarn plain:sh build -uwt -r api --branch master\"",
20
- "dev:build:n": "yarn tsc-watch --onSuccess \"yarn plain:sh build -w -r api --branch master\"",
21
- "dev:dev": "yarn tsc-watch --onSuccess \"yarn plain:sh dev --branch master\"",
22
- "dev:help": "yarn tsc-watch --onSuccess \"yarn plain:sh -h --branch master\"",
23
- "dev:ver": "yarn tsc-watch --onSuccess \"yarn plain:sh -v --branch master\"",
24
- "dev:watch": "yarn tsc-watch --onSuccess \"yarn plain:sh -u --branch master\"",
25
- "dev:output": "yarn tsc-watch --onSuccess \"yarn plain:sh -utw --branch master -e [PREFIX]\"",
26
- "dev:output:prefix": "yarn tsc-watch --onSuccess \"yarn plain:sh -utw --branch master -e [PREFIX] --prefix_loglevel\"",
27
- "dev:transpose": "yarn tsc-watch --onSuccess \"yarn plain:sh transpose -vu \"",
28
- "dev:generate:register": "yarn tsc-watch --onSuccess \"yarn plain:sh generate:register -vu \""
29
- },
30
- "engines": {
31
- "node": ">=14"
32
- },
33
- "engineStrict": true,
34
- "repository": {
35
- "type": "git",
36
- "url": "git+ssh://git@github.com/x71c9/uranio-cli.git"
37
- },
38
- "keywords": [
39
- "uranio",
40
- "urn"
41
- ],
42
- "author": "Andrea Reni <108585118+x71c9@users.noreply.github.com>",
43
- "homepage": "https://github.com/x71c9/uranio-cli#readme",
44
- "devDependencies": {
45
- "@types/chokidar": "^2.1.3",
46
- "@types/forever-monitor": "^1.7.6",
47
- "@types/fs-extra": "^9.0.13",
48
- "@types/inquirer": "^7.3.1",
49
- "@types/is-docker": "^2.0.0",
50
- "@types/minimist": "^1.2.1",
51
- "@types/prettier": "^2.2.2",
52
- "uranio-dev": "^0.0.2"
53
- },
54
- "dependencies": {
55
- "@nbl7/ora": "^1.0.3",
56
- "babylon": "^6.18.0",
57
- "chalk": "^4.1.0",
58
- "chokidar": "^3.5.2",
59
- "dateformat": "^4.5.1",
60
- "esbuild": "^0.14.49",
61
- "forever": "^4.0.3",
62
- "forever-monitor": "^3.0.3",
63
- "inquirer": "^8.0.0",
64
- "is-docker": "^2.0.0",
65
- "minimist": "^1.2.5",
66
- "nodemon": "^2.0.15",
67
- "prettier": "^2.2.1",
68
- "recast": "^0.20.5",
69
- "toml": "^3.0.0",
70
- "ts-morph": "^10.0.1",
71
- "uranio-lib": "^0.0.2"
72
- }
2
+ "name": "uranio",
3
+ "version": "0.1.3",
4
+ "description": "Uranio is a type-safe ODM for MongoDB",
5
+ "main": "dist/index.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+ssh://git@github.com/x71c9/uranio.git",
9
+ "directory": "packages/cli"
10
+ },
11
+ "author": "x71c9 <108585118+x71c9@users.noreply.github.com>",
12
+ "license": "UNLICENSED",
13
+ "bin": {
14
+ "uranio": "dist/bin.js"
15
+ },
16
+ "scripts": {
17
+ "build": "yarn tsc -b",
18
+ "dev": "yarn tsc -w",
19
+ "dev:base": "node ./dist/index.js",
20
+ "dev:bin": "node ./dist/bin.js",
21
+ "dev:run": "yarn tsc-watch --onSuccess \"yarn dev:bin\"",
22
+ "push:patch": "sh ./scripts/version.sh patch",
23
+ "push:minor": "sh ./scripts/version.sh minor",
24
+ "push:major": "sh ./scripts/version.sh major"
25
+ },
26
+ "devDependencies": {
27
+ "@types/node": "^20.9.0",
28
+ "@typescript-eslint/eslint-plugin": "^5.59.1",
29
+ "@typescript-eslint/parser": "^5.59.1",
30
+ "eslint": "^8.39.0",
31
+ "eslint-config-prettier": "^8.8.0",
32
+ "eslint-plugin-import": "^2.27.5",
33
+ "eslint-plugin-jest": "^27.2.1",
34
+ "eslint-plugin-json": "^3.1.0",
35
+ "eslint-plugin-node": "^11.1.0",
36
+ "eslint-plugin-promise": "^6.1.1",
37
+ "tsc-watch": "^6.0.0",
38
+ "typescript": "^5.2.2"
39
+ },
40
+ "dependencies": {
41
+ "husky": "^8.0.3",
42
+ "i0n": "^0.7.3",
43
+ "plutonio": "^0.2.2"
44
+ }
73
45
  }
@@ -0,0 +1,61 @@
1
+ #!/bin/bash
2
+
3
+ if [[ `git status --porcelain` ]]; then
4
+ echo
5
+ echo "Error: Git working directory is not clean. Please commit your changes or stash them."
6
+ echo
7
+ exit 1
8
+ fi;
9
+
10
+ SEMANTIC_NAME=$1
11
+
12
+ if [ "$SEMANTIC_NAME" == "" ]; then
13
+ echo
14
+ echo "Missing semantic name parameter. Valid values are [patch, minor, major]"
15
+ echo
16
+ echo "Example: sh $0 patch"
17
+ exit 1
18
+ fi
19
+
20
+ case "$SEMANTIC_NAME" in
21
+ patch)
22
+ npm version patch --no-git-tag-version
23
+ break;
24
+ ;;
25
+ minor)
26
+ while true; do
27
+ read -p "Are you sure you want to increase the minor version? [y/n] " yn
28
+ case $yn in
29
+ [Yy]* ) break;;
30
+ [Nn]* ) exit;;
31
+ * ) echo "Please answer [y]es or [n]o.";;
32
+ esac
33
+ done
34
+ npm version minor --no-git-tag-version
35
+ break;
36
+ ;;
37
+ major)
38
+ while true; do
39
+ read -p "Are you sure you want to increase the major version? [y/n] " yn
40
+ case $yn in
41
+ [Yy]* ) break;;
42
+ [Nn]* ) exit;;
43
+ * ) echo "Please answer [y]es or [n]o.";;
44
+ esac
45
+ done
46
+ npm version major --no-git-tag-version
47
+ break;
48
+ ;;
49
+ *)
50
+ echo
51
+ echo "Invalid semantic name parameter. Valid values are [patch, minor, major]"
52
+ echo
53
+ echo "Example: sh $0 patch"
54
+ exit 1
55
+ ;;
56
+ esac
57
+
58
+ git push origin
59
+ VERSION=$(node -p "require('./package.json').version")
60
+ # git push origin v$VERSION
61
+ yarn publish --new-version $VERSION --no-git-tag-version
package/src/bin.ts ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+
3
+ import ion from 'i0n';
4
+ const log = ion.create();
5
+ import {generate} from './generate/index';
6
+ const tsconfig_path = `/home/x71c9/repos/uranio/builder/tsconfig.json`;
7
+ const response = generate(tsconfig_path);
8
+ log.debug(response);
@@ -0,0 +1,13 @@
1
+ /**
2
+ *
3
+ * Generate index module
4
+ *
5
+ */
6
+
7
+ import plutonio from 'plutonio';
8
+
9
+ export function generate(tsconfig_path: string){
10
+ const scanned = plutonio.scanner(tsconfig_path);
11
+ return scanned;
12
+ }
13
+
package/src/index.ts CHANGED
@@ -1,14 +1,10 @@
1
- import {
2
- init,
3
- build,
4
- start,
5
- docker
6
- } from './cmd/index';
7
-
8
- export default {
9
- init,
10
- build,
11
- start,
12
- docker,
13
- };
1
+ /**
2
+ *
3
+ * Index module
4
+ *
5
+ * @packageDocumentation
6
+ */
14
7
 
8
+ export interface atom {
9
+ _id: string
10
+ }
package/tsconfig.json CHANGED
@@ -1,44 +1,33 @@
1
1
  {
2
- "compilerOptions": {
3
- "alwaysStrict": true,
4
- "allowJs": true,
5
- "baseUrl": ".",
6
- "declaration": true,
7
- "esModuleInterop": true,
8
- "experimentalDecorators": true,
9
- "incremental": false,
10
- "lib": [
11
- "ESNext",
12
- "ESNext.AsyncIterable",
13
- "DOM"
14
- ],
15
- "module": "commonjs",
16
- "moduleResolution": "node",
17
- "noEmit": false,
18
- "noFallthroughCasesInSwitch": true,
19
- "noImplicitThis": true,
20
- "noImplicitAny": true,
21
- "noUnusedLocals": true,
22
- "noUnusedParameters": true,
23
- "outDir": "./dist",
24
- "rootDir": "./src",
25
- "paths": {
26
- },
27
- "skipLibCheck": true,
28
- "sourceMap": true,
29
- "strict": true,
30
- "strictNullChecks": true,
31
- "strictFunctionTypes": true,
32
- "strictPropertyInitialization": true,
33
- "target": "ES2018",
34
- "typeRoots": [
35
- "node_modules/@types"
36
- ]
37
- },
38
- "include": [
39
- "src/**/*"
40
- ],
41
- "exclude": [
42
- "node_modules"
43
- ]
2
+ "compilerOptions": {
3
+ "alwaysStrict": true,
4
+ "allowJs": true,
5
+ "baseUrl": ".",
6
+ "declaration": true,
7
+ "esModuleInterop": true,
8
+ "experimentalDecorators": true,
9
+ "incremental": false,
10
+ "lib": ["ESNext", "ESNext.AsyncIterable", "DOM", "ES2021"],
11
+ "module": "CommonJS",
12
+ "moduleResolution": "node",
13
+ "noEmit": false,
14
+ "noFallthroughCasesInSwitch": true,
15
+ "noImplicitThis": true,
16
+ "noImplicitAny": true,
17
+ "noUncheckedIndexedAccess": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "outDir": "./dist",
21
+ "rootDir": "./src",
22
+ "skipLibCheck": true,
23
+ "sourceMap": true,
24
+ "strict": true,
25
+ "strictNullChecks": true,
26
+ "strictFunctionTypes": true,
27
+ "strictPropertyInitialization": true,
28
+ "target": "ES2018",
29
+ "typeRoots": ["node_modules/@types"]
30
+ },
31
+ "include": ["src/**/*.ts"],
32
+ "exclude": ["node_modules"]
44
33
  }
@@ -1,67 +0,0 @@
1
- name: npm-publish
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
-
8
- env:
9
- REGISTRY: registry.hub.docker.com
10
- REGISTRY_USERNAME: x71c9
11
- IMAGE_NAME: uranio
12
-
13
- jobs:
14
- publish:
15
- name: NPM Publish
16
- runs-on: ubuntu-latest
17
- steps:
18
- - uses: actions/checkout@v2
19
- - uses: actions/setup-node@v2
20
- with:
21
- node-version: 16
22
- registry-url: https://registry.npmjs.org
23
- - run: npm publish --access public || true
24
- env:
25
- NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
26
-
27
- update_docker_image:
28
- needs: "publish"
29
- name: Update docker image
30
- runs-on: ubuntu-latest
31
- steps:
32
- - name: Check out the repo
33
- uses: actions/checkout@v3
34
-
35
- - name: Configure SSH agent
36
- uses: webfactory/ssh-agent@v0.5.4
37
- with:
38
- ssh-private-key: ${{ secrets.GH_PRIVATE_KEY }}
39
-
40
- - name: Set up QEMU
41
- uses: docker/setup-qemu-action@v2
42
-
43
- - name: Set up Docker Buildx
44
- id: buildx
45
- uses: docker/setup-buildx-action@v2
46
- with:
47
- install: true
48
-
49
- - name: Log in to Docker Registry
50
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
51
- with:
52
- registry: ${{ env.REGISTRY }}
53
- username: ${{ env.REGISTRY_USERNAME }}
54
- password: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
55
-
56
- # - name: Set outputs
57
- # id: vars
58
- # run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
59
-
60
- - name: Build and push Docker image
61
- uses: docker/build-push-action@v3
62
- with:
63
- context: docker/
64
- push: true
65
- platforms: linux/amd64,linux/arm64
66
- tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_USERNAME }}/${{ env.IMAGE_NAME }}:latest
67
-