diff --git a/.gitignore b/.gitignore index 34b42e6..5df1422 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ **/.envrc **/.secrets **/.venv/ +**/dist/ **/node_modules diff --git a/Makefile b/Makefile index ca8a87f..c8c4451 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ help: ## show this message $(MAKEFILE_LIST) build: - @npm run build + @npm run-script build fix: run-pre-commit ## run all fixes @@ -25,6 +25,14 @@ fix-sort: ## automatically sort the contents of some files lint: ## run all linters @echo "no linters configured" +pack: build test ## create a tarball from the package + @rm -rf ./dist + @mkdir -p ./dist + @npm pack --pack-destination dist + +publish: pack ## publish the package + @find ./dist -name '*-cspell-dict-*.*.*.tgz' -exec npm publish --access public {} +; + run-pre-commit: ## run pre-commit for all files @poetry run pre-commit run $(PRE_COMMIT_OPTS) \ --all-files \ @@ -58,4 +66,4 @@ spellcheck: ## run cspell --show-context test: ## run tests - @echo "no tests configured" + @npm run-script test diff --git a/package.json b/package.json index 2d31e62..67f3196 100644 --- a/package.json +++ b/package.json @@ -35,5 +35,5 @@ "build": "cspell-tools compile \"finley.txt\" -o .", "test": "head -n 100 \"finley.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=finley\" stdin" }, - "version": "1.0.0" + "version": "1.0.1" }