CircleCI project setup (#138)
This commit is contained in:
1 parent
f5ec1b1b4c
commit
c6996dd530
33 files changed
+3091
-432
No files matched your search
@@ -0,0 +1 @@
|
||||
yarn.lock
|
||||
@@ -0,0 +1,37 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directory
|
||||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
|
||||
node_modules
|
||||
*.un~
|
||||
yarn.lock
|
||||
src
|
||||
flow-typed
|
||||
coverage
|
||||
decls
|
||||
examples
|
||||
|
||||
# tests
|
||||
__tests__
|
||||
@@ -0,0 +1,26 @@
|
||||
const r = require(`./resolver`);
|
||||
|
||||
function preset(context, options = {}) {
|
||||
const { debug = false, nodeVersion = `10.14.0` } = options;
|
||||
const { NODE_ENV, BABEL_ENV } = process.env;
|
||||
|
||||
const nodeConfig = {
|
||||
corejs: 3,
|
||||
useBuiltIns: `entry`,
|
||||
targets: {
|
||||
node: nodeVersion,
|
||||
},
|
||||
};
|
||||
|
||||
return {
|
||||
presets: [r(`@babel/preset-env`)],
|
||||
plugins: [
|
||||
r(`@babel/plugin-proposal-class-properties`),
|
||||
r(`@babel/plugin-transform-classes`),
|
||||
r(`@babel/plugin-transform-instanceof`),
|
||||
r(`@babel/plugin-transform-runtime`),
|
||||
].filter(Boolean),
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = preset;
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "babel-preset-medusa-package",
|
||||
"version": "1.0.0",
|
||||
"author": "Sebastian Rindom <sebastian@mrbltech.com>",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/medusajs/medusa.git",
|
||||
"directory": "packages/babel-preset-medusa-package"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.12.1",
|
||||
"@babel/plugin-transform-classes": "^7.12.1",
|
||||
"@babel/plugin-transform-instanceof": "^7.12.1",
|
||||
"@babel/plugin-transform-runtime": "^7.12.1",
|
||||
"@babel/preset-env": "^7.12.7",
|
||||
"core-js": "^3.7.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.11.6"
|
||||
},
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=10.14.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
const r = m => require.resolve(m)
|
||||
|
||||
module.exports = r;
|
||||
Reference in new issue
Block a user