Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update npm scripts for Windows #118

Merged
merged 1 commit into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions package-lock.json

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

39 changes: 20 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"module": "dist/mparticle.esm.js",
"repository": "https://github.com/mParticle/mparticle-web-sdk",
"scripts": {
"build": "ENVIRONMENT=prod BUILDALL=true rollup --config rollup.config.js",
"build:dev": "ENVIRONMENT=dev BUILD=iife rollup --config rollup.config.js",
"build:iife": "ENVIRONMENT=prod BUILD=iife rollup --config rollup.config.js",
"build:npm": "ENVIRONMENT=prod BUILD=cjs rollup --config rollup.config.js",
"build:esm": "ENVIRONMENT=prod BUILD=esm rollup --config rollup.config.js",
"build:stub": "ENVIRONMENT=prod BUILD=stub rollup --config rollup.config.js",
"build": "cross-env ENVIRONMENT=prod BUILDALL=true rollup --config rollup.config.js",
"build:dev": "cross-env ENVIRONMENT=dev BUILD=iife rollup --config rollup.config.js",
"build:iife": "cross-env ENVIRONMENT=prod BUILD=iife rollup --config rollup.config.js",
"build:npm": "cross-env ENVIRONMENT=prod BUILD=cjs rollup --config rollup.config.js",
"build:esm": "cross-env ENVIRONMENT=prod BUILD=esm rollup --config rollup.config.js",
"build:stub": "cross-env ENVIRONMENT=prod BUILD=stub rollup --config rollup.config.js",
"build:docs": "yuidoc src/",
"build:snippet": "uglifyjs snippet.js -nm -o snippet.min.js",
"build:browserify:cjs": "browserify test/integrations/cjs/browserify/index.js -o test/integrations/cjs/dist/browserify-output.js && npm run test:karma:browserify:cjs",
Expand All @@ -35,23 +35,23 @@
"build:rollup:module": "rollup --config test/integrations/module/rollup/rollup.config.js && npm run test:karma:rollup:module",
"build:webpack:module": "webpack --config test/integrations/module/webpack/webpack.config.js && npm run test:karma:webpack:module",
"build:ts": "tsc -p .",
"test": "npm run build && TESTTYPE=main ENVIRONMENT=prod rollup --config rollup.test.config.js && DEBUG=false karma start test/karma.config.js",
"test:debug": "DEBUG=true karma start test/karma.config.js",
"test:stub": "TESTTYPE=stub ENVIRONMENT=prod rollup --config rollup.test.config.js && karma start test/stub/karma.stub.config.js",
"test": "npm run build && cross-env TESTTYPE=main ENVIRONMENT=prod rollup --config rollup.test.config.js && cross-env DEBUG=false karma start test/karma.config.js",
"test:debug": "cross-env DEBUG=true karma start test/karma.config.js",
"test:stub": "cross-env TESTTYPE=stub ENVIRONMENT=prod rollup --config rollup.test.config.js && karma start test/stub/karma.stub.config.js",
"test:integrations": "npm run test:requirejs && npm run test:integrations:cjs && npm run test:integrations:module",
"test:integrations:cjs": "npm run build:browserify:cjs && npm run build:webpack:cjs && npm run build:rollup:cjs",
"test:integrations:module": "npm run build:webpack:module && npm run build:rollup:module",
"test:requirejs": "npm run test:requirejs:before && npm run test:requirejs:after",
"test:requirejs:before": "FILE_ORDER=before_mp karma start test/integrations/requirejs/karma.requirejs.config.js",
"test:requirejs:after": "FILE_ORDER=after_mp karma start test/integrations/requirejs/karma.requirejs.config.js",
"test:karma:webpack:cjs": "BUNDLER=webpack karma start test/integrations/cjs/karma.webpack.config.js",
"test:karma:browserify:cjs": "BUNDLER=browserify karma start test/integrations/cjs/karma.browserify.config.js",
"test:karma:rollup:cjs": "BUNDLER=rollup karma start test/integrations/cjs/karma.rollup.config.js",
"test:karma:webpack:module": "BUNDLER=webpack karma start test/integrations/module/karma.webpack.config.js",
"test:karma:rollup:module": "BUNDLER=rollup karma start test/integrations/module/karma.rollup.config.js",
"watch": "ENVIRONMENT=dev BUILD=iife rollup --config rollup.config.js -w",
"watch:all": "ENVIRONMENT=prod BUILDALL=true rollup --config rollup.config.js -w",
"watch:tests": "ENVIRONMENT=dev TESTTYPE=main rollup --config rollup.test.config.js -w",
"test:requirejs:before": "cross-env FILE_ORDER=before_mp karma start test/integrations/requirejs/karma.requirejs.config.js",
"test:requirejs:after": "cross-env FILE_ORDER=after_mp karma start test/integrations/requirejs/karma.requirejs.config.js",
"test:karma:webpack:cjs": "cross-env BUNDLER=webpack karma start test/integrations/cjs/karma.webpack.config.js",
"test:karma:browserify:cjs": "cross-env BUNDLER=browserify karma start test/integrations/cjs/karma.browserify.config.js",
"test:karma:rollup:cjs": "cross-env BUNDLER=rollup karma start test/integrations/cjs/karma.rollup.config.js",
"test:karma:webpack:module": "cross-env BUNDLER=webpack karma start test/integrations/module/karma.webpack.config.js",
"test:karma:rollup:module": "cross-env BUNDLER=rollup karma start test/integrations/module/karma.rollup.config.js",
"watch": "cross-env ENVIRONMENT=dev BUILD=iife rollup --config rollup.config.js -w",
"watch:all": "cross-env ENVIRONMENT=prod BUILDALL=true rollup --config rollup.config.js -w",
"watch:tests": "cross-env ENVIRONMENT=dev TESTTYPE=main rollup --config rollup.test.config.js -w",
"lint": "eslint src/ test/src/",
"gts:check": "gts check",
"gts:fix": "gts fix",
Expand Down Expand Up @@ -81,6 +81,7 @@
"browser-sync": "^2.26.3",
"browserify": "^16.3.0",
"chai": "^4.2.0",
"cross-env": "^7.0.3",
"eslint": "^6.4.0",
"eslint-config-prettier": "6.3.0",
"eslint-plugin-prettier": "3.1.1",
Expand Down