@designliquido/delegua 0.34.0 → 0.34.1

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.
package/bin/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@designliquido/delegua",
3
- "version": "0.33.16",
3
+ "version": "0.34.0",
4
4
  "description": "Linguagem de programação simples e moderna usando português estruturado.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
8
- "empacotar": "yarn rimraf ./dist && tsc && yarn copyfiles -V ./bin/delegua ./bin/delegua.cmd ./dist && yarn copyfiles -V ./package.json ./dist/bin && yarn copyfiles -V ./README.md ./dist",
8
+ "copiar-arquivos-pacote": "yarn copyfiles -V ./bin/delegua ./bin/delegua.cmd ./dist && yarn copyfiles -V ./package.json ./dist/bin && yarn copyfiles -V ./README.md ./dist",
9
+ "empacotar": "yarn rimraf ./dist && tsc && yarn umd && yarn copiar-arquivos-pacote",
9
10
  "gerar-documentacao-tecnica": "typedoc --out docs fontes/index.ts",
10
11
  "publicar-docs": "yarn gerar-documentacao-tecnica && copyfiles -V ./recursos/**/* ./docs && gh-pages -d docs",
11
12
  "publicar-npm": "npm publish ./dist --access public",
@@ -14,7 +15,9 @@
14
15
  "observar-testes-unitarios": "jest --watchAll",
15
16
  "observar-testes-unitarios-com-coverage": "jest --coverage --watchAll",
16
17
  "lint": "eslint . --ext .ts",
17
- "deixar-codigo-bonito": "prettier --config .prettierrc --write fontes/**/*.ts"
18
+ "deixar-codigo-bonito": "prettier --config .prettierrc --write fontes/**/*.ts",
19
+ "umd": "yarn browserify dist/index.js --s Delegua -o dist/umd/delegua.js",
20
+ "umd:rollup": "yarn rollup fontes/index.ts --config rollup.config.ts --configPlugin @rollup/plugin-typescript"
18
21
  },
19
22
  "repository": {
20
23
  "type": "git",
@@ -54,6 +57,11 @@
54
57
  "homepage": "https://github.com/DesignLiquido/delegua#readme",
55
58
  "devDependencies": {
56
59
  "@babel/preset-env": "^7.20.2",
60
+ "@rollup/plugin-babel": "^6.0.4",
61
+ "@rollup/plugin-commonjs": "^25.0.7",
62
+ "@rollup/plugin-node-resolve": "^15.2.3",
63
+ "@rollup/plugin-terser": "^0.4.4",
64
+ "@rollup/plugin-typescript": "^11.1.6",
57
65
  "@types/esprima": "^4.0.3",
58
66
  "@types/estree": "^1.0.0",
59
67
  "@types/jest": "^29.4.0",
@@ -62,6 +70,7 @@
62
70
  "@typescript-eslint/parser": "^5.46.1",
63
71
  "antlr4": "^4.12.0",
64
72
  "antlr4ts-cli": "^0.5.0-alpha.4",
73
+ "browserify": "^17.0.0",
65
74
  "copyfiles": "^2.4.1",
66
75
  "eslint": "^8.29.0",
67
76
  "eslint-config-prettier": "^8.5.0",
@@ -72,6 +81,8 @@
72
81
  "prettier": "^2.8.1",
73
82
  "release-it": "^15.5.1",
74
83
  "rimraf": "^3.0.2",
84
+ "rollup": "^4.17.2",
85
+ "rollup-plugin-polyfill-node": "^0.13.0",
75
86
  "ts-jest": "^29.0.5",
76
87
  "ts-node": "^10.9.1",
77
88
  "typedoc": "^0.23.22",
@@ -1,3 +1,2 @@
1
1
  export * from './formatador-delegua';
2
- export * from './formatador-potigol';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../fontes/formatadores/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../fontes/formatadores/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./formatador-delegua"), exports);
18
- __exportStar(require("./formatador-potigol"), exports);
19
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../fontes/formatadores/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../fontes/formatadores/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@designliquido/delegua",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "description": "Linguagem de programação simples e moderna usando português estruturado.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
8
- "empacotar": "yarn rimraf ./dist && tsc && yarn copyfiles -V ./bin/delegua ./bin/delegua.cmd ./dist && yarn copyfiles -V ./package.json ./dist/bin && yarn copyfiles -V ./README.md ./dist",
8
+ "copiar-arquivos-pacote": "yarn copyfiles -V ./bin/delegua ./bin/delegua.cmd ./dist && yarn copyfiles -V ./package.json ./dist/bin && yarn copyfiles -V ./README.md ./dist",
9
+ "empacotar": "yarn rimraf ./dist && tsc && yarn umd && yarn copiar-arquivos-pacote",
9
10
  "gerar-documentacao-tecnica": "typedoc --out docs fontes/index.ts",
10
11
  "publicar-docs": "yarn gerar-documentacao-tecnica && copyfiles -V ./recursos/**/* ./docs && gh-pages -d docs",
11
12
  "publicar-npm": "npm publish ./dist --access public",
@@ -14,7 +15,9 @@
14
15
  "observar-testes-unitarios": "jest --watchAll",
15
16
  "observar-testes-unitarios-com-coverage": "jest --coverage --watchAll",
16
17
  "lint": "eslint . --ext .ts",
17
- "deixar-codigo-bonito": "prettier --config .prettierrc --write fontes/**/*.ts"
18
+ "deixar-codigo-bonito": "prettier --config .prettierrc --write fontes/**/*.ts",
19
+ "umd": "yarn browserify dist/index.js --s Delegua -o dist/umd/delegua.js",
20
+ "umd:rollup": "yarn rollup fontes/index.ts --config rollup.config.ts --configPlugin @rollup/plugin-typescript"
18
21
  },
19
22
  "repository": {
20
23
  "type": "git",
@@ -54,6 +57,11 @@
54
57
  "homepage": "https://github.com/DesignLiquido/delegua#readme",
55
58
  "devDependencies": {
56
59
  "@babel/preset-env": "^7.20.2",
60
+ "@rollup/plugin-babel": "^6.0.4",
61
+ "@rollup/plugin-commonjs": "^25.0.7",
62
+ "@rollup/plugin-node-resolve": "^15.2.3",
63
+ "@rollup/plugin-terser": "^0.4.4",
64
+ "@rollup/plugin-typescript": "^11.1.6",
57
65
  "@types/esprima": "^4.0.3",
58
66
  "@types/estree": "^1.0.0",
59
67
  "@types/jest": "^29.4.0",
@@ -62,6 +70,7 @@
62
70
  "@typescript-eslint/parser": "^5.46.1",
63
71
  "antlr4": "^4.12.0",
64
72
  "antlr4ts-cli": "^0.5.0-alpha.4",
73
+ "browserify": "^17.0.0",
65
74
  "copyfiles": "^2.4.1",
66
75
  "eslint": "^8.29.0",
67
76
  "eslint-config-prettier": "^8.5.0",
@@ -72,6 +81,8 @@
72
81
  "prettier": "^2.8.1",
73
82
  "release-it": "^15.5.1",
74
83
  "rimraf": "^3.0.2",
84
+ "rollup": "^4.17.2",
85
+ "rollup-plugin-polyfill-node": "^0.13.0",
75
86
  "ts-jest": "^29.0.5",
76
87
  "ts-node": "^10.9.1",
77
88
  "typedoc": "^0.23.22",