Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
888f8e1
feat: add project config
romanenkoandrew Sep 10, 2020
96e49aa
fix: project config
romanenkoandrew Sep 10, 2020
141c729
feat: create component schedule-table
artem-antonov-web Sep 10, 2020
07455d5
feat: add services without saga
artem-antonov-web Sep 10, 2020
fa0b194
fix: routers and types for action
romanenkoandrew Sep 11, 2020
bbcc1ed
fix: saga & add example
romanenkoandrew Sep 12, 2020
5ced014
Merge pull request #1 from romanenkoandrew/fix-project-config
romanenkoandrew Sep 12, 2020
830a5e9
Merge branch 'develop' into services
artem-antonov-web Sep 12, 2020
73e4ae8
feat: make services with saga
artem-antonov-web Sep 12, 2020
53f2587
Merge branch 'develop' into schedule-table
artem-antonov-web Sep 13, 2020
14e68c6
refactor: correct file with selectors
artem-antonov-web Sep 13, 2020
f30a994
Merge pull request #2 from romanenkoandrew/services
artem-antonov-web Sep 13, 2020
3e975ee
Merge branch 'develop' into schedule-table
artem-antonov-web Sep 13, 2020
96f56d9
init: modal
adelinyshka Sep 13, 2020
7ebd13c
feat: add interaction to backend, filtering, sorting, search
artem-antonov-web Sep 13, 2020
f1dc596
feat: add test backend and select of rows
artem-antonov-web Sep 14, 2020
3f60c4c
Merge pull request #4 from romanenkoandrew/schedule-table
artem-antonov-web Sep 14, 2020
dbb69fb
feat: add base structre calendar
K2-m5 Sep 14, 2020
f3d6908
feat: add sort columns implementation
artem-antonov-web Sep 15, 2020
a108dcf
refactor: correct implementation of selection rows
artem-antonov-web Sep 15, 2020
d73cf79
feat: add folding rows
artem-antonov-web Sep 15, 2020
4badb6d
add modal for student + styles in WrapperModalStudent
Sep 16, 2020
7be8218
feat: add modal for mentor + styles && add images & fonts
Sep 16, 2020
9815234
feat: id: string;
artem-antonov-web Sep 16, 2020
c64163f
feat: header
natein Sep 16, 2020
3acd51f
feat: header
natein Sep 16, 2020
b3203b1
feat: header
natein Sep 16, 2020
0ab5647
feat: header
natein Sep 16, 2020
10712e7
feat: header
natein Sep 16, 2020
d4c0ddc
feat: header
natein Sep 16, 2020
bad5bc8
feat: header
natein Sep 16, 2020
0598d13
feat: feat calendar with ant
K2-m5 Sep 17, 2020
4952928
fix: remove assets to public
natein Sep 17, 2020
ecfc283
fix: correct mistakes
natein Sep 17, 2020
e101146
fix: correct paths
natein Sep 17, 2020
dcb0afb
fix: delete unused file
natein Sep 17, 2020
c471967
fix: delete unused file
natein Sep 17, 2020
1c103c9
fix: delete unused file
natein Sep 17, 2020
3708b4d
fix: delete unused file
natein Sep 17, 2020
aab7f39
feat: add header to router
natein Sep 17, 2020
36019ec
Merge pull request #5 from romanenkoandrew/header2.0
natein Sep 17, 2020
005437e
refactor: correct interface for event
artem-antonov-web Sep 17, 2020
bbdf332
Merge branch 'develop' into schedule-table-imlementation
artem-antonov-web Sep 17, 2020
7d21248
feat: add basic function and styles
K2-m5 Sep 18, 2020
91cbca6
fix: change font
Sep 18, 2020
e5bf9e0
Merge branch 'develop' into modal
Sep 18, 2020
18bd517
Merge pull request #3 from romanenkoandrew/modal
adelinyshka Sep 18, 2020
4c88953
feat: add the ability to edit text fields
artem-antonov-web Sep 18, 2020
cfad45f
feat: add the ability to add / remove types
artem-antonov-web Sep 19, 2020
753710f
feat: add logic for student modal
romanenkoandrew Sep 19, 2020
f488fde
feat: add the ability to edit dates, training hours, task types
artem-antonov-web Sep 19, 2020
a5d1609
Merge branch 'develop' into schedule-table-imlementation
artem-antonov-web Sep 19, 2020
04a9ae4
feat: add header and basic logic
K2-m5 Sep 20, 2020
e371494
feat: add function onSelect day
K2-m5 Sep 20, 2020
673de2f
feat: add modal view for calendar
K2-m5 Sep 20, 2020
a529481
feat: add color editing types
artem-antonov-web Sep 20, 2020
3ddb05f
feat: add modal window for calendar
K2-m5 Sep 20, 2020
448eb91
refactor: refactor styls
K2-m5 Sep 20, 2020
2e33073
refactor: correct constants
artem-antonov-web Sep 20, 2020
bd9847c
Merge pull request #7 from romanenkoandrew/schedule-table-imlementation
artem-antonov-web Sep 20, 2020
9c31553
Merge branch 'develop' into calendar
K2-m5 Sep 23, 2020
1de4578
Merge pull request #6 from romanenkoandrew/calendar
K2-m5 Sep 24, 2020
60ebe1c
Merge branch 'calendar' of https://github.com/romanenkoandrew/schedul…
K2-m5 Sep 24, 2020
c9fefbd
feat: complete modal window for mentor
romanenkoandrew Sep 24, 2020
f0baa4b
feat: add new event
romanenkoandrew Sep 25, 2020
23a7efa
refactor: delete useless
romanenkoandrew Sep 25, 2020
d1fc911
Merge branch 'develop' into fix-modal
romanenkoandrew Sep 25, 2020
e595ccb
Merge pull request #8 from romanenkoandrew/fix-modal
romanenkoandrew Sep 25, 2020
2da2a9b
fix: modal window
romanenkoandrew Sep 25, 2020
1be5872
Merge pull request #9 from romanenkoandrew/fix-modal-2
romanenkoandrew Sep 25, 2020
e24bd96
feat: add online/offline event
romanenkoandrew Sep 25, 2020
afd8fa2
feat: add courseName
romanenkoandrew Sep 26, 2020
6003c5f
feat: add props & cons
Sep 26, 2020
366f935
feat:add ideal schedule ideas & peoples' poll
Sep 26, 2020
972141a
fix: small error in numbers
Sep 26, 2020
2be7936
feat: add more ideas
Sep 26, 2020
20f7692
feat:add libs & modules
Sep 26, 2020
adcc370
fix: small typos
Sep 26, 2020
a6d8f60
fix: empty spaces between blocks
Sep 26, 2020
9680225
feat:add connect
Sep 26, 2020
aed04f4
feat: add time column
artem-antonov-web Sep 26, 2020
3d3f758
refactor: delete logs
artem-antonov-web Sep 26, 2020
dab544d
Merge branch 'develop' into schedule-table-imlementation
artem-antonov-web Sep 26, 2020
e079362
Merge pull request #11 from romanenkoandrew/schedule-table-imlementation
artem-antonov-web Sep 26, 2020
67b003d
feat: add opening modal window on double click
artem-antonov-web Sep 26, 2020
36a49dc
Merge branch 'develop' into schedule-table-imlementation
artem-antonov-web Sep 26, 2020
64b574b
Merge pull request #12 from romanenkoandrew/schedule-table-imlementation
artem-antonov-web Sep 26, 2020
280dcd9
feat: add data filter by courses
artem-antonov-web Sep 26, 2020
ec73f83
Merge pull request #13 from romanenkoandrew/schedule-table-imlementation
artem-antonov-web Sep 26, 2020
4dd9e43
refactor: fix bugs with materials links
artem-antonov-web Sep 26, 2020
c16fe53
Merge pull request #14 from romanenkoandrew/schedule-table-imlementation
artem-antonov-web Sep 26, 2020
8c83b75
feat: add list layout
natein Sep 26, 2020
235a213
feat: add list page
natein Sep 26, 2020
47bb37e
refactor: refactor basic function
K2-m5 Sep 26, 2020
be02e1b
feat: add feedback field
romanenkoandrew Sep 26, 2020
5e09093
Merge branch 'develop' into update-modal
romanenkoandrew Sep 26, 2020
1fc861a
Merge pull request #16 from romanenkoandrew/update-modal
romanenkoandrew Sep 26, 2020
02e8600
fix: tag types render
romanenkoandrew Sep 27, 2020
6e68147
fix: correct date-time mistake
natein Sep 27, 2020
5028d73
Merge pull request #15 from romanenkoandrew/list
natein Sep 27, 2020
078c166
merge develop into calendar
K2-m5 Sep 27, 2020
a26bc2e
feat: add feilds result and comment
romanenkoandrew Sep 27, 2020
de7f6f9
fix: new event
romanenkoandrew Sep 27, 2020
651b293
Merge pull request #18 from romanenkoandrew/update-modal2
romanenkoandrew Sep 27, 2020
5722026
feat: add interaction with local storage
artem-antonov-web Sep 27, 2020
8d78c3d
Merge pull request #19 from romanenkoandrew/schedule-table-imlementation
artem-antonov-web Sep 27, 2020
97010e2
Merge pull request #10 from romanenkoandrew/concept-app
romanenkoandrew Sep 27, 2020
edb630d
refactor: fix bugs
artem-antonov-web Sep 27, 2020
cf099aa
Merge pull request #21 from romanenkoandrew/schedule-table-imlementation
artem-antonov-web Sep 27, 2020
954b257
feat: refactor basic function
K2-m5 Sep 27, 2020
1c38d55
Merge branch 'develop' into calendar
K2-m5 Sep 27, 2020
10c8f41
refactor: fix bugs with time
artem-antonov-web Sep 27, 2020
f2d9725
Merge pull request #23 from romanenkoandrew/schedule-table-imlementation
artem-antonov-web Sep 27, 2020
a8881b9
feat: add time and date to modal
romanenkoandrew Sep 27, 2020
df7a727
Merge pull request #24 from romanenkoandrew/update-modal3
romanenkoandrew Sep 27, 2020
f7393ac
feat: add modal window
natein Sep 28, 2020
9585ae1
feat: colors from local storage & modal window
natein Sep 28, 2020
5cbfe6d
feat: add 1 more feature
Sep 28, 2020
9bdd08a
fix: fix bug renderDay function
K2-m5 Sep 28, 2020
57bd83f
Merge branch 'calendar' of https://github.com/romanenkoandrew/schedul…
K2-m5 Sep 28, 2020
ce1b65a
refactor: refactor styles and color for tag
K2-m5 Sep 28, 2020
a428b14
refactor: refactor whitespace
K2-m5 Sep 28, 2020
753c09f
Merge branch 'develop' into calendar
K2-m5 Sep 28, 2020
410a443
fix: css styles
natein Sep 28, 2020
e5f95f4
Merge pull request #25 from romanenkoandrew/list2
natein Sep 28, 2020
3fef49d
feat: add video player, fix feedback
romanenkoandrew Sep 28, 2020
808dbcb
Merge pull request #27 from romanenkoandrew/update-modal4
romanenkoandrew Sep 28, 2020
46f1dc6
refactor: refactor render function and styles
K2-m5 Sep 28, 2020
725238a
Merge branch 'develop' into calendar
K2-m5 Sep 28, 2020
aa70326
Merge branch 'calendar' of https://github.com/romanenkoandrew/schedul…
K2-m5 Sep 28, 2020
7e3101b
feat: add error boundry
artem-antonov-web Sep 28, 2020
a0d43f6
Merge pull request #22 from romanenkoandrew/calendar
K2-m5 Sep 28, 2020
d27cd38
Merge branch 'develop' into bug-catcher
artem-antonov-web Sep 28, 2020
89379c9
Merge pull request #28 from romanenkoandrew/bug-catcher
artem-antonov-web Sep 28, 2020
537a8fe
refactor: fix bugs with bug-catcher
artem-antonov-web Sep 28, 2020
e6253f7
Merge pull request #29 from romanenkoandrew/fix-all
artem-antonov-web Sep 28, 2020
6d2cfb3
refactor: correct styles
artem-antonov-web Sep 28, 2020
f0e429c
Merge pull request #30 from romanenkoandrew/schedule-table-imlementation
artem-antonov-web Sep 28, 2020
c95ac1d
refactor: correct error boundry
artem-antonov-web Sep 29, 2020
f550367
Merge branch 'develop' into bug-catcher
artem-antonov-web Sep 29, 2020
ce65878
Merge pull request #31 from romanenkoandrew/bug-catcher
artem-antonov-web Sep 29, 2020
b48afc6
feat: add requaied field in table, add open modal in calendar
artem-antonov-web Sep 29, 2020
b29bb08
Merge pull request #32 from romanenkoandrew/schedule-table-imlementation
artem-antonov-web Sep 29, 2020
cdadc80
Merge pull request #26 from romanenkoandrew/hot-fix/readme.md
adelinyshka Sep 29, 2020
e413154
fix: router
romanenkoandrew Sep 29, 2020
e7e25f7
refactor: delete unuse vars
romanenkoandrew Sep 29, 2020
7629c52
fix: new event date in modal
romanenkoandrew Sep 29, 2020
1a4da0c
fix: feedback
romanenkoandrew Sep 29, 2020
575f001
fix: add fields required
romanenkoandrew Sep 30, 2020
f1ea2e4
Merge pull request #33 from romanenkoandrew/last-fixs
romanenkoandrew Sep 30, 2020
d5a0c3f
fix: add selection and hide\show items
natein Sep 30, 2020
7fe8e1d
fix: new event time zone and event type deadline
romanenkoandrew Sep 30, 2020
cfd39f5
fix: delete comment
romanenkoandrew Sep 30, 2020
a1fcec9
Merge pull request #35 from romanenkoandrew/fix-new-event
romanenkoandrew Sep 30, 2020
9e3fdef
Merge pull request #34 from romanenkoandrew/listwithselection
natein Sep 30, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage
/__test__

# production
/build

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.idea
.vscode
.editorconfig
194 changes: 193 additions & 1 deletion README.md

Large diffs are not rendered by default.

93 changes: 93 additions & 0 deletions config/env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
'use strict';

const fs = require('fs');
const path = require('path');
const paths = require('./paths');

// Make sure that including paths.js after env.js will read .env variables.
delete require.cache[require.resolve('./paths')];

const NODE_ENV = process.env.NODE_ENV;
if (!NODE_ENV) {
throw new Error(
'The NODE_ENV environment variable is required but was not specified.'
);
}

// https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
var dotenvFiles = [
`${paths.dotenv}.${NODE_ENV}.local`,
`${paths.dotenv}.${NODE_ENV}`,
// Don't include `.env.local` for `test` environment
// since normally you expect tests to produce the same
// results for everyone
NODE_ENV !== 'test' && `${paths.dotenv}.local`,
paths.dotenv,
].filter(Boolean);

// Load environment variables from .env* files. Suppress warnings using silent
// if this file is missing. dotenv will never modify any environment variables
// that have already been set. Variable expansion is supported in .env files.
// https://github.com/motdotla/dotenv
// https://github.com/motdotla/dotenv-expand
dotenvFiles.forEach(dotenvFile => {
if (fs.existsSync(dotenvFile)) {
require('dotenv-expand')(
require('dotenv').config({
path: dotenvFile,
})
);
}
});

// We support resolving modules according to `NODE_PATH`.
// This lets you use absolute paths in imports inside large monorepos:
// https://github.com/facebook/create-react-app/issues/253.
// It works similar to `NODE_PATH` in Node itself:
// https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders
// Note that unlike in Node, only *relative* paths from `NODE_PATH` are honored.
// Otherwise, we risk importing Node.js core modules into an app instead of Webpack shims.
// https://github.com/facebook/create-react-app/issues/1023#issuecomment-265344421
// We also resolve them to make sure all tools using them work consistently.
const appDirectory = fs.realpathSync(process.cwd());
process.env.NODE_PATH = (process.env.NODE_PATH || '')
.split(path.delimiter)
.filter(folder => folder && !path.isAbsolute(folder))
.map(folder => path.resolve(appDirectory, folder))
.join(path.delimiter);

// Grab NODE_ENV and REACT_APP_* environment variables and prepare them to be
// injected into the application via DefinePlugin in Webpack configuration.
const REACT_APP = /^REACT_APP_/i;

function getClientEnvironment(publicUrl) {
const raw = Object.keys(process.env)
.filter(key => REACT_APP.test(key))
.reduce(
(env, key) => {
env[key] = process.env[key];
return env;
},
{
// Useful for determining whether we’re running in production mode.
// Most importantly, it switches React into the correct mode.
NODE_ENV: process.env.NODE_ENV || 'development',
// Useful for resolving the correct path to static assets in `public`.
// For example, <img src={process.env.PUBLIC_URL + '/img/logo.png'} />.
// This should only be used as an escape hatch. Normally you would put
// images into the `src` and `import` them in code to get their paths.
PUBLIC_URL: publicUrl,
}
);
// Stringify all values so we can feed into Webpack DefinePlugin
const stringified = {
'process.env': Object.keys(raw).reduce((env, key) => {
env[key] = JSON.stringify(raw[key]);
return env;
}, {}),
};

return { raw, stringified };
}

module.exports = getClientEnvironment;
14 changes: 14 additions & 0 deletions config/jest/cssTransform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use strict';

// This is a custom Jest transformer turning style imports into empty objects.
// http://facebook.github.io/jest/docs/en/webpack.html

module.exports = {
process() {
return 'module.exports = {};';
},
getCacheKey() {
// The output is always the same.
return 'cssTransform';
},
};
40 changes: 40 additions & 0 deletions config/jest/fileTransform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
'use strict';

const path = require('path');
const camelcase = require('camelcase');

// This is a custom Jest transformer turning file imports into filenames.
// http://facebook.github.io/jest/docs/en/webpack.html

module.exports = {
process(src, filename) {
const assetFilename = JSON.stringify(path.basename(filename));

if (filename.match(/\.svg$/)) {
// Based on how SVGR generates a component name:
// https://github.com/smooth-code/svgr/blob/01b194cf967347d43d4cbe6b434404731b87cf27/packages/core/src/state.js#L6
const pascalCaseFileName = camelcase(path.parse(filename).name, {
pascalCase: true,
});
const componentName = `Svg${pascalCaseFileName}`;
return `const React = require('react');
module.exports = {
__esModule: true,
default: ${assetFilename},
ReactComponent: React.forwardRef(function ${componentName}(props, ref) {
return {
$$typeof: Symbol.for('react.element'),
type: 'svg',
ref: ref,
key: null,
props: Object.assign({}, props, {
children: ${assetFilename}
})
};
}),
};`;
}

return `module.exports = ${assetFilename};`;
},
};
84 changes: 84 additions & 0 deletions config/modules.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
'use strict';

