sourcemap support

This commit is contained in:
Dylan Vorster
2018-03-10 15:32:24 +02:00
parent ed50438744
commit 4402068a93
5 changed files with 1438 additions and 223 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
PATH_add ./node_modules/.bin

View File

@@ -23,67 +23,64 @@
"build:ts": "webpack",
"build:ts:prod": "cross-env NODE_ENV=production webpack",
"build:sass:prod": "node-sass --output-style compressed ./src/sass/main.scss > ./dist/style.min.css",
"storybook": "start-storybook -p 9001 -c .storybook",
"storybook:build": "build-storybook -c .storybook -o .out",
"storybook:github": "storybook-to-ghpages",
"pretty": "prettier --use-tabs --write \"{src,demos,tests}/**/*.{ts,tsx}\" --print-width 120",
"lint": "tslint -p .",
"test:ci": "rm -rf ./dist && node ./tests/e2e/generate-e2e.js && jest --no-cache",
"test": "jest --no-cache",
"prepublishOnly": "yarn run build:ts:prod && yarn run build:sass:prod"
},
"dependencies": {
"closest": "^0.0.1",
"lodash": "^4.17.5",
"pathfinding": "^0.4.18",
"paths-js": "^0.4.5",
"paths-js": "^0.4.7",
"react": "^16.2.0"
},
"devDependencies": {
"@storybook/addon-actions": "^3.3.14",
"@storybook/addon-options": "^3.3.14",
"@storybook/addon-storyshots": "^3.3.14",
"@storybook/addons": "^3.3.14",
"@storybook/react": "^3.3.14",
"@storybook/addon-actions": "^3.3.15",
"@storybook/addon-options": "^3.3.15",
"@storybook/addon-storyshots": "^3.3.15",
"@storybook/addons": "^3.3.15",
"@storybook/react": "^3.3.15",
"@storybook/storybook-deployer": "^2.3.0",
"@types/jest": "^22.1.3",
"@types/jest": "^22.2.0",
"@types/lodash": "^4.14.104",
"@types/node": "^9.4.6",
"@types/node": "^9.4.7",
"@types/promise": "^7.1.30",
"@types/puppeteer": "^1.0.0",
"@types/react": "^16.0.38",
"copy-webpack-plugin": "^4.4.2",
"cross-env": "^5.1.3",
"@types/puppeteer": "^1.1.0",
"@types/react": "^16.0.40",
"copy-webpack-plugin": "^4.5.1",
"cross-env": "^5.1.4",
"css-loader": "^0.28.10",
"dagre": "^0.8.2",
"enzyme": "^3.3.0",
"file-loader": "^1.1.9",
"file-loader": "^1.1.11",
"glob": "^7.1.2",
"jest": "^22.4.2",
"jest-cli": "^22.4.2",
"json-beautify": "^1.0.1",
"node-sass": "^4.7.2",
"prettier": "^1.10.2",
"prettier": "^1.11.1",
"puppeteer": "^1.1.1",
"raf": "^3.4.0",
"raw-loader": "^0.5.1",
"react-dom": "^16.2.0",
"react-syntax-highlighter": "^7.0.1",
"react-syntax-highlighter": "^7.0.2",
"react-test-renderer": "^16.2.0",
"sass-loader": "^6.0.6",
"sass-loader": "^6.0.7",
"source-map-loader": "^0.2.3",
"storybook-host": "^4.1.5",
"storybook-readme": "^3.2.1",
"style-loader": "^0.20.2",
"ts-jest": "^22.0.4",
"ts-loader": "^3.5.0",
"style-loader": "^0.20.3",
"ts-jest": "^22.4.1",
"ts-loader": "^4.0.1",
"tslint": "^5.9.1",
"typescript": "^2.7.2",
"val-loader": "^1.1.0",
"webpack": "^3.11.0"
"webpack": "^4.1.1",
"webpack-cli": "^2.0.11"
}
}

View File

@@ -18,7 +18,6 @@
"exclude": [
"node_modules",
"**/*.spec.ts",
"webpack.config.js",
"./dist"
]
}

View File

@@ -68,6 +68,7 @@ module.exports =
resolve: {
extensions: [".tsx", ".ts", ".js"]
},
devtool: process.env.NODE_ENV === 'production'?false:'eval-cheap-module-source-map'
devtool: 'cheap-module-source-map',
mode: process.env.NODE_ENV || 'development'
}
;

1611
yarn.lock
View File

File diff suppressed because it is too large Load Diff