diff --git a/.eslintrc b/.eslintrc index 7cff9f7..21e08dd 100644 --- a/.eslintrc +++ b/.eslintrc @@ -44,7 +44,6 @@ "browser": true, "node": false }, - "extends": ["eslint:recommended", "webrtc"], "globals": { "adapter": true, "audioContext": true, diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4056e71..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -dist: trusty -language: node_js -cache: - - node_modules -node_js: - - 6 - -branches: - only: - - gh-pages - -script: - - grunt diff --git a/Gruntfile.js b/Gruntfile.js index 4508e5c..d2e3a54 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -20,29 +20,11 @@ module.exports = function(grunt) { }, target: ['src/**/*.js'] }, - // Runs the npm test command which has access to the grunt path. - githooks: { - all: { - options: { - command: 'npm', - }, - 'pre-commit': 'test' - } - }, - htmlhint: { - html1: { - src: ['src/**/*.html'] - }, - html2: { - src: ['index.html'] - } - }, }); // enable plugins grunt.loadNpmTasks('grunt-contrib-csslint'); grunt.loadNpmTasks('grunt-eslint'); - grunt.loadNpmTasks('grunt-githooks'); grunt.loadNpmTasks('grunt-htmlhint'); // set default tasks to run when grunt is called without parameters diff --git a/package.json b/package.json index a546f82..f0bc0dc 100644 --- a/package.json +++ b/package.json @@ -20,17 +20,13 @@ }, "scripts": { "test": "grunt", - "postinstall": "grunt githooks" + "start": "http-server . -c-1" }, "devDependencies": { - "eslint-config-webrtc": ">=1.0.0", - "express": "^4.14.1", - "grunt": ">=0.4.5", - "grunt-cli": ">=0.1.9", - "grunt-contrib-csslint": ">=0.3.1", - "grunt-eslint": ">=17.2.0", - "grunt-githooks": ">=0.3.1", - "grunt-htmlhint": ">=0.9.12", - "pem": ">=1.9.4" + "grunt": "^1.3.0", + "grunt-cli": "^1.3.2", + "grunt-contrib-csslint": "^2.0.0", + "grunt-eslint": "^23.0.0", + "http-server": "^0.12.3" } } diff --git a/web_server/server.js b/web_server/server.js deleted file mode 100644 index a85de6c..0000000 --- a/web_server/server.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. - * - * Use of this source code is governed by a BSD-style license - * that can be found in the LICENSE file in the root of the source - * tree. - */ - /* eslint-env node */ - -'use strict'; - -var express = require('express'); -var https = require('https'); -var pem = require('pem'); - -pem.createCertificate({days: 1, selfSigned: true}, function(err, keys) { - var options = { - key: keys.serviceKey, - cert: keys.certificate - }; - - var app = express(); - - app.use(express.static('../')); - - // Create an HTTPS service. - https.createServer(options, app).listen(8080); - - console.log('serving on https://localhost:8080'); -});