Skip to content

Commit

Permalink
Removed renaming from out dir
Browse files Browse the repository at this point in the history
  • Loading branch information
dev2-nomo committed Nov 29, 2023
1 parent deb7445 commit 664c107
Show file tree
Hide file tree
Showing 33 changed files with 142 additions and 15 deletions.
9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,5 @@ typings/
# Cli configs
nomo_cli.config.js

# Manifest
out/nomo_manifest.json

# Webon Files
out/nomo.tar.gz

# Out Dir
out/

# Cached WebOn Files
cache/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Add `nomo-webon-cli` to your dev-dependencies:

`npm install --save-dev nomo-webon-cli`

Alternatively, you can run it via npx:
For Windows, you can run it via npx:

`npx nomo-webon-cli --help`

Expand Down
10 changes: 5 additions & 5 deletions src/build-webon/build-webon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ export async function buildWebOn(args: { assetDir: string }): Promise<void> {
const outDirPath = isOutDir ? assetDir : path.resolve(assetDir, "..", "out");

checkDir(assetDir);
renameAssetDir(assetDir);
//renameAssetDir(assetDir);

if (!isOutDir) {
console.log("Directories are already named correctly, no need to rename.");
}
// if (!isOutDir) {
// console.log("Directories are already named correctly, no need to rename.");
// }

createOutDir(outDirPath);
// createOutDir(outDirPath);

const missingFiles = checkRequiredFiles(outDirPath);

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
25 changes: 25 additions & 0 deletions test_assets/out/_next/static/chunks/139-17ed572570f5a2bf.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions test_assets/out/_next/static/chunks/722-9e0a1b774e2076c0.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions test_assets/out/_next/static/chunks/main-47256448c4a9e632.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test_assets/out/_next/static/css/0ae83fa39e3fd19d.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test_assets/out/_next/static/css/d0a69a99c2ba0935.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added test_assets/out/favicon.ico
Binary file not shown.
File renamed without changes.
10 changes: 10 additions & 0 deletions test_assets/out/index.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1:HL["/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2",{"as":"font","type":"font/woff2"}]
2:HL["/_next/static/css/d0a69a99c2ba0935.css",{"as":"style"}]
0:[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L3",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d0a69a99c2ba0935.css","precedence":"next"}]],["$L4",["$","meta",null,{"name":"next-size-adjust"}]]]]]
5:HL["/_next/static/css/0ae83fa39e3fd19d.css",{"as":"style"}]
6:I{"id":"9544","chunks":["272:static/chunks/webpack-d9a1fd122aa2cc03.js","667:static/chunks/2443530c-0a6f94e70d430d82.js","139:static/chunks/139-17ed572570f5a2bf.js"],"name":"","async":false}
7:I{"id":"99","chunks":["272:static/chunks/webpack-d9a1fd122aa2cc03.js","667:static/chunks/2443530c-0a6f94e70d430d82.js","139:static/chunks/139-17ed572570f5a2bf.js"],"name":"","async":false}
8:I{"id":"9457","chunks":["272:static/chunks/webpack-d9a1fd122aa2cc03.js","667:static/chunks/2443530c-0a6f94e70d430d82.js","139:static/chunks/139-17ed572570f5a2bf.js"],"name":"","async":false}
9:I{"id":"1460","chunks":["722:static/chunks/722-9e0a1b774e2076c0.js","931:static/chunks/app/page-84f0a425fcdcf910.js"],"name":"","async":false}
3:[["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_a64ecd","children":["$","$L6",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L7",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","asNotFound":"$undefined","childProp":{"current":[["$","$L8",null,{"propsForComponent":{"params":{}},"Component":"$9"}],null],"segment":"__PAGE__"},"styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/0ae83fa39e3fd19d.css","precedence":"next"}]]}]}]}],null]
4:[[["$","meta",null,{"charSet":"utf-8"}],["$","title",null,{"children":"NOMO Demo Plugin"}],["$","meta",null,{"name":"description","content":"A showcase of NOMO plugin functionality"}],null,null,null,null,null,null,null,null,["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1"}],null,null,null,null,null,null,null,null,null,null,[]],[null,null,null,null],null,null,[null,null,null,null,null],null,null,null,null,[null,[["$","link",null,{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]],[],null]]
Binary file added test_assets/out/nomo-logo-square.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test_assets/out/nomo.tar.gz
Binary file not shown.
File renamed without changes
12 changes: 12 additions & 0 deletions test_assets/out/nomo_manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"nomo_manifest_version": "1.1.0",
"webon_id": "cli.test.app",
"webon_name": "Cli Test",
"webon_version": "0.1.0",
"min_nomo_version": "0.3.4",
"permissions": [
"nomo.permission.SEND_MESSAGE",
"nomo.permission.SEND_ASSETS",
"nomo.permission.READ_MEDIA"
]
}
24 changes: 24 additions & 0 deletions test_assets/out_incomplete/out/incomplete.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello World</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

h1 {
font-weight: bold;
}
</style>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>

0 comments on commit 664c107

Please sign in to comment.