From abcffc8b7a749c8bef91226ab300bf81089ae1f6 Mon Sep 17 00:00:00 2001 From: Laura Liberda Date: Tue, 16 Feb 2021 02:43:27 +0100 Subject: [PATCH] getting ready for release --- .gitignore | 6 ++++++ package.json | 11 ++++++++--- src/index.ts | 2 -- tsconfig.json | 8 ++++---- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index a0ac0a8..b1a1dca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,11 @@ +# typescript builds build +# oclif-dev +dist +tmp +oclif.manifest.json + # fetched automatically with scripts/download-gql-schema.ts schema.graphql schema.json diff --git a/package.json b/package.json index 7738ae5..c357363 100644 --- a/package.json +++ b/package.json @@ -2,20 +2,25 @@ "name": "copykitku", "version": "1.0.0", "main": "index.js", - "author": "selfisekai ", + "author": "Lauren Liberda ", "license": "GPL-3.0", "scripts": { - "build": "yarn build:gql-codegen && yarn build:ts", + "build": "yarn build:gql-codegen && yarn build:ts && yarn build:oclif", "build:ts": "yarn tsc", + "build:ts:watch": "yarn tsc --watch", "build:gql-codegen": "yarn build:gql-codegen:download && yarn build:gql-codegen:generate", "build:gql-codegen:download": "yarn ts-node scripts/download-gql-schema.ts", "build:gql-codegen:generate": "yarn ts-node scripts/generate-gql-types.ts", + "build:oclif": "yarn oclif-dev manifest", + "dev": "yarn build:ts:watch", "lint": "yarn lint:prettier && yarn lint:eslint", "lint:fix": "yarn lint:prettier:fix && yarn lint:eslint:fix", "lint:eslint": "yarn eslint", "lint:eslint:fix": "yarn eslint --fix", "lint:prettier": "yarn prettier --check src", - "lint:prettier:fix": "yarn prettier --check --write src" + "lint:prettier:fix": "yarn prettier --check --write src", + "start": "node build/src/index.js", + "start:dev": "yarn build:ts && yarn start" }, "bin": { "copykitku": "./bin/run" diff --git a/src/index.ts b/src/index.ts index 688b338..f878514 100755 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env ts-node - import { run } from '@oclif/command'; if (process.argv[1] === __filename) { diff --git a/tsconfig.json b/tsconfig.json index e23cfc9..30effc8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,15 +10,15 @@ // "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ - // "declaration": true, /* Generates corresponding '.d.ts' file. */ - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - // "sourceMap": true, /* Generates corresponding '.map' file. */ + "declaration": true /* Generates corresponding '.d.ts' file. */, + "declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */, + "sourceMap": true /* Generates corresponding '.map' file. */, // "outFile": "./", /* Concatenate and emit output to single file. */ "outDir": "./build" /* Redirect output structure to the directory. */, // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ // "composite": true, /* Enable project compilation */ // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ - // "removeComments": true, /* Do not emit comments to output. */ + "removeComments": true /* Do not emit comments to output. */, // "noEmit": true, /* Do not emit outputs. */ // "importHelpers": true, /* Import emit helpers from 'tslib'. */ // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */