Skip to content

Instantly share code, notes, and snippets.

@matthewp
Last active June 7, 2021 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewp/f5033180c65a0e6075aa2aff37f9a6ba to your computer and use it in GitHub Desktop.
Save matthewp/f5033180c65a0e6075aa2aff37f9a6ba to your computer and use it in GitHub Desktop.
Demo TypeScript/Lucy project
node_modules/
import createMachine from './machine.lucy';
createMachine();
initial state idle {}
{
"name": "demo-ts-proj",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@lucy/typescript-plugin": {
"version": "0.0.1",
"dev": true,
"dependencies": {
"typescript": {
"version": "4.3.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.2.tgz",
"integrity": "sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw=="
}
}
},
"typescript": {
"version": "4.3.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.2.tgz",
"integrity": "sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==",
"dev": true
}
}
}
{
"name": "demo-ts-proj",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"@lucy/typescript-plugin": "^0.0.1",
"typescript": "^4.3.2"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
{
"compilerOptions": {
"noImplicitAny": true,
"plugins": [{ "name": "@lucy/typescript-plugin" }]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment