This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: add build step to bundle client-side assets (#588)
* Chore: add client-side assets build step * Organize all assets in assets/ dir * Switch Demo from Orion to CodeMirror * Bundles parser.js and demo.js styles using Webpack * Remove unused dependency * Update .eslintignore * change class name for consistency * Fix Travis build * Always clear text markers * Disable eslint-plugin-node rules for all JS files
- Loading branch information
1 parent
d36144e
commit fb130f8
Showing
237 changed files
with
6,560 additions
and
90,704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-react", | ||
["@babel/preset-env", { | ||
"modules": false, | ||
"targets": { | ||
"browsers": ["last 3 versions"] | ||
} | ||
}] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
js/app/eslint.js | ||
js/app/espree.js | ||
js/app/parser/index.built.js | ||
node_modules | ||
vendor | ||
_site | ||
assets/build | ||
src/js/eslint.js | ||
src/js/espree.js | ||
!.*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
"use strict"; | ||
|
||
module.exports = { | ||
root: true, | ||
extends: ["eslint"], | ||
parserOptions: { | ||
ecmaVersion: 2019 | ||
}, | ||
rules: { | ||
|
||
// Disable eslint-plugin-node rules from eslint-config-eslint | ||
"no-process-exit": "off", | ||
"node/no-deprecated-api": "off", | ||
"node/no-extraneous-require": "off", | ||
"node/no-missing-require": "off", | ||
"node/no-unpublished-bin": "off", | ||
"node/no-unpublished-require": "off", | ||
"node/no-unsupported-features/es-builtins": "off", | ||
"node/no-unsupported-features/es-syntax": "off", | ||
"node/no-unsupported-features/node-builtins": "off", | ||
"node/process-exit-as-throw": "off", | ||
"node/shebang": "off", | ||
"node/no-extraneous-import": "off", | ||
"node/no-missing-import": "off", | ||
"node/no-unpublished-import": "off", | ||
|
||
// Disable rules that the codebase doesn't currently follow. | ||
"require-jsdoc": "off" | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["src/js/**/*.{js,jsx}"], | ||
plugins: ["react", "jsx-a11y"], | ||
extends: ["plugin:react/recommended", "plugin:jsx-a11y/recommended"], | ||
parserOptions: { | ||
sourceType: "module", | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
}, | ||
settings: { | ||
react: { | ||
version: "15.0.1" | ||
} | ||
}, | ||
rules: { | ||
|
||
// Disable rules that the codebase doesn't currently follow. | ||
// It might be a good idea to enable these in the future. | ||
"jsx-a11y/no-onchange": "off", | ||
"react/prop-types": "off" | ||
} | ||
}, | ||
{ | ||
files: ["assets/js/*.js"], | ||
parserOptions: { | ||
ecmaVersion: 5, | ||
sourceType: "script" | ||
} | ||
}, | ||
{ | ||
files: ["assets/js/*.js", "src/js/**/*.{js,jsx}"], | ||
env: { | ||
browser: true, | ||
node: false | ||
}, | ||
rules: { | ||
|
||
// Disable rules that assume an ES6 environment. | ||
// This is not a complete list. More rules should be added as problems are encountered. | ||
"no-var": "off", | ||
"object-shorthand": "off", | ||
"prefer-arrow-callback": "off", | ||
"prefer-rest-params": "off", | ||
"prefer-template": "off" | ||
} | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
node_modules/ | ||
_site/ | ||
assets/build | ||
Gemfile.lock | ||
.jekyll-metadata | ||
npm-debug.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.