Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ assets/**
src/assets/**
docs/**
node_modules/**
src/**/spec.js
9 changes: 0 additions & 9 deletions .eslintrc

This file was deleted.

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,9 @@ $RECYCLE.BIN
/tmp
*.tmp
*.gz

# Cache
.eslintcache

# Doc folder
docs
3 changes: 2 additions & 1 deletion .tsconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@

"include": [
"./src/**/*.ts",
"./src/**/*.js"
"./src/**/*.js",
"ts-definitions/**/*.ts"
],

"files": [
Expand Down
4 changes: 2 additions & 2 deletions build/build-tsconfig.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/*!
* V4Fire Core
* https://github.com/V4Fire/Core
Expand All @@ -8,4 +6,6 @@
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/

'use strict';

require('./tsconfig')();
4 changes: 2 additions & 2 deletions build/build.gulp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/*!
* V4Fire Core
* https://github.com/V4Fire/Core
Expand All @@ -8,6 +6,8 @@
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/

'use strict';

/**
* Registers gulp tasks to build the project
*
Expand Down
6 changes: 4 additions & 2 deletions build/const.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/*!
* V4Fire Core
* https://github.com/V4Fire/Core
Expand All @@ -8,6 +6,8 @@
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/

'use strict';

const
{config: {projectName, dependencies}} = require('@pzlr/build-core');

Expand All @@ -26,6 +26,7 @@ exports.depsRgxpStr = [projectName]

/**
* RegExp to detect file paths that are registered as dependencies within ".pzlrrc"
*
* @type {RegExp}
*
* @example
Expand Down Expand Up @@ -56,6 +57,7 @@ exports.isLayerDep = new RegExp(

/**
* RegExp to detect file paths that aren't registered as dependencies within ".pzlrrc"
*
* @type {RegExp}
*
* @example
Expand Down
4 changes: 2 additions & 2 deletions build/doc.gulp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/*!
* V4Fire Core
* https://github.com/V4Fire/Core
Expand All @@ -8,6 +6,8 @@
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/

'use strict';

/**
* Registers gulp tasks to generate HTML documentation based on the project
*
Expand Down
6 changes: 3 additions & 3 deletions build/helpers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/*!
* V4Fire Core
* https://github.com/V4Fire/Core
Expand All @@ -8,6 +6,8 @@
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/

'use strict';

const
fs = require('fs'),
path = require('upath');
Expand All @@ -27,7 +27,7 @@ exports.getProjectInfo = function getProjectInfo() {

/**
* Returns the project disclaimer
* @param {boolean=} [withVersion]
* @param {boolean} [withVersion]
*/
exports.getHead = function getHead(withVersion) {
return fs
Expand Down
6 changes: 3 additions & 3 deletions build/include.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/*!
* V4Fire Core
* https://github.com/V4Fire/Core
Expand All @@ -8,6 +6,8 @@
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/

'use strict';

const
{config: {superRgxp}} = require('@pzlr/build-core');

Expand All @@ -24,7 +24,7 @@ const
* source?: boolean
* }}
*/
// eslint-disable-next-line no-unused-vars

const IncludeOptions = {};

/**
Expand Down
4 changes: 2 additions & 2 deletions build/other.gulp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/*!
* V4Fire Core
* https://github.com/V4Fire/Core
Expand All @@ -8,6 +6,8 @@
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/

'use strict';

/**
* Registers some helper gulp tasks
*
Expand Down
6 changes: 4 additions & 2 deletions build/tsconfig.gulp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/*!
* V4Fire Core
* https://github.com/V4Fire/Core
Expand All @@ -8,12 +6,16 @@
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/

'use strict';

/**
* Registers a gulp task to generate `tsconfig.json` based on the `.tsconfig` file.
* The task brings a feature to extend one `tsconfig.json` from another from a different project.
* Also, this task generates URL-s for the `paths` options of the config.
* Be sure that you run this task before trying to compile TS files.
*
* @param {import('gulp').Gulp} gulp
*
* @example
* ```bash
* npx gulp build:tsconfig
Expand Down
10 changes: 5 additions & 5 deletions build/tsconfig.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// @ts-check
/// <reference path="../index.d.ts"/>

'use strict';

/*!
* V4Fire Core
* https://github.com/V4Fire/Core
Expand All @@ -11,6 +6,11 @@
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/

// @ts-check
/// <reference path="../index.d.ts"/>

'use strict';

require('../lib/core');

/**
Expand Down
8 changes: 4 additions & 4 deletions build/tsnode.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// @ts-check

'use strict';

/*!
* V4Fire Core
* https://github.com/V4Fire/Core
Expand All @@ -10,6 +6,10 @@
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/

// @ts-check

'use strict';

const
tsNode = require('ts-node'),
tsPaths = require('tsconfig-paths');
Expand Down
4 changes: 2 additions & 2 deletions build/wrap.gulp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/*!
* V4Fire Core
* https://github.com/V4Fire/Core
Expand All @@ -8,6 +6,8 @@
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/

'use strict';

let gulpInitialized;

/**
Expand Down
28 changes: 14 additions & 14 deletions config/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/*!
* V4Fire Core
* https://github.com/V4Fire/Core
Expand All @@ -8,6 +6,8 @@
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/

'use strict';

require('../lib/core');

const
Expand All @@ -32,21 +32,21 @@ class Config {
this.src = {};
this.envs = {};

/** @type {!Array<string>} */
/** @type {Array<string>} */
this.roots = [];

/** @type {!Array<string>} */
/** @type {Array<string>} */
this.client = [];

/** @type {!Array<string>} */
/** @type {Array<string>} */
this.server = [];
}

/**
* Wrapper for `Object.mixin`
*
* @param {...?} args
* @returns {!Object}
* @returns {object}
*/
extend(...args) {
return Object.mixin({
Expand All @@ -60,8 +60,8 @@ class Config {
* Expands the specified config to a plain object.
* Usually, this method is used to hash the config object.
*
* @param {Object=} [config]
* @returns {!Object}
* @param {object} [config]
* @returns {object}
*/
expand(config = this) {
const blacklist = Object.assign(Object.create(null), {
Expand Down Expand Up @@ -107,8 +107,8 @@ class Config {
/**
* Returns a hash string of the config
*
* @param {Object=} [data] - extra data to hash
* @param {string=} [alg] - hash algorithm
* @param {object} [data] - extra data to hash
* @param {string} [alg] - hash algorithm
* @param {number} [length] - hash length
* @returns {string}
*/
Expand All @@ -128,11 +128,11 @@ class Config {
* Creates a config object with the specified options and returns it
*
* @template T
* @param {!Array<string>} dirs - list of initial directories ([0] - dirname, [1+] - src fields)
* @param {Object=} [envs] - map of environment variables
* @param {(string|Object)=} [mod] - url for a config modifier or object modifier (env configs)
* @param {Array<string>} dirs - list of initial directories ([0] - dirname, [1+] - src fields)
* @param {object} [envs] - map of environment variables
* @param {(string|object)} [mod] - url for a config modifier or object modifier (env configs)
* @param {T} opts
* @returns {!Object}
* @returns {object}
*/
createConfig({dirs, envs, mod}, opts) {
const
Expand Down
Loading