From 308c8bd499cbd0f2ac0817b90cd4da5c21b71b51 Mon Sep 17 00:00:00 2001 From: Demven Date: Thu, 22 Mar 2018 17:52:20 -0400 Subject: [PATCH] Updates before release; --- .editorconfig | 12 +++++++++ .gitignore | 64 +++-------------------------------------------- .npmignore | 6 +++++ package-lock.json | 3 +-- package.json | 13 +++++++--- 5 files changed, 31 insertions(+), 67 deletions(-) create mode 100644 .editorconfig create mode 100644 .npmignore diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a443ba7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/.gitignore b/.gitignore index 7d0b173..413c9b1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,61 +1,3 @@ -# 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 - -# built files -dist/ +.idea +/node_modules/ +dist \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..d40cdc5 --- /dev/null +++ b/.npmignore @@ -0,0 +1,6 @@ +.idea +/node_modules/ +/src +/.editorconfig +/.gitignore +/.circleci diff --git a/package-lock.json b/package-lock.json index b879eca..1d431bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9842,8 +9842,7 @@ "uuid": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz", - "integrity": "sha1-EsUou51Y0LkmXZovbw/ovhf/HxQ=", - "dev": true + "integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA==" }, "validate-npm-package-license": { "version": "3.0.3", diff --git a/package.json b/package.json index 08d474e..b5f369b 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,15 @@ { "author": "The Daily Beast", "dependencies": { - "react": "^16.2.0", - "react-dom": "^16.2.0" + "react": "16.2.0", + "react-dom": "16.2.0", + "uuid": "^3.2.1" }, "jest": { - "testPathIgnorePatterns": ["node_modules", "dist"] + "testPathIgnorePatterns": [ + "node_modules", + "dist" + ] }, "description": "Mobiledoc renderer that outputs valid react jsx", "devDependencies": { @@ -27,7 +31,8 @@ "build": "rimraf dist && babel src -d dist", "jest": "jest", "lint": "semistandard", - "prepublish": "npm run build", + "prepare": "npm run build", + "prepublishOnly": "npm run build && npm run test", "start": "babel-node src/index.js", "test": "semistandard && jest" },