Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kyt-starter-universal

Package Overview
Dependencies
Maintainers
3
Versions
307
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kyt-starter-universal - npm Package Compare versions

Comparing version 1.0.0-alpha.f16c2ef8 to 1.0.0-alpha.fb802095

starter-src/jest.setup.js

2

package.json
{
"name": "kyt-starter-universal",
"version": "1.0.0-alpha.f16c2ef8",
"version": "1.0.0-alpha.fb802095",
"description": "",

@@ -5,0 +5,0 @@ "repository": {

{
"home.js": "/home-eb3f4611fb686522817a.js",
"home.js.map": "/home-bc9d8faad02ccb7513c5.js.map",
"icon-kytLogo_large-252x252.svg": "/icon-kytLogo_large-252x252-466d0df90a1887c34d04caa92ed278c6.svg",
"main.css": "/main-cbd6d2c055eee169d7f3e3bcc1cbe40c.css",
"main.css.map": "/main-cbd6d2c055eee169d7f3e3bcc1cbe40c.css.map",
"main.js": "/main-d5f706bf96f2166795c5.js",
"main.js.map": "/main-4abc23548ffc95160a95.js.map",
"manifest.js": "/manifest-d74ae4f8cebd4592b80e.js",
"manifest.js.map": "/manifest-c5f4ff50f6129f97f17f.js.map",
"tools.js": "/tools-35f41b4302e7010bcdda.js",
"tools.js.map": "/tools-e93e9a1a62c9d1651ee2.js.map",
"vendor.js": "/vendor-edc6c4ffbbcfc2f72b6d.js",
"vendor.js.map": "/vendor-6498cee50f17b6bb6b38.js.map"
"icon-kytLogo_large-252x252.svg": "http://localhost:3001/icon-kytLogo_large-252x252-466d0df90a1887c34d04caa92ed278c6.svg",
"main.js": "http://localhost:3001/main.js"
}

@@ -7,2 +7,11 @@ // Base kyt config.

debug: false,
modifyJestConfig(kytConfig) {
const jestConfig = Object.assign({}, kytConfig);
jestConfig.setupFiles = ['raf/polyfill', ...jestConfig.setupFiles];
jestConfig.setupTestFrameworkScriptFile = require.resolve('./jest.setup.js');
jestConfig.snapshotSerializers = ['enzyme-to-json/serializer'];
return jestConfig;
},
};

@@ -5,6 +5,6 @@ // Command to build production code

const logger = require('kyt-utils/logger');
const { buildPath, publicBuildPath, publicSrcPath } = require('kyt-utils/paths')();
const printAssets = require('../../utils/printAssets');
const buildConfigs = require('../../utils/buildConfigs');
const webpackCompiler = require('../../utils/webpackCompiler');
const { buildPath, publicBuildPath, publicSrcPath } = require('kyt-utils/paths')();

@@ -11,0 +11,0 @@ module.exports = config => {

@@ -14,6 +14,6 @@ // Command to run development server

const logger = require('kyt-utils/logger');
const { buildPath, serverSrcPath, publicSrcPath, publicBuildPath } = require('kyt-utils/paths')();
const ifPortIsFreeDo = require('../../utils/ifPortIsFreeDo');
const buildConfigs = require('../../utils/buildConfigs');
const webpackCompiler = require('../../utils/webpackCompiler');
const { buildPath, serverSrcPath, publicSrcPath, publicBuildPath } = require('kyt-utils/paths')();

@@ -20,0 +20,0 @@ module.exports = (config, flags) => {

@@ -7,6 +7,7 @@ // Command to run prototype dev server

const logger = require('kyt-utils/logger');
const { userPrototypePath, publicSrcPath } = require('kyt-utils/paths')();
const ifPortIsFreeDo = require('./../../utils/ifPortIsFreeDo');
const baseConfig = require('./../../config/webpack.base');
const protoConfig = require('./../../config/webpack.proto');
const { userPrototypePath, publicSrcPath } = require('kyt-utils/paths')();

@@ -13,0 +14,0 @@ module.exports = config => {

@@ -6,4 +6,4 @@ // Command to run tests with Jest

const shell = require('shelljs');
const { srcPath } = require('kyt-utils/paths')();
const jestConfigBuilder = require('../../config/jest');
const { srcPath } = require('kyt-utils/paths')();
const buildConfigs = require('../../utils/buildConfigs');

@@ -10,0 +10,0 @@

const program = require('commander');
const shell = require('shelljs');
const logger = require('kyt-utils/logger');
const { userPackageJSONPath } = require('kyt-utils/paths')();
const devAction = require('./actions/dev');

@@ -10,4 +12,2 @@ const lintScriptAction = require('./actions/lintScript');

const kytConfigFn = require('./../utils/kytConfig');
const logger = require('kyt-utils/logger');
const { userPackageJSONPath } = require('kyt-utils/paths')();

@@ -14,0 +14,0 @@ // Comment the following to see verbose shell ouput.

@@ -17,4 +17,4 @@ // All webpack configurations are merged into this

} = require('kyt-utils/paths')();
const os = require('os');
const fileExtensions = require('./fileExtensions');
const os = require('os');

@@ -74,3 +74,3 @@ let clientAssets;

const assets = merge({}, clientAssets, manifest.toJSON());
fs.writeFile(assetsFilePath, JSON.stringify(assets, null, ' '), 'utf8');
fs.writeFile(assetsFilePath, JSON.stringify(assets, null, ' '), 'utf8', () => {});
}

@@ -77,0 +77,0 @@ },

@@ -6,5 +6,5 @@ // Production webpack config for client code

const clone = require('lodash.clonedeep');
const postcssLoader = require('../utils/getPostcssLoader');
const { clientSrcPath, assetsBuildPath, publicSrcPath } = require('kyt-utils/paths')();
const HashOutput = require('webpack-plugin-hash-output');
const postcssLoader = require('../utils/getPostcssLoader');

@@ -11,0 +11,0 @@ const cssStyleLoaders = [

{
"name": "eslint-config-kyt",
"version": "1.0.0-alpha.f16c2ef8",
"version": "1.0.0-alpha.fb802095",
"description": "ESLint configuration for kyt projects.",

@@ -12,13 +12,13 @@ "main": "eslintrc.json",

"peerDependencies": {
"babel-eslint": "8.0.1",
"eslint": "4.9.0",
"eslint-config-airbnb": "16.1.0",
"eslint-config-prettier": "2.6.0",
"eslint-plugin-import": "2.8.0",
"babel-eslint": "8.2.5",
"eslint": "5.1.0",
"eslint-config-airbnb": "17.0.0",
"eslint-config-prettier": "2.9.0",
"eslint-plugin-import": "2.13.0",
"eslint-plugin-json": "1.2.0",
"eslint-plugin-jsx-a11y": "6.0.2",
"eslint-plugin-prettier": "2.3.1",
"eslint-plugin-react": "7.4.0",
"prettier": "1.7.4",
"prettier-eslint-cli": "4.4.0"
"eslint-plugin-jsx-a11y": "6.1.0",
"eslint-plugin-prettier": "2.6.2",
"eslint-plugin-react": "7.10.0",
"prettier": "1.13.7",
"prettier-eslint-cli": "4.7.1"
},

@@ -25,0 +25,0 @@ "keywords": [

{
"name": "kyt-utils",
"version": "0.2.0-alpha.f16c2ef8",
"version": "0.2.0-alpha.fb802095",
"description": "A shared kyt utility library.",

@@ -5,0 +5,0 @@ "author": "NYTimes",

{
"name": "stylelint-config-kyt",
"version": "1.0.0-alpha.f16c2ef8",
"version": "1.0.0-alpha.fb802095",
"main": "stylelintrc.json",

@@ -12,4 +12,4 @@ "description": "StyleLint configuration for kyt projects.",

"peerDependencies": {
"stylelint": "8.2.0",
"stylelint-config-standard": "17.0.0"
"stylelint": "9.3.0",
"stylelint-config-standard": "18.2.0"
},

@@ -16,0 +16,0 @@ "keywords": [

{
"name": "kyt",
"version": "1.0.0-alpha.f16c2ef8",
"version": "1.0.0-alpha.fb802095",
"description": "kyt is a toolkit that encapsulates and manages the configuration for web apps.",

@@ -30,11 +30,11 @@ "author": "NYTimes",

"detect-port": "1.0.1",
"eslint": "4.9.0",
"eslint-config-airbnb": "16.1.0",
"eslint-config-kyt": "1.0.0-alpha.f16c2ef8",
"eslint-config-prettier": "2.6.0",
"eslint-plugin-import": "2.8.0",
"eslint": "5.1.0",
"eslint-config-airbnb": "17.0.0",
"eslint-config-kyt": "1.0.0-alpha.fb802095",
"eslint-config-prettier": "2.9.0",
"eslint-plugin-import": "2.13.0",
"eslint-plugin-json": "1.2.0",
"eslint-plugin-jsx-a11y": "6.0.2",
"eslint-plugin-prettier": "2.3.1",
"eslint-plugin-react": "7.4.0",
"eslint-plugin-jsx-a11y": "6.1.0",
"eslint-plugin-prettier": "2.6.2",
"eslint-plugin-react": "7.10.0",
"express": "4.15.3",

@@ -51,3 +51,3 @@ "extract-text-webpack-plugin": "3.0.0",

"jsdom": "11.1.0",
"kyt-utils": "0.2.0-alpha.f16c2ef8",
"kyt-utils": "0.2.0-alpha.fb802095",
"lodash.clonedeep": "4.5.0",

@@ -59,4 +59,4 @@ "lodash.merge": "4.6.0",

"postcss-loader": "2.0.5",
"prettier": "1.7.4",
"prettier-eslint-cli": "4.4.0",
"prettier": "1.13.7",
"prettier-eslint-cli": "4.7.1",
"ps-tree": "1.1.0",

@@ -69,5 +69,5 @@ "react-hot-loader": "3.0.0-beta.6",

"style-loader": "0.18.1",
"stylelint": "8.2.0",
"stylelint-config-kyt": "1.0.0-alpha.f16c2ef8",
"stylelint-config-standard": "17.0.0",
"stylelint": "9.3.0",
"stylelint-config-kyt": "1.0.0-alpha.fb802095",
"stylelint-config-standard": "18.2.0",
"temp": "0.8.3",

@@ -74,0 +74,0 @@ "url-loader": "0.5.8",

const fs = require('fs');
const { userPostcssConfigPath } = require('kyt-utils/paths')();
const logger = require('kyt-utils/logger');
const kytPostcssConfig = require('../config/postcss.config');
const logger = require('kyt-utils/logger');

@@ -6,0 +6,0 @@ // We either use the kyt postcss.config.js or we use an

@@ -19,16 +19,20 @@ {

"babel-polyfill": "6.26.0",
"babel-preset-kyt-react": "0.4.0-alpha.f16c2ef8",
"compression": "1.6.2",
"express": "4.15.3",
"react": "15.3.0",
"react-dom": "15.3.0",
"react-router": "2.6.1"
"babel-preset-kyt-react": "0.3.0",
"compression": "1.7.2",
"express": "4.16.3",
"prop-types": "15.6.2",
"react": "16.4.1",
"react-dom": "16.4.1",
"react-router": "3.2.1"
},
"devDependencies": {
"enzyme": "2.4.1",
"kyt": "1.0.0-alpha.f16c2ef8",
"react-addons-test-utils": "15.3.0",
"react-hot-loader": "3.0.0-beta.6"
"enzyme": "3.3.0",
"enzyme-adapter-react-16": "1.1.1",
"enzyme-to-json": "3.3.4",
"kyt": "1.0.0-alpha.fb802095",
"raf": "3.4.0",
"react-hot-loader": "4.3.3",
"react-test-renderer": "16.4.1"
},
"version": "1.0.0-alpha.f16c2ef8"
"version": "1.0.0-alpha.fb802095"
}

@@ -1,2 +0,3 @@

import React, { PropTypes } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import Link from 'react-router/lib/Link';

@@ -3,0 +4,0 @@ import styles from './styles.scss';

import React from 'react';
import { shallow } from 'enzyme';
import App from './';
import App from '.';

@@ -5,0 +5,0 @@ it('Test example', () => {

import React from 'react';
import { shallow } from 'enzyme';
import Home from './';
import Home from '.';

@@ -5,0 +5,0 @@ it('Test example', () => {

import React from 'react';
import { shallow } from 'enzyme';
import Tools from './';
import Tools from '.';

@@ -5,0 +5,0 @@ it('Test example', () => {

@@ -19,5 +19,7 @@ /* eslint-disable prefer-template, max-len */

<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css">
${vo.mainCSSBundle
? '<link rel="stylesheet" type="text/css" href="' + vo.mainCSSBundle + '">'
: ''}
${
vo.mainCSSBundle
? '<link rel="stylesheet" type="text/css" href="' + vo.mainCSSBundle + '">'
: ''
}

@@ -24,0 +26,0 @@ <title>Universal React Starter Kyt</title>

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc