Skip to content

Commit

Permalink
Merge branch 'TurboWarp:master' into ListExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyMakesThings authored Nov 25, 2023
2 parents d623840 + 996a007 commit a6a8a0d
Show file tree
Hide file tree
Showing 129 changed files with 15,702 additions and 4,602 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# npm
node_modules

# Final built website
# Final built website and localizations
build
build-l10n

# Various operating system caches
thumbs.db
.DS_Store
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ We're all volunteers who all have lives outside of Scratch extensions. Many have

Every extension is also covered under [our bug bounty](https://github.com/TurboWarp/extensions/security/policy), so mindlessly merging things will have a direct impact on my wallet.

## On AI language models

**Generative AI language models like ChatGPT, Bing Chat, and Bard DO NOT know how to write proper extensions for TurboWarp.** Remember that the ChatGPT knowledge cutoff is in 2021 while our extension system did not exist until late 2022, thus it *literally can't know*. Pull requests submitting extensions that are made by AI (it's really obvious) will be closed as invalid.

## Writing extensions

Extension source code goes in the [`extensions`](extensions) folder. For example, an extension placed at `extensions/hello-world.js` would be accessible at [http://localhost:8000/hello-world.js](http://localhost:8000/hello-world.js) using our development server.
Expand Down
8 changes: 6 additions & 2 deletions development/build-production.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
const pathUtil = require("path");
const Builder = require("./builder");

const outputDirectory = pathUtil.join(__dirname, "..", "build");
const outputDirectory = pathUtil.join(__dirname, "../build");
const l10nOutput = pathUtil.join(__dirname, "../build-l10n");

const builder = new Builder("production");
const build = builder.build();

build.export(outputDirectory);
console.log(`Built to ${outputDirectory}`);

console.log(`Saved to ${outputDirectory}`);
build.exportL10N(l10nOutput);
console.log(`Exported L10N to ${l10nOutput}`);
Loading

0 comments on commit a6a8a0d

Please sign in to comment.