mirror of https://github.com/embarklabs/embark.git
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];
|
self.context = options.context || [constants.contexts.run, constants.contexts.build];
|
||||||
let Dashboard = require('./dashboard/dashboard.js');
|
let Dashboard = require('./dashboard/dashboard.js');
|
||||||
|
|
||||||
let Engine = require('./core/engine.js');
|
const Engine = require('./core/engine.js');
|
||||||
let engine = new Engine({
|
const engine = new Engine({
|
||||||
env: options.env,
|
env: options.env,
|
||||||
client: options.client,
|
client: options.client,
|
||||||
locale: options.locale,
|
locale: options.locale,
|
||||||
|
@ -158,8 +158,8 @@ class Embark {
|
||||||
build(options) {
|
build(options) {
|
||||||
this.context = options.context || [constants.contexts.build];
|
this.context = options.context || [constants.contexts.build];
|
||||||
|
|
||||||
let Engine = require('./core/engine.js');
|
const Engine = require('./core/engine.js');
|
||||||
let engine = new Engine({
|
const engine = new Engine({
|
||||||
env: options.env,
|
env: options.env,
|
||||||
client: options.client,
|
client: options.client,
|
||||||
locale: options.locale,
|
locale: options.locale,
|
||||||
|
@ -214,8 +214,8 @@ class Embark {
|
||||||
this.context = options.context || [constants.contexts.graph];
|
this.context = options.context || [constants.contexts.graph];
|
||||||
options.onlyCompile = true;
|
options.onlyCompile = true;
|
||||||
|
|
||||||
let Engine = require('./core/engine.js');
|
const Engine = require('./core/engine.js');
|
||||||
let engine = new Engine({
|
const engine = new Engine({
|
||||||
env: options.env,
|
env: options.env,
|
||||||
isDev: this.isDev(options.env),
|
isDev: this.isDev(options.env),
|
||||||
version: this.version,
|
version: this.version,
|
||||||
|
@ -270,8 +270,8 @@ class Embark {
|
||||||
upload(options) {
|
upload(options) {
|
||||||
this.context = options.context || [constants.contexts.upload, constants.contexts.build];
|
this.context = options.context || [constants.contexts.upload, constants.contexts.build];
|
||||||
|
|
||||||
let Engine = require('./core/engine.js');
|
const Engine = require('./core/engine.js');
|
||||||
let engine = new Engine({
|
const engine = new Engine({
|
||||||
env: options.env,
|
env: options.env,
|
||||||
client: options.client,
|
client: options.client,
|
||||||
locale: options.locale,
|
locale: options.locale,
|
||||||
|
|
Loading…
Reference in New Issue