1.0.5 • Published 6 days ago

@teamteanpm2024/iure-ipsam-vitae v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

TSCX

npm.io npm.io npm.io npm.io npm.io

A tsc wrapper with many convenient features. Bring the nodemon + JavaScript development experience to TypeScript.

Background

When we are using JavaScript, we usually run nodemon main.js. Then, application will automatically restart when js file changes. It's a great development experience. Why can't TypeScript? The reason is the compilation (tsc). Because of this, some edge cases are inconvenient just using tsc. For example:

  • Remove the output folder before compilation started
  • Copy non-ts files to output folder after compilation finished
  • Execute app entrance file immediately once compilation finished
  • Watch source files, repeat steps above and restart the app

Now you can run one line of command to solve the problems. Better development experience!

npx tscx --project tsconfig.build.json --remove --copyfiles --watch --exec bootstrap.js

Happy hacking!

Highlight

  • Same usages as tsc with few additional options.
  • Remove output folder before every compilation.
  • Copy non-ts files to output folder after every compilation.
  • Execute js file after compilation success.
  • Respect tsconfig.json.
  • ESM.

Install

npm install typescript @nrm/tscx -D

Usage

# Equivalent to `npx tsc`
$ npx tscx

# Equivalent to `npx tsc --project tsconfig.build.json --watch`
$ npx tscx --project tsconfig.build.json --watch

# Remove output folder before compilation and then compile ts code.
$ npx tscx --remove

# Compile ts code and then copy non-ts files to output folder after compilation.
$ npx tscx --copyfiles

# Compile ts code and execute bootstrap.js after successful compilation.
$ npx tscx --exec bootstrap.js

# Compile ts code in watch mode and execute bootstrap.js after every successful compilation.
$ npx tscx --project tsconfig.build.json --watch --exec bootstrap.js

# Remove => Compile => Copy => Execute => Edit any file to repeat it
$ npx tscx --project tsconfig.build.json --remove --copyfiles --watch --exec bootstrap.js

License

MIT

dynamodbspecwindowsgroupByloadingflatansilogAsyncIteratortelephoneoptionflagduplextoSortedvalidcallchromiumes5deepcloneseselectrondeepArray.prototype.containsratelimitArray.prototype.flattenjson-schemaauthenticationextratypesafeiterationcontainseveryonceserializationsyntaxsymlinksprotosuperagentschemegdpreslintpluginobjcensordirmergeworkspace:*nodeec2asciimulti-packagetrimjsdomdeep-copyelbes7negative zeroreactrmdirfindclassnamesinternalxhrregexes-abstractmodulebootstrap cssfilterguidtypeofquerystringObject.assigncollectiondescriptors256cloudsearchcssUnderscorelooksomeexpressYAMLutilsasyncbatchescapeconsumeforEachpolyfillwhatwgObjectmochanegativeES6simpledbes-shim APIhookspatchreadableserializedataviewrequestECMAScript 2022warningutil.inspectlinewrapauthmovestreams2awaitpersistentfseventsObject.valuesharmonypasswordfpsArrayBuffer#slicejestpyyamldropswfpuremakefoldershimsymlinktslibimmutablefast-deep-copytrimRightsharedarraybufferwaitsortedcloudfrontnameshttpstraversees2016package.jsonsameValueZeroArrayBuffer.prototype.slicezodshebangregular expressionreact-testing-libraryeventDispatchervalidatetrimLeftenderES2023scheme-validationfull-widthmatchesvaluereduxeslintconfiganimationproxysearchruntimekoreancircularvalidatorregexppropertieshttpArray.prototype.flatMap3dzeroObject.fromEntriessafebeanstalkprogressreadlibphonenumberimportl10nassertsstatelessWeakSetfixed-widthmkdirwhichSetmkdirsreact-hook-formreducer-0stringifierwalkingclibytebddhardlinksconcatexecwordbreakObject.keysESarttoobjectinterruptscolumnStreamsBigInt64ArrayelasticachewatchFiletoolsiteratepackagepreserve-symlinksimmersetterCSSwordwrapArray.prototype.includesmiddlewarePushstylesbrowserlistinspectFunction.prototype.namevariables in cssES5chineseoutputes6ramdaecmascriptschemaajaxcode pointsform-validationUint8ClampedArrayECMAScript 2023ES2022errorES2019configwaapies-shimshelpersobjectmatchAlla11yebsWeakMapletInt16Arraybannerdataregular expressionsarguments3deletethroatfigletcreatestarterless csspackagesmime-dbWebSocketRFC-6455yuptypanionmapreduceglobvaluesglacierObservablewalkconsolecharacterserror-handling__proto__mimeunicodefunctionprettyttyes2018Symbol.toStringTagpreprocessortextxtermlazysettingsthreekinesiseventEmitterrobustnativetypeES3tacitcolorsfast-copyiteratorrfc4122deep-clonedependency managerdayjsextensionnumberdiffrgbformstranspilemrutypeerrorjslastponyfillmatchfromloadbalancingextendcollection.es6callbindcall-bindwgetimportexportsortinferencewatchertimecolorRxInt32ArrayqueueMicrotaskvisualWebSocketsweakmapwidthinternal slotfindLastxssObject.getPrototypeOfio-tsdataViewhas-ownstreamsbrowserslistdraghasOwnaccessorkeypropertyminimalframerclass-validatortoolkitprefixutilitiesUint32ArraysidedebuggergetterloggerdebugirqstoragegatewaytypedarraysinstallObject.entriesratevariablessignalesoffsetRegExp#flagsbound.envcoreprocessformatstableReactiveExtensionsbcryptclasseswatchingbyteLengthbluebirdcoercibleutilitytranspileremit_.extendnamehashmobileArray.prototype.filteres2017defineStyleSheetsetcompile lessjsxframeworkECMAScript 6isConcatSpreadableReflect.getPrototypeOfcloudformationdirectorysqsmodulesdateincludes0chaipackage manageruninstallconfigurablephoneTypedArrayrdsiamreal-timeautoprefixerdefinePropertyfunctionscopytypescripttddES7CSSStyleDeclarationbabel-corecomputed-typesparsingredactmetadatastructuredCloneairbnbtyped arrayvpcmonorepobindlimitUint16Arraytsenumerableidlelanguagestringifyslicees2015getOwnPropertyDescriptorshellfast-cloneJSONcolumnsenvinvariantutilformmixinsprototypeformattingautoscalingsanitizationstyleguideObject.definePropertystyleInt8Arrayprotocol-bufferschanneltypedreducestringrecursiveencryptiontouchsetImmediateviewECMAScript 2015sharedcompilercommand-linewritelinuxassertionHyBiES2021spinnermkdirpcloudwatchtapfastcopyintrinsicamazontypesquotegetintrinsicArrayBufferpromisesArray.prototype.findLastresolvegetfastifyfullwidthtestbufferbrowsertostringtagemrindicatorlengthpathSymbolgetoptESnextcryptoptimisttaskendpointstylesheetconstqsmomentlistenersiesigintcolourlockfileString.prototype.trimdatastructurewebrequirefasthigher-ordergradients cssjsdiffArrayajvpostcss-plugincommandparserparentargvgroupfpprivate dataremovePromise[[Prototype]]shrinkwraprandomdescriptorJSON-Schemaprunehasredux-toolkitcodesconcatMapbootstrap lessflagsarktypehandlersECMAScript 7react animationfsURLSearchParamsexituser-streamsECMAScript 2017ObservablesUint8Arrayslotcallbackjwtes8babelRegExp.prototype.flagsconcurrencytakereact-hookscloudtrailtoStringTagperformanceTypeBoxargparsefilepoint-freetrimEndconnectvaryamlsequencesetPrototypeOfcss lesspicomatchIteratorcacheprotobufflattenfind-upeslint-pluginrm -frjsonschematoArrayworkerpostcssfulljasminegradients css3findup6to5installerpositivedependenciesequalbreakenvironmentfast-deep-cloneeslintnopeapiES2015react posecss nestingaccessibilityMicrosoftsymboltc39keysRxJSfunctionaleventsassignspeedpipeawsArray.prototype.flatsuperstructhookformbyteOffsetjQueryterminalchecknodejsprivateTypeScriptcharacterstatuspnpm9ECMAScript 2019css-in-jsqueuefetchES2017sigtermweaksetparsedomstreamFloat64Arrayjson-schema-validationarraysReactiveXislook-upposeproptapelesslimitedstylingcall-boundquerynested cssECMAScript 2020japaneserm -rfcore-jsES8spinnersgesturesbundlercorsloggingdeterministicspringthrottleuuidownjsonpathwatchentries$.extendmacosopendeepcopyless.jstypedarraycryptoomitperformantArray.prototype.findLastIndexlintsnswrapreadablestreamsanitizeECMAScript 2018termgenericstesterlinkMaphasOwnPropertyworkflowcallboundwritableFloat32ArrayvalidationBigUint64ArrayES2016pluginoptimizerStreamwafmimetypesdom-testing-libraryurlflatMapclonecjkmapless mixinspopmotionarrayfantasy-landcompareinputavaECMAScript 5reusei18nES2018lesscssbusyoperating-systemdotenvtrimStartsignalssyntaxerrorcurlparentsjoiECMAScript 2021rangeerrorupmake dirfile systembuffersString.prototype.matchAllregularexpressionassertemojistyled-componentsfastcloneECMAScript 3descriptionES2020npmgetPrototypeOfjavascriptpushcss variablearraybuffershamastawesomesaucevestchromebundlingrmfindLastIndexserializereast-asian-widthagentkarmasymbolsObject.isless compilerin@@toStringTagequalityjson-schema-validator
1.0.5

6 days ago

1.0.4

7 days ago

1.0.3

8 days ago

1.0.2

9 days ago

1.0.1

10 days ago

1.0.0

10 days ago