1.0.167 • Published 4 years ago

@tessin/tcm v1.0.167

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
4 years ago

TCM frontend

🚨🚨🚨 this is an internal tool that we publish here out of convenience. Each point release may ship with substantial breakage. You have been warned.

Getting started

To use TCM in an existing project, install TCM as you would install any other development dependency. TCM is (amongst other things) a bundler and as such should be installed primarily as a development dependency but you can also use it to simply run tests (i.e. as a test runner). The choice is yours.

TCM adds a command line interface tcm which supports a few commands, like tcm dev (start development) and tcm test (test runner). You can get some help by adding a -h flag to those commands.

Initialize

To initialize a new application, use yarn create @tessin/tcm-app <dirname>.

This will create a couple of files that are needed for a TCM app to work.

FileDescription
./src/server.tsNode.js entry point
./src/client.tsBrowser entry point
.gitignoreIgnore files generated by TCM
.prettierrc.jsonNo semi colons
.tsconfig.jsonStrict

Start development

By default, it will look for the files created by yarn create @tessin/tcm-app <dirname> command. If you changed these, you need to override the defaults with additional command line options, see tcm dev -h for more information.

tcm dev

This will start a local development server on the port specified by the environment variable PORT (default 3000). It will then compile some TypeScript and open http://localhost:3000 (this can be changed by the --open <url> flag).

Happy development!

Build

Again, by default, it will look for the files created by the create script. It will write the build output to dist/<package-name>.index. Assuming <package-name> and basename(process.cwd()) are the same thing.

tcm build

Build options

  • --check building with this option will check the build for type script errors. This is optional but recommended.
  • --minify building with this option will minify the build using the Google Closure Compiler. A version of the Google Closure Compiler is redistributed with NPM package but you need to have Java 8 installed for this to work.
  • --es5 building with this option will create a secondary ECMAScript 5 output for each JavaScript module. This option implies --minify. ECMAScript 5 output is not used by default and you have to opt-in to use it. This option only exists to support legacy browsers, like Internet Explorer 11. By default, we target ECMAScript 2017.

Serve (run build)

Will look for output created by tcm build and run that. You can run anything you want using different options. Serve can also be configured to pull bunldes from an Azure Storage Account (or other REST like storage service). This way (depending on what type of request the server gets), it will serve various applications (or versions of the same application) backed by the same storage. This is mostly a deployment feature but it can also be used to test and run multiple versions of the same application on the same host. It greatly simplfies pull request workflows.

tcm serve

Contributing

🚨🚨🚨 while the source is not public we may revise this in the future. The primary reason for this is that we don't have the time to maintain a public repository.

Clone the source, then run yarn && yarn run tsc && yarn link in that directory to install the TCM repo as a global package. Verify installation with tcm help.

Link local setup with any project using yarn link @tessin/tcm.

1.0.167

4 years ago

1.0.166

4 years ago

1.0.165

4 years ago

1.0.164

4 years ago

1.0.163

4 years ago

1.0.162

4 years ago

1.0.161

4 years ago

1.0.160

5 years ago

1.0.159

5 years ago

1.0.158

5 years ago

1.0.157

5 years ago

1.0.156

5 years ago

1.0.155

5 years ago

1.0.154

5 years ago

1.0.153

5 years ago

1.0.151

5 years ago

1.0.150

5 years ago

1.0.149

5 years ago

1.0.148

5 years ago

1.0.147

5 years ago

1.0.146

5 years ago

1.0.145

5 years ago

1.0.144

5 years ago

1.0.143

5 years ago

1.0.142

5 years ago

1.0.141

5 years ago

1.0.140

5 years ago

1.0.139

5 years ago

1.0.138

5 years ago

1.0.137

5 years ago

1.0.136

5 years ago

1.0.135

5 years ago

1.0.134

5 years ago

1.0.133

5 years ago

1.0.132

5 years ago

1.0.131

5 years ago

1.0.130

5 years ago

1.0.129

5 years ago

1.0.128

5 years ago

1.0.127

5 years ago

1.0.126

5 years ago

1.0.125

5 years ago

1.0.124

5 years ago

1.0.123

5 years ago

1.0.122

5 years ago

1.0.121

5 years ago

1.0.120

5 years ago

1.0.119

5 years ago

1.0.118

5 years ago

1.0.117

5 years ago

1.0.116

5 years ago

1.0.115

5 years ago

1.0.114

5 years ago

1.0.113

5 years ago

1.0.112

5 years ago

1.0.111

5 years ago

1.0.110

5 years ago

1.0.109

5 years ago

1.0.108

5 years ago

1.0.107

5 years ago

1.0.106

5 years ago

1.0.105

5 years ago

1.0.104

5 years ago

1.0.103

5 years ago

1.0.102

5 years ago

1.0.101

5 years ago

1.0.100

5 years ago

1.0.99

5 years ago

1.0.98

5 years ago

1.0.97

5 years ago

1.0.96

5 years ago

1.0.95

5 years ago

1.0.94

5 years ago

1.0.93

5 years ago

1.0.92

5 years ago

1.0.91

5 years ago

1.0.90

5 years ago

1.0.89

5 years ago

1.0.88

5 years ago

1.0.87

5 years ago

1.0.86

5 years ago

1.0.85

5 years ago

1.0.84

5 years ago

1.0.83

5 years ago

1.0.82-alpha.7

5 years ago

1.0.82-alpha.6

5 years ago

1.0.82-alpha.5

5 years ago

1.0.82-alpha.4

5 years ago

1.0.82-alpha.3

5 years ago

1.0.82-alpha.2

5 years ago

1.0.82-alpha.1

5 years ago

1.0.81

5 years ago

1.0.80

5 years ago

1.0.79

5 years ago

1.0.78

5 years ago

1.0.77

5 years ago

1.0.76

5 years ago

1.0.75

5 years ago

1.0.74

5 years ago

1.0.73

5 years ago

1.0.72

5 years ago

1.0.71

5 years ago

1.0.70

5 years ago

1.0.69

5 years ago

1.0.68

5 years ago

1.0.67

5 years ago

1.0.66

5 years ago

1.0.65

5 years ago

1.0.64

5 years ago

1.0.63

5 years ago

1.0.62

5 years ago

1.0.61

5 years ago

1.0.60

5 years ago

1.0.59

5 years ago

1.0.58

5 years ago

1.0.57

5 years ago

1.0.56

5 years ago

1.0.55

5 years ago

1.0.54

5 years ago

1.0.53

5 years ago

1.0.52

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.41

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

6 years ago