0.12.3 • Published 18 days ago

@snowplow/snowtype v0.12.3

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
18 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
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_ID=YOUR_KEY_ID_HERE
SNOWPLOW_CONSOLE_API_KEY=YOUR_KEY_HERE
SNOWPLOW_CONSOLE_API_URL=https://next.console.snowplowanalytics.com/api/msc

Then use:

npm run snowtype init

to initialize the project.

Edit file snowtype.config.ts adding data products or event specifications.

Then run:

npm run snowtype generate

This will run the app and generate output code 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 output folder), you need to install a related tracker, for instance:
npm i -D @snowplow/browser-tracker -w @snowplow/snowtype
0.11.0

5 months ago

0.12.0

4 months ago

0.10.2

7 months ago

0.12.1

4 months ago

0.12.2

4 months ago

0.12.3

18 days ago

0.10.1

8 months ago

0.10.0

8 months ago

0.8.4

9 months ago

0.9.0

9 months ago

0.8.1

11 months ago

0.8.0

11 months ago

0.7.1

12 months ago

0.8.3

10 months ago

0.8.2

11 months ago

0.5.0

1 year ago

0.4.1

1 year ago

0.7.0

12 months ago

0.6.0

12 months ago

0.5.1

1 year ago

0.4.2

1 year ago

0.4.0

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.9

1 year ago

0.2.7

1 year ago

0.2.8

1 year ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.1.2

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago