diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index ea6dc4a2..00000000 --- a/.eslintrc.json +++ /dev/null @@ -1,126 +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-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, - "radix": 0 - } -} diff --git a/package.json b/package.json index d823fa6d..980153f8 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.32.0", "fepper-utils": "^1.2.0", "fs-extra": "^7.0.1", - "gulp": "https://github.com/electric-eloquence/gulp/tarball/v3-lts", - "husky": "1.x", - "mocha": "6.x" + "gulp": "https://github.com/electric-eloquence/gulp/tarball/v3-lts@3.9.5" } } diff --git a/test/.eslintrc.json b/test/.eslintrc.json deleted file mode 100644 index 83fc4e84..00000000 --- a/test/.eslintrc.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "../.eslintrc.json", - "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 8756d75c..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('should install 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 1431bf04..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('should copy conf.yml to /', function () { - expect(fs.existsSync('conf.yml')).to.be.true; - }); - - it('should copy patternlab-config.json to /', function () { - expect(fs.existsSync('patternlab-config.json')).to.be.true; - }); - - it('should complete with pref.yml in /', function () { - expect(fs.existsSync('pref.yml')).to.be.true; - }); - - it('should complete with source in /', function () { - expect(fs.existsSync('source')).to.be.true; - }); - - it('should copy extend to /', function () { - expect(fs.existsSync('extend')).to.be.true; - }); - - it('should install npms in /public/', function () { - expect(fs.existsSync('public/node_modules')).to.be.true; - }); - - it('should compile index.html to /public/', function () { - expect(fs.existsSync('public/index.html')).to.be.true; - }); -});