@nzz/q-cli 1.7.0 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,17 @@
1
+ import dts from "rollup-plugin-dts";
2
+
3
+ export default [
4
+ {
5
+ input: "dist/index.js",
6
+ output: {
7
+ file: "index.js",
8
+ },
9
+ },
10
+ {
11
+ input: "dist/index.d.ts",
12
+ output: {
13
+ file: "index.d.ts",
14
+ },
15
+ plugins: [dts()],
16
+ },
17
+ ];
@@ -0,0 +1,8 @@
1
+ // Note: This is an example file
2
+ function someFunction() {
3
+ const value = "Up, Up, Down, Down, Left, Right, Left, Right, B, A";
4
+
5
+ return value;
6
+ }
7
+
8
+ export { someFunction };
@@ -0,0 +1,4 @@
1
+ // Note: Export all your code in here, that should be exposed to the consumer
2
+
3
+ // e.g. Exports all exports of the Service.ts file
4
+ export * from "./Service";
@@ -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
+ });
@@ -0,0 +1,5 @@
1
+ {
2
+ "compilerOptions": {
3
+ "types": ["jest", "node"]
4
+ }
5
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "include": ["src/**/*"],
3
+ "exclude": ["test/**/*"],
4
+ "compilerOptions": {
5
+ "target": "es6",
6
+ "outDir": "dist",
7
+ "declaration": true
8
+ }
9
+ }