Skip to content

Commit

Permalink
Build: Remove 'npm run dev' script
Browse files Browse the repository at this point in the history
Creating a clean slate for
#1581, and to reduce confusion
in the interim.
  • Loading branch information
Krinkle committed Apr 9, 2021
1 parent 09b42b7 commit 7cd8f66
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 245 deletions.
46 changes: 2 additions & 44 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,17 @@ const { preprocess } = require( "./build/dist-replace.js" );
var isCI = process.env.CI || process.env.JENKINS_HOME;

module.exports = function( grunt ) {
var livereloadPort = grunt.option( "livereload-port" ) || 35729;
var connectPort = Number( grunt.option( "connect-port" ) ) || 4000;

// Load grunt tasks from NPM packages
grunt.loadNpmTasks( "grunt-contrib-connect" );
grunt.loadNpmTasks( "grunt-contrib-copy" );
grunt.loadNpmTasks( "grunt-contrib-qunit" );
grunt.loadNpmTasks( "grunt-contrib-watch" );
grunt.loadNpmTasks( "grunt-eslint" );
grunt.loadNpmTasks( "grunt-search" );

grunt.initConfig( {
connect: {
nolivereload: {
base: {
options: {

// grunt-contrib-connect supports 'useAvailablePort' which
Expand All @@ -29,15 +26,6 @@ module.exports = function( grunt ) {
port: connectPort,
base: "."
}
},

// For use by the "watch" task.
livereload: {
options: {
port: connectPort,
base: ".",
livereload: livereloadPort
}
}
},
copy: {
Expand Down Expand Up @@ -168,29 +156,6 @@ module.exports = function( grunt ) {
"test/es2018/async-functions.js",
"test/es2018/throws.js"
]
},
"watch-repeatable": {
options: {
atBegin: true,
spawn: false,
interrupt: true
},
files: [
".eslintrc.json",
"*.js",
"build/*.js",
"{src,test}/**/*.js",
"src/qunit.css",
"test/*.{html,js}",
"test/**/*.html"
],
tasks: [ "build", "livereload", "test-in-watch" ]
},

livereload: {
options: {
port: livereloadPort
}
}
} );

Expand All @@ -203,12 +168,5 @@ module.exports = function( grunt ) {
} );

grunt.loadTasks( "build/tasks" );
grunt.registerTask( "test-base", [ "eslint", "search", "test-on-node" ] );
grunt.registerTask( "test", [ "test-base", "connect:nolivereload", "qunit" ] );
grunt.registerTask( "test-in-watch", [ "test-base", "qunit" ] );

// Start the web server in a watch pre-task
// https://github.com/gruntjs/grunt-contrib-watch/issues/50
grunt.renameTask( "watch", "watch-repeatable" );
grunt.registerTask( "watch", [ "connect:livereload", "watch-repeatable" ] );
grunt.registerTask( "test", [ "eslint", "search", "test-on-node", "connect:base", "qunit" ] );
};
17 changes: 0 additions & 17 deletions build/tasks/livereload.js

This file was deleted.

179 changes: 0 additions & 179 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7cd8f66

Please sign in to comment.