Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Update to Typescript 2.7 #295

Closed
wants to merge 372 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
372 commits
Select commit Hold shift + click to select a range
0f6775d
Fix dumb mistake
anaisbetts Nov 16, 2015
b98efd9
Enable inline-html in compilers
anaisbetts Nov 16, 2015
a78e1d4
Dumb bugs, forever
anaisbetts Nov 16, 2015
965edac
Fix misc oopses in sync versions of compile methods
anaisbetts Nov 16, 2015
1532c94
Make inline HTML compiler truly async
anaisbetts Nov 16, 2015
246801d
Fix up sync version
anaisbetts Nov 16, 2015
6930767
Create a method to more easily create an InlineHtmlCompiler
anaisbetts Nov 17, 2015
6565494
Move some of the extra compilers to a special inner compiler context
anaisbetts Nov 17, 2015
2a081e9
Ship It
anaisbetts Nov 17, 2015
4ccfb09
Merge pull request #14 from electronjs/inline-html
anaisbetts Nov 17, 2015
9a2795d
Remove Sass from readme
ali Nov 29, 2015
e387e85
Merge pull request #15 from ali/patch-1
anaisbetts Nov 29, 2015
d3685ae
Add a passthrough compiler that will just send its input through
anaisbetts Dec 8, 2015
b81f5c7
Merge pull request #16 from electronjs/text-plain
anaisbetts Dec 8, 2015
8a13743
Preserve the input mime-type
anaisbetts Dec 8, 2015
65c8a5c
Move inline HTML compiler to folder
anaisbetts Dec 27, 2015
cba856d
Add Jade compiler
anaisbetts Dec 27, 2015
df583a7
First hack at a Jade compiler
anaisbetts Dec 27, 2015
c0f223e
Fix some misc nonsense
anaisbetts Dec 27, 2015
3ba831c
Merge pull request #21 from electronjs/jade-compiler
anaisbetts Dec 27, 2015
8fd5e80
Next => ''
anaisbetts Dec 28, 2015
2411131
Require compilers be pre-created for createFromCompilers
anaisbetts Dec 28, 2015
a78d8f4
hwhoops
anaisbetts Dec 28, 2015
6448fd1
Fix this and that
anaisbetts Dec 29, 2015
e683c99
Use application/javascript erry'where
anaisbetts Dec 29, 2015
d292af6
Set correct default mime-types
anaisbetts Dec 29, 2015
3ec08cd
Set up a default compiler for scripts without a MIME type
anaisbetts Dec 29, 2015
eb6b652
Publish under 2.0-beta1
anaisbetts Dec 29, 2015
8302cf0
I hate myself
anaisbetts Dec 29, 2015
4892561
Merge remote-tracking branch 'origin/master' into electron-compile-2
anaisbetts Jan 2, 2016
d9419ea
Merge pull request #22 from electronjs/electron-compile-2
anaisbetts Jan 2, 2016
26cd9a9
Set up dox
anaisbetts Jan 2, 2016
ef172e5
Write docs for CompilerBase
anaisbetts Jan 2, 2016
6a02143
Mark compiler classes as private
anaisbetts Jan 2, 2016
2c7bb4a
Add our snazzy new doc copier
anaisbetts Jan 3, 2016
3bb3a77
Update more dox
anaisbetts Jan 3, 2016
81c7b87
Update the README
anaisbetts Jan 3, 2016
7d2c100
This is abstract tooo
anaisbetts Jan 3, 2016
4e0b6d1
Add our docs badge
anaisbetts Jan 3, 2016
fe8147d
Version bump to 2.0.0
anaisbetts Jan 3, 2016
5ce81ba
Don't mangle MIME types for blocks we don't change
anaisbetts Jan 4, 2016
1c781bb
Version bump to 2.0.1
anaisbetts Jan 4, 2016
72690bc
Attempt to preload Babel plugins
anaisbetts Jan 5, 2016
6510c2d
Version bump to 2.0.2
anaisbetts Jan 5, 2016
5f9fe60
Don't spam debug
anaisbetts Jan 5, 2016
0a1e9de
Version bump to 2.0.3
anaisbetts Jan 5, 2016
781a873
I'm placing myself under arrest
anaisbetts Jan 5, 2016
54ca59c
Version bump to 2.0.4
anaisbetts Jan 5, 2016
3e1dc8b
I die.
anaisbetts Jan 5, 2016
9c1c6cc
Fix typo in Babel
anaisbetts Jan 22, 2016
6eeb27a
Version bump to 2.0.5
anaisbetts Jan 22, 2016
3dbf213
Properly mark our dependencies
anaisbetts Jan 29, 2016
f24354c
Version bump to 2.0.6
anaisbetts Jan 29, 2016
f09c286
Not sure where we're using this
anaisbetts Feb 6, 2016
0ee719d
less: push paths array if specified in .compilerc
kangas Feb 25, 2016
a1dfec4
less: prefer ES6 spread operator to Array.prototype.push.apply
kangas Feb 25, 2016
912519c
Merge pull request #26 from kangas/fix-less-paths
anaisbetts Feb 25, 2016
7d9d4c0
Version bump to 2.0.7
anaisbetts Feb 25, 2016
9eb40f9
Clean up indentation
mnquintana Feb 29, 2016
69fd32b
Add compiler for CSON
mnquintana Feb 29, 2016
a08e65d
Merge pull request #27 from electronjs/celestial-csonings
anaisbetts Feb 29, 2016
d281094
Add mention of CSON support to Readme
mnquintana Feb 29, 2016
c4ae541
Version bump to 2.1.0
anaisbetts Feb 29, 2016
9c9b609
Ensure that CSON compiler returns a string
mnquintana Mar 1, 2016
e86e4d6
Merge pull request #28 from electronjs/cson-should-not-return-obj
anaisbetts Mar 1, 2016
9d43b61
Version bump to 2.1.1
anaisbetts Mar 1, 2016
d8e6855
Upgrade some stuff
anaisbetts Mar 1, 2016
7873881
Merge pull request #29 from electronjs/shut-up-babel
anaisbetts Mar 1, 2016
7cc3d4a
Version bump to 2.1.2
anaisbetts Mar 1, 2016
4648bfa
Revert "Pin Babel to v6.5"
anaisbetts Mar 1, 2016
5a9605f
Merge pull request #30 from electronjs/revert-29-shut-up-babel
anaisbetts Mar 1, 2016
85e41bf
Version bump to 2.1.3
anaisbetts Mar 1, 2016
ae75744
Try harder to find BabelJS preset modules, even if invoked via Mocha
anaisbetts Apr 4, 2016
e1cf054
Don't try to load a BabelRc, we are explicitly controlling options
anaisbetts Apr 4, 2016
7265f32
Version bump to 2.1.4
anaisbetts Apr 4, 2016
2ef9fef
Switch us to using @paulcbetts/mime-types
anaisbetts Apr 11, 2016
a7158bf
Version bump to 3.0.0
anaisbetts Apr 11, 2016
0aa70bc
Merge pull request #32 from electron/use-small-mimedb
anaisbetts Apr 11, 2016
e9799eb
update typescript-simple version and add option to avoid semantic check
manrueda May 21, 2016
56d658d
use lowerCaseAttributeNames with cherio, angular 2 issues
manrueda May 21, 2016
29d871b
add support for Stylus
May 22, 2016
3159941
fix path error
May 23, 2016
7398e09
Fix some things up
anaisbetts May 23, 2016
1addb98
Version bump to 3.1.0
anaisbetts May 23, 2016
dfad443
add support for nib
May 28, 2016
583c54c
Merge branch 'master' of https://github.com/electron/electron-compilers
May 28, 2016
3704fb2
refactor stylus options
May 28, 2016
ea91905
fix filePath error
May 28, 2016
c3c9742
properly apply options to stylus
May 28, 2016
3acf360
update docs
May 28, 2016
a6542c8
Merge from upstream/master
manrueda Jun 1, 2016
8f94084
AHHHHHHHHH
anaisbetts Jun 8, 2016
82cc127
:memo: Fix broken links in Readme
mnquintana Jun 28, 2016
b1d864a
Version bump to 3.1.1
anaisbetts Jun 8, 2016
808a505
:fire: lodash
anaisbetts Jul 3, 2016
d092510
Version bump to 3.1.2
anaisbetts Jul 3, 2016
e2aae9f
wat
anaisbetts Jul 3, 2016
7262eb3
Bring back the fix from 3.1.2 that I forgot to publish
anaisbetts Jul 3, 2016
b22cda1
Fix oops in inline-html
anaisbetts Jul 3, 2016
70a5b34
Version bump to 3.1.4
anaisbetts Jul 3, 2016
5fa911b
Use debug-electron to work around Windows stdout nonsense
anaisbetts Jul 12, 2016
8b77d4c
Version bump to 3.1.5
anaisbetts Jul 12, 2016
7ae822a
Fix svgs
maxkorp Jul 13, 2016
11c5538
Correctly set up paths for LESS imports
anaisbetts Jul 20, 2016
a4c1083
Set the type for link refs to text/css
anaisbetts Jul 20, 2016
3205856
Rewrite link tag types
anaisbetts Jul 20, 2016
3d9498f
Version bump to 3.1.6
anaisbetts Jul 20, 2016
d01c2bd
Fix babel config so it can run without the polyfill
mnquintana Aug 11, 2016
21925ab
Merge pull request #40 from electron/polyfills-on-polyfills
anaisbetts Aug 11, 2016
6cbb3cc
Merge remote-tracking branch 'origin/pr/39'
anaisbetts Aug 12, 2016
efaecf9
Merge remote-tracking branch 'origin/pr/37'
anaisbetts Aug 12, 2016
8e74381
Merge remote-tracking branch 'origin/pr/35'
anaisbetts Aug 12, 2016
d53c90e
Support JSX in TypeScript
anaisbetts Aug 12, 2016
3bfc6b4
Fix infinity bugs
anaisbetts Aug 12, 2016
b794141
Blindly update the world
anaisbetts Aug 12, 2016
d483bad
Cleanups
anaisbetts Aug 12, 2016
f92f6de
We now require >= node 5.x
anaisbetts Aug 12, 2016
4652921
Version bump to 4.0.0
anaisbetts Sep 23, 2016
8d2ac46
4.0.1
anaisbetts Oct 7, 2016
29ca99d
Do not force override TypeScript outDir
kwonoj Oct 17, 2016
df2ad27
Merge pull request #41 from kwonoj/fix-override-outdir
anaisbetts Oct 17, 2016
3b7e9d8
4.0.2
anaisbetts Oct 17, 2016
07cdaf9
Delay-load nib, don't take the hit on startup
anaisbetts Oct 21, 2016
840d2ac
4.0.3
anaisbetts Oct 21, 2016
2ce6ac6
Ugh
anaisbetts Nov 9, 2016
fc25a9a
Merge branch 'master' of https://github.com/electron/electron-compilers
anaisbetts Nov 9, 2016
73a5094
4.0.4
anaisbetts Nov 9, 2016
8f25cd4
UGH
anaisbetts Nov 9, 2016
6e7fae9
4.0.5
anaisbetts Nov 9, 2016
a32ef2d
TypeScript 2.1 has breaking changes
anaisbetts Dec 8, 2016
239c3a4
4.0.6
anaisbetts Dec 8, 2016
6cb20fd
Version bump to TypeScript 2.1.x
anaisbetts Dec 8, 2016
c662baa
5.0.0
anaisbetts Dec 8, 2016
f7762f9
debug-electron is :skull:
anaisbetts Dec 22, 2016
8b88653
5.0.1
anaisbetts Dec 22, 2016
225bc5c
Bring back a hacked node-sass
anaisbetts Dec 22, 2016
9ae4720
Fix up inline-html
anaisbetts Dec 22, 2016
5058610
Add a Sass compiler
anaisbetts Dec 22, 2016
75efb52
Add our file
anaisbetts Dec 22, 2016
19b1ad8
Merge pull request #43 from electron/sass
anaisbetts Dec 22, 2016
e21059e
5.1.0
anaisbetts Dec 22, 2016
4113807
I cannot.
anaisbetts Dec 22, 2016
7c38ca5
5.1.1
anaisbetts Dec 22, 2016
a79f2d4
Add a forked version of Vueify
anaisbetts Dec 23, 2016
48ae8c8
Yes.
anaisbetts Dec 27, 2016
6e5e4a5
Add in toutsuite to rig Vueify
anaisbetts Dec 27, 2016
a640492
First hack of Vue support
anaisbetts Dec 27, 2016
c49324b
Get Valid/Invalid working
anaisbetts Dec 27, 2016
f8e8ee4
hwhoops
anaisbetts Dec 27, 2016
2a27fa8
Merge pull request #46 from electron/vue
anaisbetts Dec 27, 2016
161752d
5.2.0
anaisbetts Dec 27, 2016
87a798c
Defer reading compilersByMimeType until used
anaisbetts Dec 27, 2016
65227f2
Fix dumb mistakes
anaisbetts Dec 27, 2016
2c97ebd
Oopses forever
anaisbetts Dec 27, 2016
2744c15
5.2.1
anaisbetts Dec 27, 2016
ebd8c64
Rewrite using sass.js
anaisbetts Dec 28, 2016
fa3411a
Ugh
anaisbetts Dec 28, 2016
c795b1c
Merge pull request #47 from electron/native-modules-plz-die
anaisbetts Dec 28, 2016
fee3134
5.2.2
anaisbetts Dec 28, 2016
9d79d57
Use regular typescript-simple
anaisbetts Jan 5, 2017
2e69f86
Work around TypeScript code in Vue components
anaisbetts Jan 5, 2017
3739877
Merge pull request #48 from electron/typescript-fixes
anaisbetts Jan 5, 2017
0142bd5
5.2.3
anaisbetts Jan 5, 2017
6368478
Bump up package dependencies to support latest TS compiler
kwonoj Jan 5, 2017
780d5bb
Merge pull request #49 from kwonoj/chore-tss-bump
anaisbetts Jan 5, 2017
afd3c1e
5.2.4
anaisbetts Jan 5, 2017
4bf5593
omfg
anaisbetts Jan 6, 2017
ae8ed51
5.2.5
anaisbetts Jan 6, 2017
ffbd700
feat(TypeScriptCompiler): utilize ts compiler api directly instead of
kwonoj Jan 7, 2017
159e697
5.3.0
anaisbetts Jan 8, 2017
64fa86d
Throw compiler option parse error correctly
kwonoj Jan 8, 2017
5356def
Merge pull request #51 from kwonoj/fix-stringify
anaisbetts Jan 8, 2017
140bffc
5.3.1
anaisbetts Jan 8, 2017
1138f9b
:wave: peerDependency
anaisbetts Jan 9, 2017
d2c6a3a
5.3.2
anaisbetts Jan 9, 2017
89f376b
Added test for sass compiler
saschagehlich Jan 15, 2017
0af1687
Implement `includePaths` option for sass compiler
saschagehlich Jan 15, 2017
6bc4dbe
Fix windows support :(
saschagehlich Jan 15, 2017
ee81783
Cleaned up code, add handling of files in same directory
saschagehlich Jan 16, 2017
2e29769
:fire: Remove test suite
saschagehlich Jan 17, 2017
8902b1e
:art: Code style, comments
saschagehlich Jan 17, 2017
4c3dfa3
feat(compilers): emit sourceMap object if available
kwonoj Jan 25, 2017
97a025c
Merge pull request #56 from kwonoj/feat-sourcemaps
anaisbetts Jan 27, 2017
2b50106
Merge pull request #55 from VLIGHTTO/feature/sass-include-paths
anaisbetts Jan 27, 2017
5bd94dc
No need for separate variable, just use paths
anaisbetts Jan 27, 2017
a6f476b
5.4.0
anaisbetts Jan 27, 2017
c598ce0
feat(babel): support emit sourcemaps for babel sync compile
kwonoj Feb 10, 2017
6c55c43
Merge pull request #57 from kwonoj/babel-sync-sourcemap
anaisbetts Feb 10, 2017
0454f70
Added SASS and SCSS dependency finders.
Mike-Dax Feb 11, 2017
e646132
Added a LESS dependency finder.
Mike-Dax Feb 11, 2017
971fbb8
Added a Stylus dependency finder.
Mike-Dax Feb 11, 2017
2b81275
Added a Babel dependency finder.
Mike-Dax Feb 11, 2017
f71f6f0
Added end of line semicolons.
Mike-Dax Feb 12, 2017
e20a682
refactor(babel): let babel compiler use SimpleCompilerBase
kwonoj Feb 12, 2017
e0a1f28
fix(compilers): preserve inline sources
kwonoj Feb 13, 2017
463fed4
Merge pull request #60 from kwonoj/fix-baber-preserve-sourcemap
anaisbetts Feb 14, 2017
4891763
Merge pull request #59 from kwonoj/refactor-babel
anaisbetts Feb 14, 2017
e035dc0
We don't need this for Babel
anaisbetts Feb 14, 2017
aa0af65
Merge branch 'dependency-aware'
anaisbetts Feb 14, 2017
75b0720
Fix Stylus import resolution
anaisbetts Feb 14, 2017
baf2fba
I hate Sass to death
anaisbetts Feb 14, 2017
f181545
Fix issues around imports
anaisbetts Feb 14, 2017
0755a7d
Did you know that Sass just returns null if the file is import-only?
anaisbetts Feb 14, 2017
5592baa
Add hot-module reloading to TypeScript compiler
anaisbetts Feb 14, 2017
809d32b
Merge oopses
anaisbetts Feb 14, 2017
24061a1
Make hot module reloading opt-outable
anaisbetts Feb 14, 2017
094d24c
Merge pull request #61 from electron/hmr-typescript
anaisbetts Feb 14, 2017
7e1d09f
5.5.0
anaisbetts Feb 14, 2017
0538410
Don't break people who don't use HMR
anaisbetts Feb 14, 2017
4b7a9d0
5.5.1
anaisbetts Feb 14, 2017
8935ae7
creating a default name
mbalex99 Mar 14, 2017
7305342
making sure that tsx hot module is not on by default.
mbalex99 Mar 14, 2017
0f7c368
Babel now generates coverage
anaisbetts Mar 20, 2017
75d738a
Typescript too
anaisbetts Mar 20, 2017
f97ef7c
Merge pull request #65 from electron/istanbul
anaisbetts Mar 20, 2017
bc029a2
5.6.0
anaisbetts Mar 20, 2017
f74dd0b
Use babel-preset-env instead of es2015
anaisbetts Mar 31, 2017
9c3140f
5.7.0-beta.1
anaisbetts Apr 3, 2017
5af3537
5.7.0
anaisbetts Apr 3, 2017
f65922b
Add lint script
malept Jan 9, 2017
e801a07
Add Travis CI config
malept Jan 9, 2017
b3347ca
Fix eslint warnings
malept Jan 9, 2017
39148b9
Added GraphQL compiler
wasd171 Apr 14, 2017
55e3048
Merge pull request #68 from wasd171/add-graphql
anaisbetts Apr 16, 2017
33f6752
Return a GraphQL version
anaisbetts Apr 16, 2017
cbb75c8
5.8.0
anaisbetts Apr 16, 2017
3735706
Added GraphQL line in README
wasd171 Apr 17, 2017
f189b3f
Merge pull request #69 from wasd171/add-graphql
anaisbetts Apr 17, 2017
9f68f74
Merge branch 'tsmodule'
anaisbetts Apr 22, 2017
7166483
Merge branch 'master' of https://github.com/electron/electron-compilers
anaisbetts Apr 22, 2017
7e78688
5.8.1
anaisbetts Apr 22, 2017
2b73b48
Revert "Merge branch 'tsmodule'"
anaisbetts Apr 26, 2017
aac7ccd
5.8.2
anaisbetts Apr 26, 2017
7c3fa43
Revert "Revert "Merge branch 'tsmodule'""
fasterthanlime Apr 26, 2017
0afa663
Use exports.default if _default is not defined, fixes #64 for typescr…
fasterthanlime Apr 25, 2017
9ad6b0e
eschew typeChecker usage in getExportsForFile
fasterthanlime Apr 26, 2017
7babfdc
Merge pull request #71 from fasterthanlime/typescript-faster-get-exports
anaisbetts Apr 26, 2017
cf99f28
5.8.3
anaisbetts Apr 26, 2017
6be1d15
First shot at allowing a babel pass after typescript
fasterthanlime Apr 30, 2017
dcede45
Add sorcery dep
fasterthanlime Apr 30, 2017
8a829aa
Use sorcery to flatten a sourcemap chain, tack them inline to the result
fasterthanlime Apr 30, 2017
9cf9071
Merge pull request #72 from fasterthanlime/ts-plus-babel
anaisbetts May 1, 2017
b599d1f
5.9.0
anaisbetts May 3, 2017
a4cc098
Add support for preloading a plugin without "babel-plugin-" prefix in…
mnaamani May 5, 2017
16dd016
Merge pull request #73 from mnaamani/babel-plugins-without-prefix
anaisbetts May 22, 2017
7570ddf
Fix typos
anaisbetts Jun 5, 2017
e1e3a5d
Merge pull request #54 from malept/travis-ci
malept Dec 17, 2017
5eb10d3
Fix links
malept Dec 17, 2017
9116780
Fix linting errors
malept Dec 17, 2017
38db49c
Update typescript version
kestred Mar 23, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": ["es2016-node5", "react"],
"plugins": ["transform-async-to-generator"],
"sourceMaps": "inline"
}
21 changes: 21 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parser": "babel-eslint",
"rules": {
"strict": 0,
"indent": [
2,
2
],
"semi": [
2,
"always"
],
"no-console": 0
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"extends": "eslint:recommended"
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ node_modules

lib
test-dist
docs
15 changes: 0 additions & 15 deletions .jshintrc

This file was deleted.

9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: node_js
node_js:
- '5'
- '6'
- '7'

script:
- npm run lint
- npm run compile
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## electron-compilers

[![](https://electron-userland.github.io/electron-compilers/docs/badge.svg)](https://electron-userland.github.io/electron-compilers/docs)

electron-compilers are the actual implementations of classes that power
[electron-compile](https://github.com/electron-userland/electron-compile)

For JavaScript:

* JavaScript ES6/ES7 (via Babel)
* TypeScript
* CoffeeScript
* GraphQL

For CSS:

* LESS
* Stylus (with optional nib)

For HTML:

* Jade

For JSON:

* CSON

### Why is this a separate repo?!

Shipping compilers for all of these languages will add a ton of weight to your
download size. Making this a separate top-level module allows you to mark it
as a `devDependency` and not include it in the final app.
21 changes: 21 additions & 0 deletions esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"source": "./src",
"destination": "./docs",
"includes": ["\\.(js|es6)$"],
"excludes": ["\\.config\\.(js|es6)$"],
"access": ["public", "protected"],
"autoPrivate": true,
"unexportIdentifier": false,
"undocumentIdentifier": true,
"builtinExternal": true,
"index": "./README.md",
"package": "./package.json",
"coverage": true,
"includeSource": true,
"title": "electron-compilers",
"plugins": [
{"name": "esdoc-es7-plugin"},
{"name": "esdoc-plugin-async-to-sync"}
],
"lint": true
}
Loading