Skip to content

Commit

Permalink
CLDR-17803 docs/site: use assets/vendor instead of node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 committed Sep 4, 2024
1 parent 19e34f9 commit 85e3172
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/site/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules
/assets/json
/assets/vendor
4 changes: 0 additions & 4 deletions docs/site/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@ defaults:
path: ''
values:
layout: page

include:
- node_modules

3 changes: 1 addition & 2 deletions docs/site/_layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
© 1991-2024 Unicode, Inc. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries. See <a href="https://www.unicode.org/copyright.html">Terms of Use</a>.
</footer>
<!-- workaround for cloudflare content-type issue -->
<script src="/node_modules/vue/dist/vue_global_prod.js"></script>
<!-- <script src="/node_modules/vue/dist/vue.global.prod.js"></script> -->
<script src="/assets/vendor/vue.global.prod.js"></script>
<script src="/assets/js/cldrsite.js"></script>
</body>

Expand Down
2 changes: 1 addition & 1 deletion docs/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "node assets/js/build.mjs",
"postinstall": "cp node_modules/vue/dist/vue.global.prod.js node_modules/vue/dist/vue_global_prod.js"
"postinstall": "mkdir -p assets/vendor ; cp node_modules/vue/dist/vue.global.prod.js assets/vendor"
},
"keywords": [],
"author": "Steven R. Loomis <[email protected]>",
Expand Down

0 comments on commit 85e3172

Please sign in to comment.