cleanup plugin.js

This commit is contained in:
Atul R 2019-11-08 20:39:08 +01:00
parent 6035b5d038
commit ae81e2aae5
2 changed files with 8 additions and 8 deletions

View File

@ -22,7 +22,7 @@
"build:addon": "cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js build",
"test": "qode ./node_modules/.bin/jest",
"lint:cpp": "clang-format -i --glob=src/cpp/**/*.[h,c]*",
"lint:ts": "tsc --noEmit && eslint './src/**/*.{ts,tsx}' --fix"
"lint:ts": "tsc --noEmit && eslint './src/**/*.{ts,tsx,js,jsx}' --fix"
},
"dependencies": {
"@nodegui/qode": "^1.0.5",

View File

@ -1,11 +1,11 @@
const path = require("path");
const path = require('path');
const NODEGUI_ROOT = path.resolve(__dirname, "..");
const CMAKE_HELPER_DIR = path.resolve(NODEGUI_ROOT, "config");
const CMAKE_HELPER_FILE = path.resolve(CMAKE_HELPER_DIR, "plugin.cmake");
const NODEGUI_ROOT = path.resolve(__dirname, '..');
const CMAKE_HELPER_DIR = path.resolve(NODEGUI_ROOT, 'config');
const CMAKE_HELPER_FILE = path.resolve(CMAKE_HELPER_DIR, 'plugin.cmake');
module.exports = {
CMAKE_HELPER_FILE,
CMAKE_HELPER_DIR,
NODEGUI_ROOT
NODEGUI_ROOT,
};