forked from Azure/autorest.typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
108 lines (108 loc) · 6.44 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"name": "@azure-tools/typespec-ts",
"version": "0.20.0",
"description": "An experimental TypeSpec emitter for TypeScript RLC",
"main": "dist/src/index.js",
"type": "module",
"scripts": {
"clean": "rimraf ./dist ./typespec-output",
"build": "tsc -p .",
"test": "npm run unit-test && npm run integration-test-ci",
"lint": "eslint src --ext .ts --max-warnings=0",
"lint:fix": "eslint src --fix --ext .ts",
"format": "npm run -s prettier -- --write",
"check-format": "npm run prettier -- --check",
"prettier": "prettier --config ./.prettierrc src/**/*.ts",
"check:tree": "node --loader ts-node/esm ./test/commands/check-clean-tree.ts",
"integration-test-ci": "npm run integration-test-ci:rlc && npm run integration-test-ci:modular && npm run integration-test-ci:non-branded",
"integration-test-ci:rlc": "npm run start-test-server:rlc & npm run copy:typespec && npm run generate-and-run:rlc",
"integration-test-ci:modular": "npm run start-test-server:modular & npm run copy:typespec && npm run generate-and-run:modular",
"integration-test-ci:non-branded": "npm run start-test-server & npm run copy:typespec && npm run generate-tsp-only:non-branded && npm run integration-test:alone:non-branded-rlc && npm run integration-test:alone:non-branded-modular && npm run stop-test-server",
"start-test-server": "mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http --coverageFile ./coverage/cadl-ranch-coverage-typescript.json",
"start-test-server:rlc": "mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http --coverageFile ./coverage/cadl-ranch-coverage-typescript-rlc.json",
"start-test-server:modular": "mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http --coverageFile ./coverage/cadl-ranch-coverage-typescript-modular.json",
"copy:typespec": "rm -rf temp && mkdirp -p temp && cp -r ./node_modules/@azure-tools/cadl-ranch-specs/* ./temp && cp -r ./test/integration/typespec/* ./temp/http",
"generate-and-run:rlc": "npm run generate-tsp-only:rlc && npm run integration-test:alone:rlc && npm run stop-test-server",
"generate-and-run:modular": "npm run generate-tsp-only:modular && npm run integration-test:alone:modular && npm run stop-test-server",
"generate-tsp-only": "npm run generate-tsp-only:rlc && npm run generate-tsp-only:modular",
"generate-tsp-only:rlc": "node --loader ts-node/esm ./test/commands/gen-cadl-ranch.ts --tag=rlc",
"generate-tsp-only:modular": "node --loader ts-node/esm ./test/commands/gen-cadl-ranch.ts --tag=modular",
"generate-tsp-only:non-branded": "npm run generate-tsp-only:non-branded-rlc && npm run generate-tsp-only:non-branded-modular",
"generate-tsp-only:non-branded-rlc": "node --loader ts-node/esm ./test/commands/gen-cadl-ranch.ts --tag=non-branded-rlc",
"generate-tsp-only:non-branded-modular": "node --loader ts-node/esm ./test/commands/gen-cadl-ranch.ts --tag=non-branded-modular",
"regen-test-baselines": "npm run generate-tsp-only && npm run generate-tsp-only:non-branded",
"integration-test:alone": "npm run integration-test:alone:rlc && npm run integration-test:alone:modular",
"integration-test:alone:rlc": "cross-env TS_NODE_PROJECT=tsconfig.integration.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 4000 ./test/integration/*.spec.ts",
"integration-test:alone:modular": "cross-env TS_NODE_PROJECT=tsconfig.integration.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 4000 ./test/modularIntegration/*.spec.ts",
"integration-test:alone:non-branded-rlc": "cross-env TS_NODE_PROJECT=tsconfig.integration.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 4000 ./test/nonBrandedIntegration/rlc/*.spec.ts",
"integration-test:alone:non-branded-modular": "cross-env TS_NODE_PROJECT=tsconfig.integration.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 4000 ./test/nonBrandedIntegration/modular/*.spec.ts",
"stop-test-server": "npx cadl-ranch server stop",
"unit-test": "npm run unit-test:rlc && npm run unit-test:modular",
"unit-test:rlc": "cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true --timeout 4000 './test/unit/**/*.spec.ts'",
"unit-test:modular": "cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true --no-timeout './test/modularUnit/**/*.spec.ts'"
},
"author": "Jose Heredia <[email protected]>",
"license": "MIT",
"devDependencies": {
"@types/chai": "^4.3.1",
"@types/mocha": "^9.1.1",
"@types/node": "^18.0.0",
"@types/fs-extra": "^9.0.13",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"chai": "^4.3.6",
"mkdirp": "^2.1.2",
"eslint": "^8.9.0",
"mocha": "^9.2.2",
"rimraf": "^5.0.0",
"ts-node": "~10.9.1",
"typescript": "~5.2.0",
"prettier": "^3.1.0",
"@azure-tools/cadl-ranch-specs": "^0.26.2",
"@azure-tools/cadl-ranch-expect": "^0.9.0",
"@azure-tools/cadl-ranch": "^0.10.0",
"chalk": "^4.0.0",
"@azure-rest/core-client": "^1.1.6",
"@azure/core-auth": "^1.3.2",
"cross-env": "^7.0.3",
"@azure/core-paging": "^1.5.0",
"@azure/core-lro": "^2.5.4",
"@azure/core-rest-pipeline": "^1.12.0",
"@azure/logger": "^1.0.4",
"@azure/core-util": "^1.4.0",
"eslint-plugin-require-extensions": "0.1.3",
"@typespec/ts-http-runtime": "1.0.0-alpha.20231129.4"
},
"peerDependencies": {
"@azure-tools/typespec-azure-core": ">=0.37.2 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.37.0 <1.0.0",
"@typespec/compiler": ">=0.51.0 <1.0.0",
"@typespec/http": ">=0.51.0 <1.0.0",
"@typespec/rest": ">=0.51.0 <1.0.0",
"@typespec/versioning": ">=0.51.0 <1.0.0"
},
"dependencies": {
"prettier": "^3.1.0",
"tslib": "^2.3.1",
"@azure-tools/rlc-common": "workspace:^0.20.0",
"ts-morph": "^15.1.0",
"fs-extra": "^11.1.0"
},
"files": [
"src",
"dist/**",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"mocha": {
"extension": [
"ts"
],
"loader": "ts-node/esm"
},
"bugs": {
"url": "https://github.com/Azure/autorest.typescript/issues"
},
"homepage": "https://github.com/Azure/autorest.typescript/tree/main/packages/typespec-ts/"
}