Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jul 16, 2020
0 parents commit d1f8bd0
Show file tree
Hide file tree
Showing 8 changed files with 5,884 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* text=auto

# don't diff machine generated files
dist/ -diff
package-lock.json -diff
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# OS metadata
.DS_Store
Thumbs.db

# Node
node_modules

# TypeScript
*.tsbuildinfo

# Build directories
dist
54 changes: 54 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
The MIT License (MIT)

Copyright (c) 2020 Amin Yahyaabadi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

This repository might include code from the following projects, which have their own licenses:
- [atom-ide-ui](https://github.com/facebookarchive/atom-ide-ui/blob/master/LICENSE):
> BSD License
>
> For atom-ide-ui software
>
> Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
>
> Redistribution and use in source and binary forms, with or without modification,
> are permitted provided that the following conditions are met:
>
> * Redistributions of source code must retain the above copyright notice, this
> list of conditions and the following disclaimer.
>
> * Redistributions in binary form must reproduce the above copyright notice,
> this list of conditions and the following disclaimer in the documentation
> and/or other materials provided with the distribution.
>
> * Neither the name Facebook nor the names of its contributors may be used to
> endorse or promote products derived from this software without specific
> prior written permission.
>
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
> ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
> WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
> DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
> ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
> (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
> ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
> (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
> SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# babel-preset-atomic

This includes the babel configuration used for JavaScript packages in atom-ide-community.
48 changes: 48 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
let presets = [
[
"@babel/preset-env",
{
targets: {
electron: 5,
},
},
],
"@babel/preset-react",
"@babel/preset-flow",
];

let plugins = [
"@babel/plugin-proposal-function-bind",

"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-logical-assignment-operators",
["@babel/plugin-proposal-optional-chaining", { loose: false }],
["@babel/plugin-proposal-pipeline-operator", { proposal: "minimal" }],
["@babel/plugin-proposal-nullish-coalescing-operator", { loose: false }],
"@babel/plugin-proposal-do-expressions",

["@babel/plugin-proposal-decorators", { legacy: true }],
"@babel/plugin-proposal-function-sent",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-proposal-numeric-separator",
"@babel/plugin-proposal-throw-expressions",

"@babel/plugin-syntax-import-meta",
["@babel/plugin-proposal-class-properties", { loose: true }],
"@babel/plugin-proposal-json-strings",
];

if (process.env.BABEL_ENV === "development") {
// When without Rollup
plugins.push(...[
"@babel/plugin-transform-modules-commonjs",
"@babel/plugin-syntax-dynamic-import",
]);
}

module.exports = {
presets: presets,
plugins: plugins,
exclude: "node_modules/**",
sourceMap: "inline",
};
52 changes: 52 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// automatically generated from babel.config.js by
// replacing `"(@babel.*)",` with `require("$1"),`
// replacing `module.exports = {(\s\S*)}` with `module.exports = () => {return $1}`

let presets = [
[
require("@babel/preset-env"),
{
targets: {
electron: 5,
},
},
],
require("@babel/preset-react"),
require("@babel/preset-flow"),
];

let plugins = [
require("@babel/plugin-proposal-function-bind"),

require("@babel/plugin-proposal-export-default-from"),
require("@babel/plugin-proposal-logical-assignment-operators"),
[require("@babel/plugin-proposal-optional-chaining"), { loose: false }],
[require("@babel/plugin-proposal-pipeline-operator"), { proposal: "minimal" }],
[require("@babel/plugin-proposal-nullish-coalescing-operator"), { loose: false }],
require("@babel/plugin-proposal-do-expressions"),

[require("@babel/plugin-proposal-decorators"), { legacy: true }],
require("@babel/plugin-proposal-function-sent"),
require("@babel/plugin-proposal-export-namespace-from"),
require("@babel/plugin-proposal-numeric-separator"),
require("@babel/plugin-proposal-throw-expressions"),

require("@babel/plugin-syntax-import-meta"),
[require("@babel/plugin-proposal-class-properties"), { loose: true }],
require("@babel/plugin-proposal-json-strings"),
];

if (process.env.BABEL_ENV === "development") {
// When without Rollup
plugins.push(...[
require("@babel/plugin-transform-modules-commonjs"),
require("@babel/plugin-syntax-dynamic-import"),
]);
}

module.exports = () => {return {
presets: presets,
plugins: plugins,
exclude: "node_modules/**",
sourceMap: "inline",
};}
Loading

0 comments on commit d1f8bd0

Please sign in to comment.