diff --git a/.gitignore b/.gitignore index 9bcd1f1..54e95fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,61 @@ -node_modules/* -lib/* +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Typescript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +lib diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..aa8e45f --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +src/ \ No newline at end of file diff --git a/package.json b/package.json index 57a9755..ae2f715 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simply-js-utils", - "version": "0.0.2", + "version": "0.0.3", "description": "Simple ES6 Js utils", "main": "lib/index.js", "repository": { @@ -18,7 +18,8 @@ "lib": "lib" }, "scripts": { - "prepublish": "node_modules/babel-cli/bin/babel.js src --out-dir lib", + "compile": "node_modules/babel-cli/bin/babel.js --presets es2015 -d lib/ src/", + "prepublish": "npm run compile", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [