Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
update example, using type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
SRNV committed Feb 5, 2021
1 parent 1c1b461 commit 826e758
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions examples/boilerplate/components/pages/brand-component.o3
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,16 @@ import component OBtn from '../atoms/button.o3';
},
];
case 'event:animationend:fade-out-bottom':
Refs.marquee.classList.add('fade-out');
break;
const [marquee] = Refs.marquee
marquee.classList.add('fade-out');
break;
case 'event:animationend:fade-out':
this.display = false;
Ogone.router.go('/ogone');
break;
break;
case 'click:fade-out:exit':
this.visible = false;
break;
break;
default:
this.display = true;
Async.resolve();
Expand Down
3 changes: 0 additions & 3 deletions src/classes/DefinitionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ ${err.stack}`);
);
}
if (isAbsoluteRemote) {
this.warn(`Def: ${defPath}`);
const def = await fetchRemoteRessource(defPath);
if (!def) {
this.error(
Expand All @@ -53,7 +52,6 @@ ${err.stack}`);
defData = YAML.parse(def, {});
}
} else if (!!component.remote) {
this.warn(`Def: ${remoteRelativePath}`);
const def = await fetchRemoteRessource(remoteRelativePath);
if (!def) {
this.error(
Expand All @@ -63,7 +61,6 @@ ${err.stack}`);
defData = YAML.parse(def, {});
}
} else if (existsSync(defPath)) {
this.warn(`Def: ${defPath}`);
if (Deno.build.os !== "windows") {
Deno.chmodSync(defPath, 0o777);
}
Expand Down
2 changes: 1 addition & 1 deletion src/classes/EnvServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {
} from "../ogone.main.d.ts";
import messages from "../../docs/chore/messages.ts";
import { Flags } from "../enums/flags.ts";
import TSXContextCreator from './TSXContextCreator';
import TSXContextCreator from './TSXContextCreator.ts';
export default class EnvServer extends Env {
public readonly contributorMessage: { [k: string]: string } = messages;
run(opts: OgoneConfiguration) {
Expand Down
2 changes: 1 addition & 1 deletion src/classes/TSXContextCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class TSXContextCreator extends Utils {
public static cleanDistFolder() {
const files = walkSync(TSXContextCreator.subdistFolderURL.pathname, {
includeFiles: true,
includeDirs: true,
includeDirs: false,
});
for (let file of files) {
Deno.removeSync(file.path);
Expand Down
3 changes: 3 additions & 0 deletions src/main/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
never remove the dist folder

used for development

0 comments on commit 826e758

Please sign in to comment.