|
1 | 1 | { |
2 | 2 | "name": "@builder.io/qwik", |
3 | | - "version": "0.0.1", |
| 3 | + "version": "0.0.11", |
4 | 4 | "description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.", |
5 | 5 | "main": "index.js", |
6 | | - "lint-staged": { |
7 | | - "*.*": [ |
8 | | - "prettier --write --ignore-unknown" |
9 | | - ], |
10 | | - "*.ts": [ |
11 | | - "npx eslint" |
12 | | - ], |
13 | | - "(WORKSPACE|*.bazel|*.bzl)": [ |
14 | | - "npm run bazel:lint-fix" |
15 | | - ] |
16 | | - }, |
17 | 6 | "@comment type": "Setting type to 'commonjs' is important as many of the bazel tooling assumes 'commonjs'. For code which wants ESM a second 'package.json' file needs to be created for just those files.", |
18 | 7 | "type": "commonjs", |
19 | | - "dependencies": { |
20 | | - "source-map-support": "^0.5.19", |
21 | | - "@bazel/bazelisk": "^1.7.5", |
22 | | - "@bazel/buildifier": "^4.0.1", |
23 | | - "@bazel/cypress": "^3.2.0", |
24 | | - "cypress": "^6.4.0", |
25 | | - "@bazel/esbuild": "^3.6.0", |
26 | | - "@bazel/ibazel": "^0.15.10", |
27 | | - "@bazel/terser": "^3.2.2", |
28 | | - "@bazel/typescript": "3.2.0", |
29 | | - "@microsoft/api-extractor": "^7.13.2", |
30 | | - "@types/chai": "^4.2.15", |
31 | | - "@types/express": "^4.17.9", |
32 | | - "@types/mocha": "^8.2.1", |
| 8 | + "devDependencies": { |
| 9 | + "@microsoft/api-extractor": "^7.16.1", |
| 10 | + "@types/express": "^4.17.13", |
| 11 | + "@types/jest": "^26.0.23", |
| 12 | + "@types/mri": "^1.1.1", |
33 | 13 | "@types/node": "^14.14.10", |
34 | 14 | "@types/source-map-support": "^0.5.3", |
35 | 15 | "@typescript-eslint/eslint-plugin": "^4.19.0", |
36 | 16 | "@typescript-eslint/parser": "^4.19.0", |
37 | | - "chai": "^4.3.0", |
38 | | - "commander": "^6.2.0", |
| 17 | + "concurrently": "^6.2.0", |
| 18 | + "cypress": "^7.7.0", |
39 | 19 | "domino": "^2.1.6", |
| 20 | + "esbuild": "^0.12.13", |
| 21 | + "esbuild-register": "^2.6.0", |
40 | 22 | "eslint": "^7.23.0", |
41 | 23 | "eslint-plugin-no-only-tests": "^2.4.0", |
42 | 24 | "express": "^4.17.1", |
43 | | - "http-server": "^0.12.3", |
44 | 25 | "husky": "^5.2.0", |
| 26 | + "jest": "^27.0.5", |
45 | 27 | "lint-staged": "^10.5.4", |
46 | | - "mocha": "^8.3.0", |
| 28 | + "mri": "^1.1.6", |
| 29 | + "np": "^7.5.0", |
47 | 30 | "prettier": "2.3.0", |
48 | | - "serve-static": "^1.14.1", |
49 | | - "terser": "^5.6.0", |
| 31 | + "rollup": "^2.52.2", |
| 32 | + "source-map-support": "^0.5.19", |
| 33 | + "start-server-and-test": "^1.12.6", |
| 34 | + "terser": "^5.7.1", |
50 | 35 | "todomvc-app-css": "^2.3.0", |
51 | 36 | "todomvc-common": "^1.0.5", |
52 | 37 | "typescript": "^4.2.0" |
53 | 38 | }, |
54 | 39 | "scripts": { |
| 40 | + "build": "tsc && node scripts && npm run api.ci", |
| 41 | + "build.watch": "node scripts --dev --watch", |
| 42 | + "tsc.check": "tsc --noEmit", |
| 43 | + "tsc.watch": "tsc --noEmit --watch --preserveWatchOutput", |
| 44 | + "start": "concurrently \"npm:build.watch\" \"npm:test.watch\" \"npm:tsc.watch\" -n build,test,tsc -c green,magenta,cyan", |
| 45 | + "api": "tsc && node -r esbuild-register scripts/api.ts", |
| 46 | + "api.ci": "node -r esbuild-register scripts/api.ts", |
| 47 | + "api.update": "tsc && node -r esbuild-register scripts/api.ts --dev", |
| 48 | + "release": "npm run build && npm run validate && np --contents dist-dev/@builder.io-qwik --no-2fa", |
| 49 | + "test": "npm run build && jest && npm run test.e2e", |
| 50 | + "test.unit": "jest", |
| 51 | + "test.watch": "jest --watch", |
| 52 | + "test.e2e": "start-server-and-test integration.server.prod http://localhost:8081 \"cypress run\"", |
| 53 | + "test.e2e.open": "start-server-and-test integration.server.prod http://localhost:8081 \"cypress open\"", |
| 54 | + "integration.server": "node scripts --dev && node integration/devserver.js --port 8080 --mode development", |
| 55 | + "integration.server.prod": "tsc && node scripts && node integration/devserver.js --port 8081 --mode production", |
| 56 | + "validate": "node -r esbuild-register scripts/validate.ts", |
| 57 | + "prepare": "husky install", |
| 58 | + "lint": "eslint \"**/*.ts*\" && npm run prettier-check", |
| 59 | + "prettier-check": "prettier --check .", |
| 60 | + "prettier-fix": "prettier --write .", |
55 | 61 | "patch-m1": "npm run patch-m1-bazel && npm run patch-m1-ibazel && npm run patch-m1-buildifier", |
56 | 62 | "patch-m1-bazel": "echo Patching Bazel for Apple M1 architecture compatibility && ln -fs ./bazelisk-darwin_amd64 node_modules/@bazel/bazelisk/bazelisk-darwin_arm64", |
57 | 63 | "patch-m1-ibazel": "echo Patching iBazel for Apple M1 architecture compatibility && sed -i .bak \"s/'x64' : 'amd64',\\$/'x64' : 'amd64', 'arm64' : 'amd64',/\" ./node_modules/@bazel/ibazel/index.js", |
58 | 64 | "patch-m1-buildifier": "echo Patching Buildifier for Apple M1 architecture compatibility && sed -i .bak \"s/'x64' : 'amd64',\\$/'x64' : 'amd64', 'arm64' : 'amd64',/\" ./node_modules/@bazel/buildifier/buildifier.js", |
59 | | - "integration:server": "bazel run //integration:devserver", |
60 | | - "test:unit": "bazel test --test_tag_filters=unit //...", |
61 | | - "test:e2e": "bazel test --test_tag_filters=e2e //...", |
62 | | - "test": "bazel test //...", |
63 | | - "lint": "eslint \"**/*.ts*\"", |
64 | | - "prettier-check": "prettier --check .", |
65 | | - "prettier-fix": "prettier --write .", |
66 | 65 | "bazel:format": "find . -type f \\( -name \"*.bzl\" -or -name WORKSPACE -or -name BUILD -or -name BUILD.bazel \\) ! -path \"*/node_modules/*\" | xargs buildifier --warnings=attr-cfg,attr-license,attr-non-empty,attr-output-default,attr-single-file,constant-glob,ctx-actions,ctx-args,depset-iteration,depset-union,dict-concatenation,duplicated-name,filetype,git-repository,http-archive,integer-division,load,load-on-top,native-build,native-package,out-of-order-load,output-group,package-name,package-on-top,positional-args,redefined-variable,repository-name,same-origin-load,string-iteration,unsorted-dict-items,unused-variable", |
67 | 66 | "bazel:lint": "npm run bazel:format -- --mode=check --lint=warn", |
68 | | - "bazel:lint-fix": "npm run bazel:format -- --mode=fix --lint=fix", |
69 | | - "cypress": "cypress open", |
70 | | - "prepare": "husky install" |
| 67 | + "bazel:lint-fix": "npm run bazel:format -- --mode=fix --lint=fix" |
| 68 | + }, |
| 69 | + "contributors": [ |
| 70 | + { |
| 71 | + "name": "Miško Hevery", |
| 72 | + "email": "misko@hevery.com", |
| 73 | + "url": "https://github.com/BuilderIO/qwik" |
| 74 | + }, |
| 75 | + { |
| 76 | + "name": "Adam Bradley", |
| 77 | + "email": "adam@builder.io", |
| 78 | + "url": "https://twitter.com/adamdbradley" |
| 79 | + } |
| 80 | + ], |
| 81 | + "license": "MIT", |
| 82 | + "homepage": "https://github.com/BuilderIO/qwik#readme", |
| 83 | + "repository": { |
| 84 | + "type": "git", |
| 85 | + "url": "https://github.com/BuilderIO/qwik" |
71 | 86 | }, |
72 | | - "author": "Miško Hevery <misko@hevery.com>", |
73 | | - "license": "MIT" |
| 87 | + "bugs": { |
| 88 | + "url": "https://github.com/BuilderIO/qwik/issues" |
| 89 | + }, |
| 90 | + "keywords": [ |
| 91 | + "ssr", |
| 92 | + "server-side-render", |
| 93 | + "prerender", |
| 94 | + "ssg", |
| 95 | + "static-site-generator", |
| 96 | + "static-site", |
| 97 | + "generator", |
| 98 | + "website", |
| 99 | + "webapp", |
| 100 | + "framework", |
| 101 | + "Builder.io" |
| 102 | + ], |
| 103 | + "engines": { |
| 104 | + "node": ">= 14.14" |
| 105 | + }, |
| 106 | + "lint-staged": { |
| 107 | + "*.*": [ |
| 108 | + "prettier --write --ignore-unknown" |
| 109 | + ], |
| 110 | + "*.ts": [ |
| 111 | + "npx eslint" |
| 112 | + ] |
| 113 | + } |
74 | 114 | } |
0 commit comments