mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Dev: Rename cpTestLib script to setup
This commit is contained in:
@@ -10,16 +10,18 @@ After cloning the repo, run:
|
||||
# install npm dependencies.
|
||||
npm install
|
||||
# copy jasmine lib from node_modules to test folder.
|
||||
npm run cpTestLib
|
||||
npm run setup
|
||||
```
|
||||
|
||||
## Commonly used NPM scripts
|
||||
|
||||
```bash
|
||||
# watch and auto re-build, webpack-dev-server is required.
|
||||
# watch and auto re-build.
|
||||
npm run dev
|
||||
# build eruda.js and eruda.min.js
|
||||
npm run build
|
||||
# lint, build and test.
|
||||
npm run ci
|
||||
```
|
||||
|
||||
## Project Structure
|
||||
|
||||
@@ -6,10 +6,10 @@ module.exports = function (config)
|
||||
files: [
|
||||
'eruda.js',
|
||||
'test/init.js',
|
||||
'node_modules/jasmine-core/lib/jasmine-core/jasmine.js',
|
||||
'test/lib/jasmine.js',
|
||||
'node_modules/karma-jasmine/lib/boot.js',
|
||||
'node_modules/karma-jasmine/lib/adapter.js',
|
||||
'node_modules/jasmine-jquery/lib/jasmine-jquery.js',
|
||||
'test/lib/jasmine-jquery.js',
|
||||
'test/console.js',
|
||||
'test/elements.js',
|
||||
'test/features.js',
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"build": "webpack --config script/webpack.dev.js && webpack -p --config script/webpack.release.js",
|
||||
"dev": "webpack-dev-server --config script/webpack.dev.js --host 0.0.0.0",
|
||||
"test": "karma start",
|
||||
"cpTestLib": "node script/cpTestLib",
|
||||
"setup": "node script/cpTestLib",
|
||||
"genScriptUtil": "eustia build script/*.js -o script/util.js",
|
||||
"lint": "eslint --ext .es6 src",
|
||||
"utilDoc": "eustia doc src/lib/util.js -f md -o doc/UTIL_API.md -t \"Eruda Util Documentation\""
|
||||
|
||||
Reference in New Issue
Block a user