Skip to content

Commit

Permalink
feat: import compiler from marko-js/x
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Rawlings <mirawlings@ebay.com>
Co-authored-by: Dylan Piercey <dpiercey@ebay.com>
Co-authored-by: Andrew Gliga <agliga@ebay.com>
  • Loading branch information
3 people committed Feb 25, 2020
1 parent ea6736d commit 02670c8
Show file tree
Hide file tree
Showing 750 changed files with 26,519 additions and 10,269 deletions.
1 change: 1 addition & 0 deletions .browserslistrc
@@ -0,0 +1 @@
extends @ebay/browserslist-config
6 changes: 6 additions & 0 deletions .commitlintrc.json
@@ -0,0 +1,6 @@
{
"extends": [
"@commitlint/config-lerna-scopes",
"@commitlint/config-conventional"
]
}
23 changes: 9 additions & 14 deletions .eslintignore
@@ -1,18 +1,13 @@
# minified
*.min.js

# test
*.html.js
*.marko.js
*actual*
*expected*
input.js

# generated
*dist*
*generated*
*.marko.js
*.marko.*.js
*.html.js
.cache/
.nyc_output/
node_modules/
coverage/
*dist/
*generated/
~vdom.skip
coverage

node_modules
**/test/**/input.js
18 changes: 13 additions & 5 deletions .eslintrc.json
@@ -1,11 +1,19 @@
{
"extends": ["eslint:recommended", "prettier"],
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"ecmaFeatures": {
"jsx": false
}
},
"rules": {
"no-console": "off"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"document": true,
"ShadowRoot": true
"es6": true,
"mocha": true
}
}
129 changes: 112 additions & 17 deletions .gitignore
@@ -1,22 +1,117 @@
/work
/build
.idea/
npm-debug.log
### Project ###

*.marko.js
*actual.*
dist

### Node ###

# Logs
logs
*.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Dependency directories
node_modules
*.sublime-workspace

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn
.yarn-integrity
yarn.lock

# dotenv environment variables file
.env
.env.test

### Git ###

# Created by git for backups. To disable backups in Git:
# $ git config --global mergetool.keepBackup false
*.orig

# Created by git when using merge tools for conflicts
*.BACKUP.*
*.BASE.*
*.LOCAL.*
*.REMOTE.*
*_BACKUP_*.txt
*_BASE_*.txt
*_LOCAL_*.txt
*_REMOTE_*.txt

### OS ###

# Linux
*~
.fuse_hidden*
.directory
.Trash-*
.nfs*

# Mac
.DS_Store
.AppleDouble
.LSOverride
._*
Icon

# Windows
*[Tt]humbs*.db*
[Dd]esktop.ini
*.stackdump
*.lnk

### EDITOR ###

# VisualStudioCode
.vscode
coverage
.nvmrc
~*
/.cache
*.marko.js
*.marko.xml.js
/test/generated/
.nyc_output
.history

# JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
*.iml
*.ipr
*.iws
modules.xml
.idea

# SublimeText
*.cache
*.sublime-*
Package Control.*
oscrypto-ca-bundle.crt

# TextMate
*.tmproj
*.tmproject
tmtags

# Vim
*.swp
/**/dist/
/**/test-dist/
/**/test-generated/
.vs/
*.vim
.netrwhist
3 changes: 1 addition & 2 deletions .huskyrc
@@ -1,7 +1,6 @@

{
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
}
}
2 changes: 1 addition & 1 deletion .lintstagedrc
@@ -1,4 +1,4 @@
{
"*.{json,css,md}": ["prettier --write", "git add"],
"*.js": ["eslint", "prettier --write", "git add"]
}
}
18 changes: 0 additions & 18 deletions .npmignore

This file was deleted.

16 changes: 16 additions & 0 deletions .nycrc
@@ -0,0 +1,16 @@
{
"all": true,
"cache": true,
"include": [
"packages/*/src/**/*.js"
],
"instrument": false,
"reporter": [
"lcov",
"text-summary"
],
"require": [
"@babel/register"
],
"sourceMap": false
}
11 changes: 7 additions & 4 deletions .prettierignore
Expand Up @@ -7,17 +7,20 @@
input.*

# generated
/**/dist/
/**/test-dist/
/**/test-generated/
dist/
*.marko.js
*.html.js
*.xml.js
*.generated.js
.nyc_output
.cache/
coverage
~*

# controlled by npm's formatter
package-lock.json
package.json
package.json

# controlled by lerna
CHANGELOG.md
lerna.json
6 changes: 2 additions & 4 deletions .travis.yml
@@ -1,10 +1,8 @@
sudo: false
node_js:
- "8"
- "10"
- "12"
language: node_js
before_install: "npm i -g npm@latest"
install: "npm ci"
script: "npm run test-ci"
after_success: "npm run codecov"
script: "npm run ci:test"
after_success: "npm run ci:codecov"
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright 2016 eBay Inc
Copyright 2020 eBay Inc. and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
35 changes: 35 additions & 0 deletions babel.config.js
@@ -0,0 +1,35 @@
module.exports = api => ({
retainLines: true,
presets: [
[
"@babel/env",
{
loose: true,
targets: {
node: "8"
}
}
]
],
plugins: [
"@babel/transform-runtime",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread"
],
overrides: [
{
test: "./packages/*/src/**/*",
plugins: api.env("production")
? [
["babel-plugin-minprops", { matchPrefix: "___", context: "marko" }],
"./scripts/babel-plugin-marko-debug"
]
: []
}
],
env: {
test: {
plugins: ["babel-plugin-istanbul"]
}
}
});
8 changes: 0 additions & 8 deletions benchmark/.eslintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion benchmark/.gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions benchmark/patch-module.js

This file was deleted.

2 changes: 0 additions & 2 deletions benchmark/size/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions benchmark/size/inferno/client.jsx

This file was deleted.

0 comments on commit 02670c8

Please sign in to comment.