From dc469d4a8e0e5241034939be7c6611c21cf1c645 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Tue, 11 Apr 2017 11:29:29 -0400 Subject: [PATCH 1/2] Standardize repository settings Add `.gitattributes` for consistent line endings across platforms. Use `node` instead of deprecated `stable` version specifier for Travis. Set dev tool to `cheap-module-source-map`. --- .gitattributes | 27 +++++++++++++++++++++++++++ .travis.yml | 2 +- webpack.config.js | 1 + 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..0172c86 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,27 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Explicitly specify line endings for as many files as possible. +# People who (for example) rsync between Windows and Linux need this. + +# File types which we know are binary +*.wav binary + +# Prefer LF for most file types +*.js text eol=lf +*.js.map text eol=lf +*.json text eol=lf +*.md text eol=lf +*.yml text eol=lf +*.txt text eol=lf + +# Prefer LF for these files +.editorconfig text eol=lf +.eslintignore text eol=lf +.eslintrc text eol=lf +.gitattributes text eol=lf +.gitignore text eol=lf +.npmignore text eol=lf +LICENSE text eol=lf + +# Use CRLF for Windows-specific file types diff --git a/.travis.yml b/.travis.yml index 77142b3..476d720 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: node_js node_js: - '4.2' -- 'stable' +- 'node' cache: directories: - node_modules diff --git a/webpack.config.js b/webpack.config.js index 4ad8cfe..1ffd29f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,7 @@ var path = require('path'); module.exports = { + devtool: 'cheap-module-source-map', entry: { 'dist': './src/index.js' }, From 8ebfe6eb7ab45f4b94df194b350873d6025ad2e9 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Fri, 14 Apr 2017 14:00:39 -0400 Subject: [PATCH 2/2] Ignore source map output file --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 132627c..5bdbc78 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ npm-* /coverage /dist.js +/dist.js.map