Skip to content

Commit 58a01d3

Browse files
authored
Fixing build (#5)
* Change submodule to sparse-repo location * Fix `npm test` command * Fix npm test command on Windows * Fix comment in .gitignore * Fixing build scripts * Fixing build scripts on macOS * Fix makefile * Adjusted .editorconfig
1 parent fa342e7 commit 58a01d3

21 files changed

+138
-60
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ insert_final_newline = true
1313
indent_size = 4
1414
indent_style = space
1515

16+
[*.js]
17+
indent_size = 4
18+
indent_style = space
19+
end_of_line = crlf
20+
21+
[*.html]
22+
indent_size = 4
23+
indent_style = space
24+
end_of_line = crlf
25+
1626
[*.bash]
1727
indent_size = 2
1828
indent_style = space

Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
SPARSE_REPO = ./sparse-repo/products.aspose.cloud
2+
3+
.PHONY: init
4+
init: update-sparse-repo links
5+
6+
.PHONY: links
7+
links: remove-broken-links
8+
ln -sv "$(SPARSE_REPO)/archetypes" | true
9+
ln -sv "$(SPARSE_REPO)/assets" | true
10+
ln -sv "$(SPARSE_REPO)/themes" | true
11+
12+
ln -sv "$(SPARSE_REPO)/config-prod.toml" | true
13+
14+
ln -sv ".$(SPARSE_REPO)/content/_index.md" "./content/_index.md" | true
15+
16+
.PHONY: update-sparse-repo
17+
update-sparse-repo:
18+
./scripts/update-sparse-repo.bash
19+
20+
.PHONY: remove-broken-links
21+
remove-broken-links:
22+
find . -type l ! -exec test -e {} \; -exec rm {} \;

archetypes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
./submodules/products.aspose.cloud/archetypes
1+
./sparse-repo/products.aspose.cloud/archetypes

assets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
./submodules/products.aspose.cloud/assets
1+
./sparse-repo/products.aspose.cloud/assets

config-prod.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
submodules/products.aspose.cloud/config-prod.toml
1+
./sparse-repo/products.aspose.cloud/config-prod.toml

content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../submodules/products.aspose.cloud/content/_index.md
1+
../sparse-repo/products.aspose.cloud/content/_index.md

data/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This /static/ dir will be created and updated with /scripts/update-theme.bash
2-
# from the submodule of large products.aspose.cloud
1+
# This /data/ dir will be created and updated with /scripts/update-sparse-repo.bash
2+
# from the sparse copy of large products.aspose.cloud
33
*
44
!.gitignore

package-lock.json

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"homepage": "https://products.aspose.cloud/barcode/",
66
"devDependencies": {
77
"autoprefixer": "^10.4.21",
8-
"npm-check-updates": "^18.3.0",
8+
"npm-check-updates": "^19.0.0",
99
"postcss-cli": "^11.0.1"
1010
},
1111
"scripts": {
12-
"test": "node -e \"const fs=require('fs');const {execSync}=require('child_process');const required=fs.readFileSync('.hugo_version','utf8').trim();const installed=execSync('hugo version').toString().match(/v[\\d.]+/)[0].slice(1);if (required === installed) { console.log(`Installed Hugo version ${installed} is OK.`); } else throw new Error(`Installed Hugo version mismatch: required ${required}, but found ${installed}`);\"",
12+
"test": "node ./scripts/check-hugo-version.js",
1313
"check-updates": "ncu -u --enginesNode"
1414
}
1515
}

public/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This /static/ dir will be created and updated with /scripts/update-theme.bash
2-
# from the submodule of large products.aspose.cloud
1+
# This /static/ dir will be created and updated with /scripts/update-sparse-repo.bash
2+
# from the sparse copy of large products.aspose.cloud
33
*
44
!.gitignore

0 commit comments

Comments
 (0)