Skip to content

Commit

Permalink
Merge db76f48 into ba42b7c
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed May 16, 2024
2 parents ba42b7c + db76f48 commit e4ea038
Show file tree
Hide file tree
Showing 229 changed files with 43,323 additions and 15,710 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ module.exports = {
files: ['benchmarks/**/*.ts'],
rules: {
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'no-var': 'off',
'camelcase': 'off'
}
}]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
COVERALLS_REPO_TOKEN: "kVPcGJfehOArEQnHb8BT3KS72xbUQCoxI"
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
Expand Down
208 changes: 207 additions & 1 deletion CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ A superset of Roku's BrightScript language. Compiles to standard BrightScript.

## Overview

**WARNING: this is the v0.66.0 branch with experimental features**

The BrighterScript language provides new features and syntax enhancements to Roku's BrightScript language. Because the language is a superset of BrightScript, the parser and associated tools (VSCode integration, cli, etc...) work with standard BrightScript (.brs) files. This means you will get benefits (as described in the following section) from using the BrighterScript compiler, whether your project contains BrighterScript (.bs) files or not. The BrighterScript language transpiles to standard BrightScript, so your code is fully compatible with all roku devices.

## Features
Expand Down
9 changes: 8 additions & 1 deletion benchmarks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ interface RunnerOptions {
quick: boolean;
profile: boolean;
tar: boolean;
config: string;
}
class Runner {
constructor(
Expand Down Expand Up @@ -144,8 +145,9 @@ class Runner {
cwd: cwd
});

execSync(`npx ts-node target-runner.ts "${version}" "${maxVersionLength}" "${target}" "${maxTargetLength}" "${alias}" "${this.options.project}" "${this.options.quick}" "${this.options.profile}"`, {
execSync(`npx ts-node target-runner.ts "${version}" "${maxVersionLength}" "${target}" "${maxTargetLength}" "${alias}" "${this.options.project}" "${this.options.quick}" "${this.options.profile}" "${(this.options.config ?? '{}').replaceAll('\"', '\\"')}"`, {
env: {
...process.env,
'NODE_OPTIONS': `--max-old-space-size=${MAX_OLD_SPACE}`
}
});
Expand Down Expand Up @@ -205,6 +207,11 @@ let options = yargs
description: 'use a npm-packed tarball for local files instead of using the files directly',
default: true
})
.option('config', {
type: 'string',
description: 'add additional BsConfig settings as JSON - eg. \'{"removeParameterTypes":true}\'',
default: '{}'
})
.strict()
.check(argv => {
const idx = argv.versions.indexOf('latest');
Expand Down
Loading

0 comments on commit e4ea038

Please sign in to comment.