use const instead of let
This commit is contained in:
parent
72e24f5e1b
commit
6e424f36b0
16
lib/index.js
16
lib/index.js
|
@ -67,8 +67,8 @@ class Embark {
|
|||
self.context = options.context || [constants.contexts.run, constants.contexts.build];
|
||||
let Dashboard = require('./dashboard/dashboard.js');
|
||||
|
||||
let Engine = require('./core/engine.js');
|
||||
let engine = new Engine({
|
||||
const Engine = require('./core/engine.js');
|
||||
const engine = new Engine({
|
||||
env: options.env,
|
||||
client: options.client,
|
||||
locale: options.locale,
|
||||
|
@ -158,8 +158,8 @@ class Embark {
|
|||
build(options) {
|
||||
this.context = options.context || [constants.contexts.build];
|
||||
|
||||
let Engine = require('./core/engine.js');
|
||||
let engine = new Engine({
|
||||
const Engine = require('./core/engine.js');
|
||||
const engine = new Engine({
|
||||
env: options.env,
|
||||
client: options.client,
|
||||
locale: options.locale,
|
||||
|
@ -214,8 +214,8 @@ class Embark {
|
|||
this.context = options.context || [constants.contexts.graph];
|
||||
options.onlyCompile = true;
|
||||
|
||||
let Engine = require('./core/engine.js');
|
||||
let engine = new Engine({
|
||||
const Engine = require('./core/engine.js');
|
||||
const engine = new Engine({
|
||||
env: options.env,
|
||||
isDev: this.isDev(options.env),
|
||||
version: this.version,
|
||||
|
@ -270,8 +270,8 @@ class Embark {
|
|||
upload(options) {
|
||||
this.context = options.context || [constants.contexts.upload, constants.contexts.build];
|
||||
|
||||
let Engine = require('./core/engine.js');
|
||||
let engine = new Engine({
|
||||
const Engine = require('./core/engine.js');
|
||||
const engine = new Engine({
|
||||
env: options.env,
|
||||
client: options.client,
|
||||
locale: options.locale,
|
||||
|
|
Loading…
Reference in New Issue