-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from tmedwards/develop
RELEASE: v2.33.3
- Loading branch information
Showing
12 changed files
with
5,657 additions
and
1,093 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env node | ||
/*********************************************************************************************************************** | ||
build.js (v1.4.16, 2020-06-03) | ||
build.js (v1.4.18, 2020-11-08) | ||
A Node.js-hosted build script for SugarCube. | ||
Copyright © 2013–2020 Thomas Michael Edwards <[email protected]>. All rights reserved. | ||
|
@@ -187,7 +187,7 @@ if (_opt.options.build) { | |
|
||
// Create the build ID file, if nonexistent. | ||
if (!_fs.existsSync('.build')) { | ||
writeFileContents('.build', 0); | ||
writeFileContents('.build', '0'); | ||
} | ||
|
||
// Get the version info and build metadata. | ||
|
@@ -267,7 +267,7 @@ if (_opt.options.build) { | |
} | ||
|
||
// Update the build ID. | ||
writeFileContents('.build', version.build); | ||
writeFileContents('.build', String(version.build)); | ||
})(); | ||
|
||
// That's all folks! | ||
|
@@ -378,7 +378,7 @@ function compileJavaScript(filenameObj, options) { | |
const babelOpts = { | ||
code : true, | ||
compact : false, | ||
presets : ['es2015'], | ||
presets : ['env'], | ||
filename : 'sugarcube.js' | ||
}; | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,12 @@ | ||
<!-- *********************************************************************************************** | ||
Guide: TypeScript | ||
************************************************************************************************ --> | ||
# Guide: TypeScript {#guide-typescript} | ||
|
||
TypeScript bindings for SugarCube APIs can found as the [Definitely Typed](https://definitelytyped.org/) package: `@types/twine-sugarcube`. | ||
|
||
To install the package via NPM, use the following command: | ||
|
||
``` | ||
npm install --save-dev @types/twine-sugarcube | ||
``` |
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.