1.0.9 • Published 3 years ago

test.htm v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

test.htm

test htm template

usage

  1. Prepare the file 'package.json' of your project;

  2. Install with no-save mode

npm install test.htm --no-save
  1. Run copy-files tool, or double click to run
.\node_modules\test.htm\dev-0-1-copy-files.bat
  • Optional, at first time usage, select 'y' to "Install global environment"; or double click to run './node_modules/test.htm/dev-0-0-install-global.bat';

  • Optional, to copy mocha tools, select 'y' to "Copy for mocha";

  • Optional, to copy develope tools, select 'y' to "Copy develope tools";

  • Optional, to copy tools for multiple projects, to the parent folder, select 'y' to "Copy tools for multiple projects";

  • Optional, to copy tools for http debugging, to the parent folder, select 'y' to "Copy tools for http";

  • Optional, to append project link to the found projects tools, select 'y' to "Append project link";

  • Optional, package 'test.htm' can be removed now, as you like; select 'y' to "Remove/uninstall package 'test.htm'"; or execute manually

npm uninstall test.htm --no-save
  1. Now update file 'test/test-data.js' in your project with your code, and open page 'test/test.htm' to test in browsers; or run 'test-http.bat' and open page '../test-multiple.htm' to test in browsers.
  • If you get error "The system cannot write to the specified device" when running *.bat in Windows system, try to change the font of the console, to such as "Lucida Console".

file structure

├─package.json                             //your package.json
├─node_modules
│  ├─test.htm
│  │  │  .gitignore
│  │  │  dev-0-0-install-global.bat       //initialize environment
│  │  │  dev-0-1-copy-files.bat           //initialize your project
│  │  │  dev-1-browserify-watchify.bat    //develop tool 1: watchify
│  │  │  dev-2-browserify-terser.bat      //develop tool 2: pack
│  │  │  package.json
│  │  │  README.md
│  │  │  sample.js
│  │  │
│  │  ├─release
│  │  │      bundle.js
│  │  │      bundle.min.js
│  │  │
│  │  ├─res
│  │  │      copy-files.js
│  │  │      test-multiple.htm            //multiple projects tool
│  │  │      test-multiple-config.js      //multiple projects tool config
│  │  │      test-http.bat                //http running tool
│  │  │      test-http.js                 //http tool
│  │  │      test-http-config.js          //http tool config
│  │  │      test-http-extension.js       //http tool extension
│  │  │
│  │  └─test
│  │          test-data.js        //user defined test data
│  │          test.htm            //for browser
│  │          test.bat            //for mocha
│  │          test.js             //for mocha
1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago