-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* More flexible cache typing * Better typing for cache `get` * Refactor files to use `srcPath`. Deprecate `pathAbsolute` * WIP * Add start of unit test fixes * Fix broken scope diagnostics * Fix most tests. * Add support for `RawFile` * Fix remaining broken test * Fix lint issues * Rename `RawFile` to `GenericFile`. Rename `BscFile` to `File` * Rename GenericFile to AssetFile * Add before/after file add events. Support overriding file contents during provide events. Deprecate the file parse events. * Allows diagnostics for AssetFiles * add srcExtension to provideFile event * Add basic example to plugin docs * Add `excludeFromOutput` option to files. * Rename destPath to pkgPath * Implement file factory * fix lint errors * before/after file remove events. * better plugin docs * Deprecate the `BscFile` interface * Introduce `destPath` (not using it fully yet) * improve program.getPaths to support destPath * Better file constructor handling. Include destPath in `ProvideFileEvent` * Use `destPath` instead of `pkgPath` most places * Rename file reference to use `destPath` * add file api documentation * add multi-file change docs * Refine file api docs * Move bsc plugin to provide files in after * Adds completed file build flow * Add program build events * Some fixes * Fix remaining build errors. * Convert testTranspile to async * Convert unit tests to async testTranspile * Fix transpile flows * Fix lint issues * Fix AssetFile content loading * Fixed stagingDir path issues * Fix binary file copying * Re-expose concrete AstEditor * Fix bugs in the bslib injector * Properly prefix bslib * Export some missing interfaces and classes * Public `needsTranspiled` props * Add import comment test * Fix broken tests. Add event hook warnings to pluginInterface
- Loading branch information
1 parent
3d99565
commit 629ead3
Showing
86 changed files
with
3,495 additions
and
1,666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"lexer": { | ||
"current": [ | ||
12645.727126865311, | ||
13072.590947406612, | ||
11663.650306847825 | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = async (suite, name, brighterscript, projectPath, options) => { | ||
const { ProgramBuilder } = brighterscript; | ||
|
||
let builder; | ||
suite.add(name, (deferred) => { | ||
builder = new ProgramBuilder(); | ||
builder.run({ | ||
cwd: projectPath, | ||
createPackage: false, | ||
copyToStaging: false, | ||
//disable diagnostic reporting (they still get collected) | ||
diagnosticFilters: ['**/*'], | ||
logLevel: 'error' | ||
}).finally(() => { | ||
deferred.resolve(); | ||
}); | ||
}, { | ||
...options, | ||
'defer': true | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.