npm/ide-docs: move npm packaging to separate directory

This makes a clean separation between the packaging and the docs.
This commit is contained in:
David Lechner
2021-11-19 19:30:57 -06:00
parent fee122cf33
commit 9d8531a85b
7 changed files with 18 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
# build directory
html/
# yarn pack output
*.tgz
+8
View File
@@ -0,0 +1,8 @@
# Changelog
<!-- refer to https://keepachangelog.com/en/1.0.0/ for guidance -->
## Unreleased
### Changed
- Changed package directory structure.
@@ -5,7 +5,7 @@
"repository": {
"type": "git",
"url": "https://github.com/pybricks/pybricks-api",
"directory": "doc/main"
"directory": "npm/ide-docs"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
@@ -14,11 +14,10 @@
"author": "The Pybricks Authors",
"license": "MIT",
"files": [
"build/html/**"
"html"
],
"types": "index.d.ts",
"scripts": {
"clean": "poetry run make -C .. clean",
"build": "poetry run make -C .. TAG=ide html"
"clean": "poetry run make -C ../../doc clean",
"build": "poetry run make -C ../../doc TAG=ide html && rm -rf html && cp -R ../../doc/main/build/html html"
}
}
+1 -1
View File
@@ -4,5 +4,5 @@ exclude = .venv/,*.pyi
max-line-length = 88
[doc8]
ignore-path = .venv/,doc/main/build/,pybricks.egg-info/
ignore-path = .venv/,doc/main/build/,doc/api/build/,pybricks.egg-info/,npm/
max-line-length = 88