Skip to content

Commit 02670c8

Browse files
mlrawlingsDylanPierceyagliga
committed
feat: import compiler from marko-js/x
Co-authored-by: Michael Rawlings <[email protected]> Co-authored-by: Dylan Piercey <[email protected]> Co-authored-by: Andrew Gliga <[email protected]>
1 parent ea6736d commit 02670c8

File tree

750 files changed

+26519
-10269
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

750 files changed

+26519
-10269
lines changed

.browserslistrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extends @ebay/browserslist-config

.commitlintrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-lerna-scopes",
4+
"@commitlint/config-conventional"
5+
]
6+
}

.eslintignore

+9-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
# minified
21
*.min.js
3-
4-
# test
2+
*.html.js
3+
*.marko.js
54
*actual*
65
*expected*
7-
input.js
8-
9-
# generated
10-
*dist*
11-
*generated*
12-
*.marko.js
13-
*.marko.*.js
14-
*.html.js
6+
.cache/
7+
.nyc_output/
8+
node_modules/
9+
coverage/
10+
*dist/
11+
*generated/
1512
~vdom.skip
16-
coverage
17-
18-
node_modules
13+
**/test/**/input.js

.eslintrc.json

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
{
22
"extends": ["eslint:recommended", "prettier"],
3+
"parserOptions": {
4+
"ecmaVersion": 2019,
5+
"sourceType": "module",
6+
"ecmaFeatures": {
7+
"jsx": false
8+
}
9+
},
10+
"rules": {
11+
"no-console": "off"
12+
},
313
"env": {
14+
"browser": true,
415
"node": true,
5-
"es6": true
6-
},
7-
"globals": {
8-
"document": true,
9-
"ShadowRoot": true
16+
"es6": true,
17+
"mocha": true
1018
}
1119
}

.gitignore

+112-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,117 @@
1-
/work
2-
/build
3-
.idea/
4-
npm-debug.log
1+
### Project ###
2+
3+
*.marko.js
4+
*actual.*
5+
dist
6+
7+
### Node ###
8+
9+
# Logs
10+
logs
11+
*.log*
12+
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15+
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
*.pid.lock
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Dependency directories
530
node_modules
6-
*.sublime-workspace
31+
32+
# Optional npm cache directory
33+
.npm
34+
35+
# Optional eslint cache
36+
.eslintcache
37+
38+
# Optional REPL history
39+
.node_repl_history
40+
41+
# Output of 'npm pack'
42+
*.tgz
43+
44+
# Yarn
45+
.yarn-integrity
46+
yarn.lock
47+
48+
# dotenv environment variables file
49+
.env
50+
.env.test
51+
52+
### Git ###
53+
54+
# Created by git for backups. To disable backups in Git:
55+
# $ git config --global mergetool.keepBackup false
756
*.orig
57+
58+
# Created by git when using merge tools for conflicts
59+
*.BACKUP.*
60+
*.BASE.*
61+
*.LOCAL.*
62+
*.REMOTE.*
63+
*_BACKUP_*.txt
64+
*_BASE_*.txt
65+
*_LOCAL_*.txt
66+
*_REMOTE_*.txt
67+
68+
### OS ###
69+
70+
# Linux
71+
*~
72+
.fuse_hidden*
73+
.directory
74+
.Trash-*
75+
.nfs*
76+
77+
# Mac
878
.DS_Store
79+
.AppleDouble
80+
.LSOverride
81+
._*
82+
Icon
83+
84+
# Windows
85+
*[Tt]humbs*.db*
86+
[Dd]esktop.ini
87+
*.stackdump
88+
*.lnk
89+
90+
### EDITOR ###
91+
92+
# VisualStudioCode
993
.vscode
10-
coverage
11-
.nvmrc
12-
~*
13-
/.cache
14-
*.marko.js
15-
*.marko.xml.js
16-
/test/generated/
17-
.nyc_output
94+
.history
95+
96+
# JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
97+
*.iml
98+
*.ipr
99+
*.iws
100+
modules.xml
101+
.idea
102+
103+
# SublimeText
104+
*.cache
105+
*.sublime-*
106+
Package Control.*
107+
oscrypto-ca-bundle.crt
108+
109+
# TextMate
110+
*.tmproj
111+
*.tmproject
112+
tmtags
113+
114+
# Vim
18115
*.swp
19-
/**/dist/
20-
/**/test-dist/
21-
/**/test-generated/
22-
.vs/
116+
*.vim
117+
.netrwhist

.huskyrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
{
32
"hooks": {
43
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
54
"pre-commit": "lint-staged"
65
}
7-
}
6+
}

.lintstagedrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"*.{json,css,md}": ["prettier --write", "git add"],
33
"*.js": ["eslint", "prettier --write", "git add"]
4-
}
4+
}

.npmignore

-18
This file was deleted.

.nycrc

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"all": true,
3+
"cache": true,
4+
"include": [
5+
"packages/*/src/**/*.js"
6+
],
7+
"instrument": false,
8+
"reporter": [
9+
"lcov",
10+
"text-summary"
11+
],
12+
"require": [
13+
"@babel/register"
14+
],
15+
"sourceMap": false
16+
}

.prettierignore

+7-4
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@
77
input.*
88

99
# generated
10-
/**/dist/
11-
/**/test-dist/
12-
/**/test-generated/
10+
dist/
1311
*.marko.js
1412
*.html.js
1513
*.xml.js
1614
*.generated.js
1715
.nyc_output
16+
.cache/
1817
coverage
1918
~*
2019

2120
# controlled by npm's formatter
2221
package-lock.json
23-
package.json
22+
package.json
23+
24+
# controlled by lerna
25+
CHANGELOG.md
26+
lerna.json

.travis.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
sudo: false
22
node_js:
3-
- "8"
43
- "10"
54
- "12"
65
language: node_js
7-
before_install: "npm i -g npm@latest"
86
install: "npm ci"
9-
script: "npm run test-ci"
10-
after_success: "npm run codecov"
7+
script: "npm run ci:test"
8+
after_success: "npm run ci:codecov"

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright 2016 eBay Inc
3+
Copyright 2020 eBay Inc. and contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

babel.config.js

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
module.exports = api => ({
2+
retainLines: true,
3+
presets: [
4+
[
5+
"@babel/env",
6+
{
7+
loose: true,
8+
targets: {
9+
node: "8"
10+
}
11+
}
12+
]
13+
],
14+
plugins: [
15+
"@babel/transform-runtime",
16+
"@babel/plugin-proposal-class-properties",
17+
"@babel/plugin-proposal-object-rest-spread"
18+
],
19+
overrides: [
20+
{
21+
test: "./packages/*/src/**/*",
22+
plugins: api.env("production")
23+
? [
24+
["babel-plugin-minprops", { matchPrefix: "___", context: "marko" }],
25+
"./scripts/babel-plugin-marko-debug"
26+
]
27+
: []
28+
}
29+
],
30+
env: {
31+
test: {
32+
plugins: ["babel-plugin-istanbul"]
33+
}
34+
}
35+
});

benchmark/.eslintrc.json

-8
This file was deleted.

benchmark/.gitignore

-1
This file was deleted.

benchmark/patch-module.js

-21
This file was deleted.

benchmark/size/.gitignore

-2
This file was deleted.

benchmark/size/inferno/client.jsx

-6
This file was deleted.

0 commit comments

Comments
 (0)