@nzz/q-cli 1.7.0 → 1.8.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.
- package/README.md +18 -0
- package/bin/commands/bootstrap.js +34 -14
- package/bin/q.js +46 -3
- package/package.json +1 -1
- package/skeletons/custom-code-skeleton/tsconfig.json +12 -12
- package/skeletons/et-utils-package-skeleton/.nvmrc +1 -0
- package/skeletons/et-utils-package-skeleton/README.md +7 -0
- package/skeletons/et-utils-package-skeleton/jest.config.ts +17 -0
- package/skeletons/et-utils-package-skeleton/package-lock.json +3969 -0
- package/skeletons/et-utils-package-skeleton/package.json +37 -0
- package/skeletons/et-utils-package-skeleton/rollup.config.js +17 -0
- package/skeletons/et-utils-package-skeleton/src/Service.ts +8 -0
- package/skeletons/et-utils-package-skeleton/src/index.ts +4 -0
- package/skeletons/et-utils-package-skeleton/test/Service.spec.ts +10 -0
- package/skeletons/et-utils-package-skeleton/test/tsconfig.json +5 -0
- package/skeletons/et-utils-package-skeleton/tsconfig.json +9 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nzz/et-utils-<package-name>",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "<package-description>",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/nzzdev/ed-tech-utilities.git",
|
|
8
|
+
"directory": "<package-name>"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"prepublishOnly": "npm run test && npm run clean && npm run build && rollup -c",
|
|
12
|
+
"clean": "rimraf dist && rimraf index.js && rimraf index.d.ts",
|
|
13
|
+
"build": "tsc -p .",
|
|
14
|
+
"start": "npm run build -- -w",
|
|
15
|
+
"test": "jest --config jest.config.ts"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"index.js",
|
|
19
|
+
"index.d.ts"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/jest": "^27.5.1",
|
|
26
|
+
"@types/node": "^16.11.36",
|
|
27
|
+
"jest": "^28.1.0",
|
|
28
|
+
"rimraf": "^3.0.2",
|
|
29
|
+
"rollup": "^2.75.0",
|
|
30
|
+
"rollup-plugin-dts": "^4.2.2",
|
|
31
|
+
"ts-jest": "^28.0.3",
|
|
32
|
+
"ts-node": "^10.8.0",
|
|
33
|
+
"typescript": "^4.6.4"
|
|
34
|
+
},
|
|
35
|
+
"author": "<author-name>",
|
|
36
|
+
"license": "MIT"
|
|
37
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { someFunction } from "../src";
|
|
2
|
+
|
|
3
|
+
describe("Service", () => {
|
|
4
|
+
it("should return the konami cheatcode", () => {
|
|
5
|
+
const result = someFunction();
|
|
6
|
+
const expectedResult = "Up, Up, Down, Down, Left, Right, Left, Right, B, A";
|
|
7
|
+
|
|
8
|
+
expect(result).toEqual(expectedResult);
|
|
9
|
+
});
|
|
10
|
+
});
|