From 31f5db32d120740c5acddce06a185fe9803824f2 Mon Sep 17 00:00:00 2001 From: Guillaume Jenkins Date: Fri, 4 Nov 2016 11:38:00 -0700 Subject: [PATCH] Move hex cache (#291) * hexcache is no longer generated at repo root, so remove it from package.json * Modified templates to depend on local packages * Adding bluetooth template for offline HEX cache * Fix wrong package name in dependencies of bluetooth template * Change package versions to * in templates --- libs/templates/bluetoothprj/README.md | 0 libs/templates/bluetoothprj/main.blocks | 62 +++++++++++++++++++++++ libs/templates/bluetoothprj/main.ts | 16 ++++++ libs/templates/bluetoothprj/pxt.json | 13 +++++ libs/templates/bluetoothprj/tsconfig.json | 8 +++ package.json | 4 +- 6 files changed, 101 insertions(+), 2 deletions(-) create mode 100644 libs/templates/bluetoothprj/README.md create mode 100644 libs/templates/bluetoothprj/main.blocks create mode 100644 libs/templates/bluetoothprj/main.ts create mode 100644 libs/templates/bluetoothprj/pxt.json create mode 100644 libs/templates/bluetoothprj/tsconfig.json diff --git a/libs/templates/bluetoothprj/README.md b/libs/templates/bluetoothprj/README.md new file mode 100644 index 00000000..e69de29b diff --git a/libs/templates/bluetoothprj/main.blocks b/libs/templates/bluetoothprj/main.blocks new file mode 100644 index 00000000..d809e7e4 --- /dev/null +++ b/libs/templates/bluetoothprj/main.blocks @@ -0,0 +1,62 @@ + + + + +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +TRUE +FALSE +TRUE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +TRUE +FALSE +FALSE +FALSE +TRUE +FALSE +TRUE +TRUE +TRUE +FALSE + + +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE +FALSE + + + + + + \ No newline at end of file diff --git a/libs/templates/bluetoothprj/main.ts b/libs/templates/bluetoothprj/main.ts new file mode 100644 index 00000000..4dfdb3a1 --- /dev/null +++ b/libs/templates/bluetoothprj/main.ts @@ -0,0 +1,16 @@ +basic.forever(() => { + basic.showLeds(` + . # . # . + # . # . # + # . . . # + . # . # . + . . # . . + `) + basic.showLeds(` + . . . . . + . . . . . + . . . . . + . . . . . + . . . . . + `) +}) \ No newline at end of file diff --git a/libs/templates/bluetoothprj/pxt.json b/libs/templates/bluetoothprj/pxt.json new file mode 100644 index 00000000..6cae5d55 --- /dev/null +++ b/libs/templates/bluetoothprj/pxt.json @@ -0,0 +1,13 @@ +{ + "name": "{0} block", + "dependencies": { + "core": "*", + "bluetooth": "*" + }, + "description": "", + "files": [ + "main.blocks", + "main.ts", + "README.md" + ] +} diff --git a/libs/templates/bluetoothprj/tsconfig.json b/libs/templates/bluetoothprj/tsconfig.json new file mode 100644 index 00000000..1ba59f2c --- /dev/null +++ b/libs/templates/bluetoothprj/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "target": "es5", + "noImplicitAny": true, + "outDir": "built", + "rootDir": "." + } +} diff --git a/package.json b/package.json index 8365e77e..d8673ca5 100644 --- a/package.json +++ b/package.json @@ -20,11 +20,11 @@ "built/*.js", "built/*.json", "built/*.d.ts", + "built/hexcache", "sim/public", "docs/*.md", "docs/*/*.md", - "docs/*/*/*.md", - "hexcache/*.hex" + "docs/*/*/*.md" ], "devDependencies": { "typescript": "^1.8.7"