View Issue Details

IDProjectCategoryView StatusLast Update
0004133Talerotherpublic2016-05-31 16:05
ReporterFlorian Dold Assigned ToChristian Grothoff Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritytweakReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.0 
Target Version0.0Fixed in Version0.0 
Summary0004133: TypeScript not compiled by the merchant make script
DescriptionWe somehow need to integrate compilation of the merchant front-end TypeScript code to JavaScript into the build system.

This way we can finally remove all auto-generated JavaScript from the git repo.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2016-05-31 08:25

manager   ~0010806

Eh, I cannot find said type script code. Where is it?

Florian Dold

2016-05-31 12:19

manager   ~0010811

Last edited: 2016-05-31 12:20

The web-common.git now has taler-wallet-lib.ts as of 48d81d. Many other repositories use this via submodules.

While that module works with older TypeScript versions, we're using 1.9.0-dev.20160311 for the wallet.

It's compiled with
$ tsc taler-wallet-lib.ts

Note that there will be errors/warnings during compilation, since I've basically just renamed .js->.ts, but the JavaScript output will still be useable despite that. We should of course fix these / use proper typescript eventually.

Christian Grothoff

2016-05-31 15:24

manager   ~0010817

Compilation fails for me:

$ tsc taler-wallet-lib.ts
taler-wallet-lib.ts(27,20): error TS2339: Property 'taler' does not exist on type 'Window'.
taler-wallet-lib.ts(161,13): error TS2339: Property 'style' does not exist on type 'Element'.
taler-wallet-lib.ts(164,13): error TS2339: Property 'style' does not exist on type 'Element'.
taler-wallet-lib.ts(167,17): error TS2339: Property 'disabled' does not exist on type 'Element'.
taler-wallet-lib.ts(176,13): error TS2339: Property 'style' does not exist on type 'Element'.
taler-wallet-lib.ts(179,13): error TS2339: Property 'style' does not exist on type 'Element'.
taler-wallet-lib.ts(182,17): error TS2339: Property 'disabled' does not exist on type 'Element'.
taler-wallet-lib.ts(219,7): error TS2304: Cannot find name 'uninstall_called'.
Makefile:468: recipe for target 'taler-wallet-lib.js' failed

Florian Dold

2016-05-31 15:30

manager   ~0010818

It was supposed to fail, the generated JavaScript is still usable.

Still, it makes sense for make to fail when the TypeScript code doesn't typecheck, I've "fixed" those errors in c16fe1b.

Christian Grothoff

2016-05-31 16:04

manager   ~0010819

Ok, I've modified the build systems in the various directories that use web-common now. It's still overall rather ugly, but should at least work for now.

Issue History

Date ModifiedUsernameFieldChange
2016-01-12 17:10Florian DoldNew Issue
2016-01-21 08:03Christian GrothoffSeverityminor => tweak
2016-01-21 08:03Christian GrothoffStatusnew => implementing
2016-01-21 08:03Christian GrothoffProduct Version => 0.0
2016-01-21 08:03Christian GrothoffTarget Version => 0.0
2016-01-21 14:46Christian GrothoffTarget Version0.0 => 0.1
2016-01-22 22:43Christian GrothoffAssigned To => Florian Dold
2016-01-22 22:43Christian GrothoffStatusimplementing => assigned
2016-03-20 20:53Torsten GrothoffIssue cloned: 0004306
2016-05-31 07:57Christian GrothoffAssigned ToFlorian Dold => Christian Grothoff
2016-05-31 08:25Christian GrothoffNote Added: 0010806
2016-05-31 08:26Christian GrothoffStatusassigned => feedback
2016-05-31 12:19Florian DoldNote Added: 0010811
2016-05-31 12:19Florian DoldStatusfeedback => assigned
2016-05-31 12:20Florian DoldNote Edited: 0010811
2016-05-31 15:24Christian GrothoffNote Added: 0010817
2016-05-31 15:30Florian DoldNote Added: 0010818
2016-05-31 16:04Christian GrothoffNote Added: 0010819
2016-05-31 16:04Christian GrothoffStatusassigned => informing
2016-05-31 16:04Christian GrothoffFixed in Version => 0.0
2016-05-31 16:04Christian GrothoffResolutionopen => fixed
2016-05-31 16:05Christian GrothoffStatusinforming => closed
2016-05-31 16:05Christian GrothoffTarget Version0.1 => 0.0