diff --git a/.babelrc b/.babelrc new file mode 100644 index 00000000000..5c5ae7d7630 --- /dev/null +++ b/.babelrc @@ -0,0 +1,43 @@ +{ + env: { + development: { + plugins: [ + [ + "transform-async-to-module-method", + { + module: "bluebird-lst-c", + method: "coroutine" + } + ], + "transform-es2015-parameters", + "transform-es2015-spread", + "transform-es2015-destructuring", + "array-includes", + [ + "transform-inline-imports-commonjs", + { + excludeModules: ["path"] + } + ], + ], + }, + test: { + sourceMaps: "inline", + plugins: [ + [ + "transform-async-to-module-method", + { + module: "bluebird-lst-c", + method: "coroutine" + } + ], + [ + "transform-inline-imports-commonjs", + { + excludeModules: ["path"] + } + ], + ] + } + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 6cd89979bf8..8f131770e95 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,31 @@ node_modules/ *.log -out/ + +#**/out/**/* +#!**/*js.snap + dist/ + /.idea/compiler.xml /.idea/encodings.xml -/.idea/copyright/profiles_settings.xml /.idea/workspace.xml +/.idea/copyright/ /.idea/deployment.xml +/.idea/shelf/ + +/docs/.idea/ + /typings/browser/ /typings/browser.d.ts /typings/main.d.ts + .DS_Store -.idea/shelf/ + /test/typings/electron-builder.d.ts -/test/typings/electron-auto-updater.d.ts \ No newline at end of file +/test/typings/electron-auto-updater.d.ts + +/nsis-auto-updater/out/ +/out/ +# to not exclude .js.snap (jest snapshots) +/test/out/**/*.js +/test/out/**/*.map \ No newline at end of file diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml index d52229a2c3d..1038133a841 100644 --- a/.idea/codeStyleSettings.xml +++ b/.idea/codeStyleSettings.xml @@ -20,8 +20,12 @@