Skip to content

Commit

Permalink
refact(NA): move kbn interpretor to a trully package.
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed Nov 22, 2018
1 parent 7ab6dcc commit 51bcf08
Show file tree
Hide file tree
Showing 51 changed files with 15 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ bower_components
/x-pack/coverage
/x-pack/build
/x-pack/plugins/**/__tests__/fixtures/**
/packages/kbn-interpreter/common/lib/grammar.js
/packages/kbn-interpreter/plugin
/packages/kbn-interpreter/src/common/lib/grammar.js
/x-pack/plugins/canvas/canvas_plugin
/x-pack/plugins/canvas/canvas_plugin_src/lib/flot-charts
**/*.js.snap
Expand Down
4 changes: 4 additions & 0 deletions packages/kbn-interpreter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
common
plugin
public
server
7 changes: 6 additions & 1 deletion packages/kbn-interpreter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
"name": "@kbn/interpreter",
"version": "1.0.0",
"license": "Apache-2.0",
"main": "./index.js",
"scripts": {
"build": "node tasks/build.js",
"build": "babel src --out-dir . --ignore 'src/plugin/**/*' && node tasks/build.js",
"canvas:peg": "pegjs common/lib/grammar.peg",
"kbn:bootstrap": "yarn build"
},
"devDependencies": {
"@kbn/babel-preset": "1.0.0",
"babel-cli": "^6.26.0"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/kbn-interpreter/tasks/webpack.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

const path = require('path');

const sourceDir = path.resolve(__dirname, '../plugin_src');
const sourceDir = path.resolve(__dirname, '../src/plugin');
const buildDir = path.resolve(__dirname, '../plugin');

module.exports = {
Expand Down
6 changes: 3 additions & 3 deletions src/setup_node_env/babel_register/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ var ignore = [
// is `x-pack` and `b` is not `node_modules`
/\/node_modules\/(?!x-pack\/(?!node_modules)([^\/]+))([^\/]+\/[^\/]+)/,

// ignore paths matching `/@kbn-interpreter/plugin/{a}/{b}` unless
// `a` is `functions` and `b` is `common`
/\/@kbn-interpreter\/plugin\/(?!functions\/common)([^\/]+\/[^\/]+)/,
// ignore paths matching `/kbn-interpreter/{a}, unless `a`
// is common
/\/kbn-interpreter\//,

// ignore paths matching `/canvas/canvas_plugin/{a}/{b}` unless
// `a` is `functions` and `b` is `server`
Expand Down

0 comments on commit 51bcf08

Please sign in to comment.