added config

This commit is contained in:
snoop 2017-12-18 17:03:35 +09:00
parent 630ca35cef
commit ff19777317
4 changed files with 257 additions and 0 deletions

10
.gitignore vendored Normal file
View File

@ -0,0 +1,10 @@
.DS_Store
.idea/
node_modules/
dist/
**/.vs
**/.vscode
.idea
yarn.lock
.yarnclean
npm-debug.log

108
package.json Normal file
View File

@ -0,0 +1,108 @@
{
"name": "hello",
"version": "1.0.0",
"description": "Node Hello Project",
"main": "index.js",
"repository": "https://git.loafle.net/overflow/overflow_webapp",
"author": "LOAFLE (rnd@loafle.com)",
"license": "MIT",
"scripts": {
"clean": "./node_modules/.bin/rimraf ./dist",
"prepublish": "yarn run build",
"postpublish": "./node_modules/.bin/greenkeeper-postpublish",
"start": "set NODE_ENV=development && ./node_modules/.bin/webpack-dev-server --open --progress --config ./config/webpack/webpack.config.dev.js",
"start:dashboard": "set NODE_ENV=development && ./node_modules/.bin/webpack-dashboard -- ./node_modules/.bin/webpack-dev-server --open --progress --config ./config/webpack/webpack.config.dev.js",
"test": "yarn run jest",
"test:watch": "yarn run jest -- --watch",
"jest": "PWD=$(pwd) NODE_ENV=test ./node_modules/.bin/jest -w 1 --coverage",
"build": "set NODE_ENV=production && ./node_modules/.bin/webpack-dashboard -m -- ./node_modules/.bin/webpack --progress --profile --colors --config ./config/webpack/webpack.config.prod.js",
"lint": "./node_modules/.bin/tslint -c tslint.json 'src/ts/**/*.{ts,tsx}' && ./node_modules/.bin/sass-lint 'src/**/*.scss'",
"stats": "set NODE_ENV=production && webpack --progress --config ./config/webpack/webpack.config.stats.js --profile --json > ./config/webpack/stats/stats.json"
},
"devDependencies": {
"@types/auth0-lock": "^10.16.0",
"@types/history": "^4.6.0",
"@types/jest": "^19.2.4",
"@types/lodash": "^4.14.69",
"@types/prop-types": "^15.5.1",
"@types/react": "^15.0.38",
"@types/react-addons-test-utils": "^0.14.19",
"@types/react-dom": "^15.5.1",
"@types/react-hot-loader": "^3.0.3",
"@types/react-json-pretty": "^1.3.2",
"@types/react-redux": "^4.4.46",
"@types/react-router": "^4.0.14",
"@types/react-router-dom": "^4.0.7",
"@types/react-router-redux": "^5.0.3",
"@types/react-tap-event-plugin": "^0.0.30",
"@types/recharts": "^0.22.5",
"@types/redux": "^3.6.0",
"@types/whatwg-fetch": "^0.0.33",
"awesome-typescript-loader": "^3.1.3",
"check-dependencies": "^1.0.1",
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^0.28.2",
"extract-text-webpack-plugin": "^2.1.0",
"file-loader": "^0.11.1",
"greenkeeper-postpublish": "^1.0.1",
"html-webpack-plugin": "^2.28.0",
"image-webpack-loader": "^3.3.1",
"jest": "^20.0.4",
"node-sass": "^4.5.3",
"postcss-import": "^10.0.0",
"postcss-loader": "^2.0.5",
"raw-loader": "^0.5.1",
"react-addons-test-utils": "^15.5.1",
"react-hot-loader": "next",
"react-json-pretty": "^1.0.0",
"redux-devtools-extension": "^2.13.2",
"redux-logger": "^3.0.6",
"rimraf": "^2.6.1",
"sass-lint": "^1.10.2",
"sass-loader": "^6.0.5",
"source-map-loader": "^0.2.1",
"style-loader": "^0.18.1",
"tslint": "^5.4.3",
"tslint-loader": "^3.5.3",
"tslint-react": "^3.0.0",
"typescript": "^2.4.1",
"webpack": "^2.6.1",
"webpack-dashboard": "^0.4.0",
"webpack-dev-server": "^2.5.0",
"webpack-merge": "^4.1.0",
"webpack-visualizer-plugin": "^0.1.11"
},
"dependencies": {
"auth0-lock": "^10.18.0",
"history": "^4.6.3",
"immutable": "^3.8.1",
"inversify": "^4.2.0",
"lodash": "^4.17.4",
"prop-types": "^15.5.10",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-immutable-proptypes": "^2.1.0",
"react-redux": "^5.0.5",
"react-router": "^4.1.2",
"react-router-dom": "^4.1.2",
"react-router-redux": "next",
"react-tap-event-plugin": "^2.0.1",
"recharts": "^1.0.0-alpha.4",
"redux": "^3.7.1",
"redux-saga": "^0.15.4",
"reflect-metadata": "^0.1.10",
"reselect": "^3.0.1",
"semantic-ui-react": "^0.71.1"
},
"jest": {
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "\\./src/ts/(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"
}
}

41
tsconfig.json Normal file
View File

@ -0,0 +1,41 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "src/ts",
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"jsx": "react",
"lib": [
"dom",
"es6"
],
"module": "commonjs",
"moduleResolution": "node",
"newLine": "LF",
"noImplicitAny": false,
"noImplicitThis": false,
"outDir": "dist/ts/",
"preserveConstEnums": true,
"pretty": true,
"removeComments": true,
"sourceMap": true,
"target": "es5",
"types": [
"reflect-metadata"
],
"typeRoots": [
"node_modules/@types"
]
},
"include": [
"src/ts/**/*"
],
"exclude": [
"build",
"config",
"node_modules",
"public"
]
}

98
tslint.json Normal file
View File

@ -0,0 +1,98 @@
{
"rules": {
"align": [true,
"parameters",
"arguments",
"statements"],
"ban": false,
"class-name": true,
"comment-format": [true,
"check-space"
],
"curly": true,
"eofline": true,
"forin": true,
"indent": [true, 2, "spaces"],
"interface-name": [false],
"jsdoc-format": true,
"label-position": true,
"max-line-length": [true, 140],
"member-access": true,
"member-ordering": [
false,
{
"order": [
"static-field",
"instance-field",
"constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
"no-any": false,
"no-arg": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-console": [true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-debugger": true,
"no-shadowed-variable": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-inferrable-types": [false],
"no-internal-module": true,
"no-require-imports": false,
"no-string-literal": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-use-before-declare": true,
"no-var-keyword": true,
"no-var-requires": true,
"object-literal-sort-keys": false,
"one-line": [true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [true, "single", "avoid-escape"],
"radix": true,
"semicolon": [true, "always"],
"switch-default": true,
"trailing-comma": [true, {
"multiline": "always",
"singleline": "never"
}],
"triple-equals": [true, "allow-null-check"],
"typedef": [true,
"call-signature",
"parameter",
"property-declaration",
"member-variable-declaration"
],
"typedef-whitespace": [true, {
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}],
"variable-name": false,
"whitespace": [true,
"check-decl",
"check-operator",
"check-separator"
]
}
}