From f7e279e3d5f88951ea34359e9da33d98bb7065ee Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Thu, 23 Apr 2020 19:33:04 -0700 Subject: [PATCH] chore: update npm scripts and synth.py (#163) Update npm scripts: add clean, prelint, prefix; make sure that lint and fix are set properly. Use post-process feature of synthtool. --- package.json | 3 ++- synth.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index eed3f3d..05325da 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "predocs-test": "npm run docs", "docs-test": "linkinator docs", "samples-test": "echo no sample tests!", - "system-test": "echo no system tests!" + "system-test": "echo no system tests!", + "precompile": "gts clean" }, "files": [ "build/src" diff --git a/synth.py b/synth.py index 8fe4eea..d7e1a67 100644 --- a/synth.py +++ b/synth.py @@ -1,5 +1,6 @@ import synthtool as s import synthtool.gcp as gcp +import synthtool.languages.node as node import logging logging.basicConfig(level=logging.DEBUG) @@ -8,3 +9,5 @@ common_templates = gcp.CommonTemplates() templates = common_templates.node_library() s.copy(templates) +node.install() +node.fix()