0.4.0 • Published 4 days ago

@snowplow/snowtype v0.4.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
4 days ago

CLI

This package is responsible for our CLI tools, which will be used directly by our users.

For developers

Useful scripts:

ScriptDescription
startRun cli for development
build:productionBuilds project for deployment
buildBuilds project for local development
fix-versionFix version
format:fixFix formatting issues
formatCheck for any formatting issues
lint:fixFix for any lint issues
lintCheck for any lint issues
prebuild:productionRemove dist folder
testRuns test

Running the application

Add a .env file in the packages/cli folder with the following content:

SNOWPLOW_CONSOLE_API_KEY=YOUR_KEY_HERE
SNOWPLOW_CONSOLE_API_URL=https://next.console.snowplowanalytics.com/api/msc

Then use:

npm run snowtype init && npm run snowtype generate 

This will run the app using ts-node.

Alternatively, you can directly use the JavaScript file by running:

npm run build
node dist/index.js

Notes:

  • To see the type in the generated code (visible under the snowtype folder), you need to install a related tracker, for instance:
npm i -D @snowplow/browser-tracker -w @snowplow/snowtype
0.4.0

4 days ago

0.3.1

13 days ago

0.3.0

21 days ago

0.2.9

1 month ago

0.2.7

1 month ago

0.2.8

1 month ago

0.2.6

1 month ago

0.2.5

2 months ago

0.2.4

2 months ago

0.2.3

2 months ago

0.2.2

2 months ago

0.2.1

3 months ago

0.1.2

3 months ago

0.2.0

3 months ago

0.1.1

4 months ago

0.1.0

4 months ago