Skip to content

Commit

Permalink
build development example
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Nov 23, 2022
1 parent 0e0334e commit 075c354
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 0 deletions.
42 changes: 42 additions & 0 deletions development/javascript/javascript-embed.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//=============//
// FROGASAURUS //
//=============//
const JavascriptFrogasaurus = {}

//========//
// SOURCE //
//========//
{
//====== ./greet.js ======
{
JavascriptFrogasaurus["./greet.js"] = {}
const greet = (name) => {
console.log(`Hello ${name}!`)
}


JavascriptFrogasaurus["./greet.js"].greet = greet
}

//====== ./main.js ======
{
JavascriptFrogasaurus["./main.js"] = {}

const main = () => {
greet('World')
}

JavascriptFrogasaurus["./main.js"].main = main
}

const { greet } = JavascriptFrogasaurus["./greet.js"]

}

//=========//
// EXPORTS //
//=========//
const Javascript = {
greet: JavascriptFrogasaurus["./greet.js"].greet,
main: JavascriptFrogasaurus["./main.js"].main,
}
45 changes: 45 additions & 0 deletions development/javascript/javascript-import.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//=============//
// FROGASAURUS //
//=============//
const JavascriptFrogasaurus = {}

//========//
// SOURCE //
//========//
{
//====== ./greet.js ======
{
JavascriptFrogasaurus["./greet.js"] = {}
const greet = (name) => {
console.log(`Hello ${name}!`)
}


JavascriptFrogasaurus["./greet.js"].greet = greet
}

//====== ./main.js ======
{
JavascriptFrogasaurus["./main.js"] = {}

const main = () => {
greet('World')
}

JavascriptFrogasaurus["./main.js"].main = main
}

const { greet } = JavascriptFrogasaurus["./greet.js"]

}

//=========//
// EXPORTS //
//=========//
export const { greet } = JavascriptFrogasaurus["./greet.js"]
export const { main } = JavascriptFrogasaurus["./main.js"]

export const Javascript = {
greet: JavascriptFrogasaurus["./greet.js"].greet,
main: JavascriptFrogasaurus["./main.js"].main,
}
39 changes: 39 additions & 0 deletions development/javascript/javascript-standalone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//=============//
// FROGASAURUS //
//=============//
const JavascriptFrogasaurus = {}

//========//
// SOURCE //
//========//
{
//====== ./greet.js ======
{
JavascriptFrogasaurus["./greet.js"] = {}
const greet = (name) => {
console.log(`Hello ${name}!`)
}


JavascriptFrogasaurus["./greet.js"].greet = greet
}

//====== ./main.js ======
{
JavascriptFrogasaurus["./main.js"] = {}

const main = () => {
greet('World')
}

JavascriptFrogasaurus["./main.js"].main = main
}

const { greet } = JavascriptFrogasaurus["./greet.js"]

}

//======//
// MAIN //
//======//
JavascriptFrogasaurus["./main.js"].main(...Deno.args)

0 comments on commit 075c354

Please sign in to comment.