From a58a5c2001b3f2a5771c66d2f4a06e4ca8aa86fb Mon Sep 17 00:00:00 2001 From: e2tha-e Date: Wed, 18 Nov 2020 11:20:36 -0500 Subject: [PATCH] 0.13.1 --- .eslintrc.json | 129 -------------------------------- package.json | 14 +--- test/.eslintrc.json | 15 ---- test/install-extension-tests.js | 10 --- test/install-tests.js | 34 --------- 5 files changed, 2 insertions(+), 200 deletions(-) delete mode 100644 .eslintrc.json delete mode 100644 test/.eslintrc.json delete mode 100644 test/install-extension-tests.js delete mode 100644 test/install-tests.js diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 328e9b9d..00000000 --- a/.eslintrc.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "extends": "eslint:recommended", - "env": { - "browser": true, - "es6": true - }, - "parserOptions": { - "ecmaVersion": 8 - }, - "globals": { - "$": true - }, - "rules": { - // error - "array-bracket-spacing": [2, "never"], - "block-scoped-var": 2, - "brace-style": [2, "stroustrup", { - "allowSingleLine": true - }], - "comma-dangle": [2, "never"], - "comma-spacing": 2, - "comma-style": [2, "last"], - "computed-property-spacing": [2, "never"], - "curly": [2, "all"], - "eol-last": 2, - "eqeqeq": [2, "always"], - "guard-for-in": 2, - "indent": [2, 2, { - "MemberExpression": "off", - "SwitchCase": 1 - }], - "key-spacing": [2, { - "beforeColon": false, - "afterColon": true - }], - "keyword-spacing": 2, - "linebreak-style": [2, "unix"], - "lines-around-comment": [2, { - "beforeBlockComment": true, - "afterBlockComment": false - }], - "new-parens": 2, - "no-array-constructor": 2, - "no-caller": 2, - "no-catch-shadow": 2, - "no-console": 2, - "no-empty": [2, { - "allowEmptyCatch": true - }], - "no-eval": 2, - "no-extend-native": 2, - "no-extra-bind": 2, - "no-extra-parens": [2, "functions"], - "no-implied-eval": 2, - "no-iterator": 2, - "no-label-var": 2, - "no-labels": [2, { - "allowLoop": true, - "allowSwitch": true - }], - "no-lone-blocks": 2, - "no-loop-func": 2, - "no-multi-spaces": [2, { - "ignoreEOLComments": true - }], - "no-multi-str": 2, - "no-native-reassign": 2, - "no-nested-ternary": 2, - "no-new-func": 2, - "no-new-object": 2, - "no-new-wrappers": 2, - "no-octal-escape": 2, - "no-param-reassign": [2, { - "props": false - }], - "no-process-exit": 2, - "no-proto": 2, - "no-return-assign": 2, - "no-script-url": 2, - "no-sequences": 2, - "no-shadow-restricted-names": 2, - "no-spaced-func": 2, - "no-trailing-spaces": 2, - "no-undef-init": 2, - "no-undefined": 2, - "no-unused-vars": [2, { - "args": "after-used", - "vars": "all" - }], - "no-with": 2, - "object-curly-spacing": [2, "never"], - "one-var": [2, "never"], - "quote-props": [2, "consistent-as-needed"], - "quotes": [2, "single"], - "semi": [2, "always"], - "semi-spacing": [2, { - "before": false, - "after": true - }], - "space-before-blocks": [2, "always"], - "space-before-function-paren": [2, { - "anonymous": "always", - "named": "never" - }], - "space-in-parens": [2, "never"], - "space-infix-ops": 2, - "space-unary-ops": [2, { - "nonwords": false, - "words": true - }], - "spaced-comment": [2, "always"], - "strict": [2, "function"], - "yoda": [2, "never"], - // warn - "max-len": [1, 120, 4, { - "ignoreComments": false, - "ignoreUrls": true - }], - "max-nested-callbacks": [1, 4], - "no-unused-expressions": 1, - "no-use-before-define": 1, - "valid-jsdoc": [1, { - "requireReturn": false - }], - // off - "no-duplicate-case": 0, - "no-fallthrough": 0 - } -} diff --git a/package.json b/package.json index e36c8b7d..94fe8b5e 100644 --- a/package.json +++ b/package.json @@ -4,15 +4,7 @@ "scripts": { "install-base": "node run/install-base.js", "postinstall": "node run/install.js", - "start": "node node_modules/fepper/index.js", - "test": "npm run test:eslint && npm run test:mocha", - "test:eslint": "eslint run && eslint test", - "test:mocha": "mocha test/install-tests.js && mocha test/install-extension-tests.js" - }, - "husky": { - "hooks": { - "pre-push": "npm test" - } + "start": "node node_modules/fepper/index.js" }, "repository": { "type": "git", @@ -46,8 +38,6 @@ "fepper": "^0.34.2", "fepper-utils": "^1.3.5", "fs-extra": "^8.1.0", - "gulp": "https://github.com/electric-eloquence/gulp/tarball/v3-lts", - "husky": "4.x", - "mocha": "7.x" + "gulp": "https://github.com/electric-eloquence/gulp/tarball/v3-lts@3.9.13" } } diff --git a/test/.eslintrc.json b/test/.eslintrc.json deleted file mode 100644 index db286ba6..00000000 --- a/test/.eslintrc.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "env": { - "browser": false, - "mocha": true, - "node": true - }, - "globals": { - }, - "rules": { - "max-len": 0, - "no-multi-str": 0, - "no-unused-expressions": 0, - "strict": [2, "safe"] - } -} diff --git a/test/install-extension-tests.js b/test/install-extension-tests.js deleted file mode 100644 index 87c2a002..00000000 --- a/test/install-extension-tests.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -const {expect} = require('chai'); -const fs = require('fs-extra'); - -describe('Extension Installer', function () { - it('installs npms in /extend/', function () { - expect(fs.existsSync('extend/node_modules')).to.be.true; - }); -}); diff --git a/test/install-tests.js b/test/install-tests.js deleted file mode 100644 index 786d8dca..00000000 --- a/test/install-tests.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -const {expect} = require('chai'); -const fs = require('fs-extra'); - -describe('Installer', function () { - it('copies conf.yml to /', function () { - expect(fs.existsSync('conf.yml')).to.be.true; - }); - - it('copies patternlab-config.json to /', function () { - expect(fs.existsSync('patternlab-config.json')).to.be.true; - }); - - it('completes with pref.yml in /', function () { - expect(fs.existsSync('pref.yml')).to.be.true; - }); - - it('completes with source in /', function () { - expect(fs.existsSync('source')).to.be.true; - }); - - it('copies extend to /', function () { - expect(fs.existsSync('extend')).to.be.true; - }); - - it('installs npms in /public/', function () { - expect(fs.existsSync('public/node_modules')).to.be.true; - }); - - it('compiles index.html to /public/', function () { - expect(fs.existsSync('public/index.html')).to.be.true; - }); -});