const fs = require('fs');
const path = require('path');
const paths = require('./paths');
const chalk = require('react-dev-utils/chalk');

/**
* Get the baseUrl of a compilerOptions object.
*
* @param {Object} options
*/
function getAdditionalModulePaths(options = {}) {
const baseUrl = options.baseUrl;

// We need to explicitly check for null and undefined (and not a falsy value) because
// TypeScript treats an empty string as `.`.
if (baseUrl == null) {
// If there's no baseUrl set we respect NODE_PATH
// Note that NODE_PATH is deprecated and will be removed
// in the next major release of create-react-app.

const nodePath = process.env.NODE_PATH || '';
return nodePath.split(path.delimiter).filter(Boolean);
}

const baseUrlResolved = path.resolve(paths.appPath, baseUrl);

// We don't need to do anything if `baseUrl` is set to `node_modules`. This is
// the default behavior.
if (path.relative(paths.appNodeModules, baseUrlResolved) === '') {
return null;
}

// Allow the user set the `baseUrl` to `appSrc`.
if (path.relative(paths.appSrc, baseUrlResolved) === '') {
return [paths.appSrc];
}

// Otherwise, throw an error.
throw new Error(
chalk.red.bold(
"Your project's `baseUrl` can only be set to `src` or `node_modules`." +
' Create React App does not support other values at this time.'
)
);
}

function getModules() {
// Check if TypeScript is setup
const hasTsConfig = fs.existsSync(paths.appTsConfig);
const hasJsConfig = fs.existsSync(paths.appJsConfig);

if (hasTsConfig && hasJsConfig) {
throw new Error(
'You have both a tsconfig.json and a jsconfig.json. If you are using TypeScript please remove your jsconfig.json file.'
);
}

let config;

// If there's a tsconfig.json we assume it's a
// TypeScript project and set up the config
// based on tsconfig.json
if (hasTsConfig) {
config = require(paths.appTsConfig);
// Otherwise we'll check if there is jsconfig.json
// for non TS projects.
} else if (hasJsConfig) {
config = require(paths.appJsConfig);
}

config = config || {};
const options = config.compilerOptions || {};

const additionalModulePaths = getAdditionalModulePaths(options);

return {
additionalModulePaths: additionalModulePaths,
hasTsConfig,
};
}

module.exports = getModules();
90 changes: 90 additions & 0 deletions config/paths.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
'use strict';

const path = require('path');
const fs = require('fs');
const url = require('url');

// Make sure any symlinks in the project folder are resolved:
// https://github.com/facebook/create-react-app/issues/637
const appDirectory = fs.realpathSync(process.cwd());
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);

const envPublicUrl = process.env.PUBLIC_URL;

function ensureSlash(inputPath, needsSlash) {
const hasSlash = inputPath.endsWith('/');
if (hasSlash && !needsSlash) {
return inputPath.substr(0, inputPath.length - 1);
} else if (!hasSlash && needsSlash) {
return `${inputPath}/`;
} else {
return inputPath;
}
}

const getPublicUrl = appPackageJson =>
envPublicUrl || require(appPackageJson).homepage;

// We use `PUBLIC_URL` environment variable or "homepage" field to infer
// "public path" at which the app is served.
// Webpack needs to know it to put the right <script> hrefs into HTML even in
// single-page apps that may serve index.html for nested URLs like /todos/42.
// We can't use a relative path in HTML because we don't want to load something
// like /todos/42/static/js/bundle.7289d.js. We have to know the root.
function getServedPath(appPackageJson) {
const publicUrl = getPublicUrl(appPackageJson);
const servedUrl =
envPublicUrl || (publicUrl ? url.parse(publicUrl).pathname : '/');
return ensureSlash(servedUrl, true);
}

const moduleFileExtensions = [
'web.mjs',
'mjs',
'web.js',
'js',
'web.ts',
'ts',
'web.tsx',
'tsx',
'json',
'web.jsx',
'jsx',
];

// Resolve file paths in the same order as webpack
const resolveModule = (resolveFn, filePath) => {
const extension = moduleFileExtensions.find(extension =>
fs.existsSync(resolveFn(`${filePath}.${extension}`))
);

if (extension) {
return resolveFn(`${filePath}.${extension}`);
}

return resolveFn(`${filePath}.js`);
};

// config after eject: we're in ./config/
module.exports = {
dotenv: resolveApp('.env'),
appPath: resolveApp('.'),
appBuild: resolveApp('build'),
appPublic: resolveApp('public'),
appHtml: resolveApp('public/index.html'),
appIndexJs: resolveModule(resolveApp, 'src/index'),
appPackageJson: resolveApp('package.json'),
appSrc: resolveApp('src'),
appTsConfig: resolveApp('tsconfig.json'),
appJsConfig: resolveApp('jsconfig.json'),
yarnLockFile: resolveApp('yarn.lock'),
testsSetup: resolveModule(resolveApp, 'src/setupTests'),
proxySetup: resolveApp('src/setupProxy.js'),
appNodeModules: resolveApp('node_modules'),
publicUrl: getPublicUrl(resolveApp('package.json')),
servedPath: getServedPath(resolveApp('package.json')),
};



module.exports.moduleFileExtensions = moduleFileExtensions;
35 changes: 35 additions & 0 deletions config/pnpTs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
'use strict';

const { resolveModuleName } = require('ts-pnp');

exports.resolveModuleName = (
typescript,
moduleName,
containingFile,
compilerOptions,
resolutionHost
) => {
return resolveModuleName(
moduleName,
containingFile,
compilerOptions,
resolutionHost,
typescript.resolveModuleName
);
};

exports.resolveTypeReferenceDirective = (
typescript,
moduleName,
containingFile,
compilerOptions,
resolutionHost
) => {
return resolveModuleName(
moduleName,
containingFile,
compilerOptions,
resolutionHost,
typescript.resolveTypeReferenceDirective
);
};
Loading