forked from Shopify/js-buy-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
128 lines (128 loc) · 9.02 KB
/
package.json
File metadata and controls
128 lines (128 loc) · 9.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"name": "shopify-buy-fnx",
"version": "0.7.2",
"description": "The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.",
"main": "lib/shopify.js",
"jsnext:main": "es/shopify.js",
"repository": "git@github.com:Shopify/js-buy-sdk.git",
"scripts": {
"prepublish": "npm run build",
"postpublish": "rm polyfilled.js",
"?start": "Use this for development. Run tests in Browser at http://localhost:4200. Watches src/ and tests/ folders and rebuild as needed.",
"start": "rimraf dist/; mkdir dist/; rimraf .dist-test/; mkdir .dist-test/; concurrently 'npm run test-sdk:build' 'npm run test:watch' 'http-server -p 4200 .dist-test/' 'npm run -s start:wait-print-msg'",
"?test": "Run tests in terminal",
"test": "rimraf dist/; mkdir dist/; rimraf .dist-test/; mkdir .dist-test/; npm run test:setup && testem ci",
"?test-example": "Will run tests on working examples from examples/ via Selenium. Tests are written under examples/cart/specs/",
"test-example": "rimraf .dist-test/; mkdir .dist-test/; selenium-standalone install && concurrently 'npm run test:setup' 'npm run umd-shopify-buy-polyfilled:build' 'npm run examples:build' && cp dist/shopify-buy.umd.polyfilled.js .dist-test/shopify-buy.umd.polyfilled.js && npm run test-example:run",
"test-ci": "rimraf dist/; mkdir dist/; rimraf .dist-test/; mkdir .dist-test/; npm run test:setup && testem ci -R xunit > tests.xml",
"?examples:serve": "Will run examples/ at http://localhost:4200",
"examples:serve": "rimraf .dist-test/; mkdir .dist-test/; rimraf dist/; mkdir dist/; npm run examples:build && concurrently 'npm run umd-shopify-buy:watch' 'http-server -p 4200 .dist-test/'",
"?build": "Will build a umd build of this module. Also will export a CommonJS build to the lib/ directory, an jsnext export to es/",
"build": "rimraf dist/; mkdir dist/; rimraf lib/; mkdir lib/; rimraf es/; mkdir es/; concurrently 'npm run umd-shopify-buy:build' 'npm run umd-shopify-buy-polyfilled:build' && concurrently 'npm run umd-shopify-buy:minify' 'npm run umd-shopify-buy-polyfilled:minify' 'npm run commonjs:build' 'npm run commonjs-polyfilled:build' 'npm run jsnext:build' 'npm run jsnext-polyfilled:build'",
"?doc:build": "Builds docs for the js-buy-sdk",
"doc:build": "./scripts/build-doc",
"?doc:serve": "Will serve docs locally via Jekyll",
"doc:serve": "jekyll serve -s docs",
"info": "npm-scripts-info",
"------ Scripts used to build JS for distribution": null,
"umd-shopify-buy:watch": "nodemon --exec 'npm run umd-shopify-buy-all:build && cp dist/*.js .dist-test/' -w src/",
"umd-shopify-buy-all:build": "concurrently 'npm run umd-shopify-buy:build' 'npm run umd-shopify-buy-polyfilled:build'",
"umd-shopify-buy:build": "rollup -f cjs src/shopify.js | node scripts/runBabel umd $(get-project-version --template v{{version}}-{{commit}}) > dist/shopify-buy.umd.js",
"umd-shopify-buy:minify": "uglifyjs --compress --mangle -o dist/shopify-buy.umd.min.js -- dist/shopify-buy.umd.js",
"umd-shopify-buy-polyfilled:build": "rollup -f cjs --config .rollup.config.js src/shopify-polyfilled.js | node scripts/runBabel umd $(get-project-version --template v{{version}}-{{commit}}) > dist/shopify-buy.umd.polyfilled.js",
"umd-shopify-buy-polyfilled:minify": "uglifyjs --compress --mangle -o dist/shopify-buy.umd.polyfilled.min.js -- dist/shopify-buy.umd.polyfilled.js",
"commonjs:build": "rollup -f cjs --config .rollup.config.js src/shopify.js | node scripts/runBabel commonjs $(get-project-version --template v{{version}}-{{commit}}) > lib/shopify.js",
"commonjs-polyfilled:build": "VERSION=$(get-project-version --template v{{version}}-{{commit}}) rollup -f cjs --config .rollup.config.js src/shopify-polyfilled.js | node scripts/runBabel commonjs $(get-project-version --template v{{version}}-{{commit}}) > polyfilled.js",
"jsnext:build": "rollup -f es --config .rollup.config.js src/shopify.js | node scripts/runBabel jsnext $(get-project-version --template v{{version}}-{{commit}}) > es/shopify.js",
"jsnext-polyfilled:build": "mkdir es/; rollup -f es --config .rollup.config.js src/shopify-polyfilled.js | node scripts/runBabel jsnext $(get-project-version --template v{{version}}-{{commit}}) > es/polyfilled.js",
"------ Scripts to compile JS for testing": null,
"test:setup": "npm run test-sdk:build && npm run test:build",
"test:build": "concurrently 'npm run tests-polyfill:build' 'npm run amd-shopify-buy:build' 'npm run tests:build'",
"test:watch": "concurrently 'npm run tests-polyfill:build' 'npm run amd-shopify-buy:watch' 'npm run tests:watch'",
"test-sdk:build": "concurrently 'npm run qunit:copy' 'cp tests/index.html .dist-test/index.html' && node scripts/build-testing-sdk.js > .dist-test/sdk-testing.js",
"tests:build": "npm run qunit-shim:build && npm run amd-tests:build",
"tests:watch": "npm run qunit-shim:build && npm run amd-tests:watch",
"tests-polyfill:build": "rollup --config .rollup.config.js src/polyfills.js | node scripts/runBabel umd $(get-project-version --template v{{version}}-{{commit}}) > .dist-test/polyfills.js",
"amd-tests:build": "cross-env BABEL_ENV=amd-tests babel tests/ > .dist-test/tests.js",
"amd-tests:watch": "cross-env BABEL_ENV=amd-tests babel -w src/ -o .dist-test/tests.js tests",
"amd-shopify-buy:build": "BABEL_ENV=amd VERSION=$(get-project-version --template v{{version}}-{{commit}}) babel src/ > .dist-test/shopify-buy.amd.js",
"amd-shopify-buy:watch": "nodemon --exec 'npm run amd-shopify-buy:build' -w src/",
"qunit-shim:build": "cross-env BABEL_ENV=amd-test-qunit-shim babel tests/shims/ > .dist-test/qunit-shim.js",
"qunit:copy": "cp node_modules/qunitjs/qunit/qunit.js .dist-test/qunit.js && cp node_modules/qunitjs/qunit/qunit.css .dist-test/qunit.css",
"------ Scripts for testing-examples": null,
"test-example:run": "concurrently -k --success last 'selenium-standalone start -- -log selenium.log' 'http-server -p 4200 .dist-test/' 'npm run wdio:run'",
"test-example:build": "",
"wdio:run": "wait-on tcp:4444 && wait-on tcp:4200 && wdio --logLevel silent .dist-test/examples/cart/wdio.conf.js",
"examples:build": "npm run examples:copy && npm run examples-css:build",
"examples-css:build": "concurrently 'npm run examples-css-cart:build' 'npm run examples-css-checkout:build'",
"examples-css-cart:build": "node-sass examples/cart/styles/styles.scss > .dist-test/examples/cart/index.css",
"examples-css-checkout:build": "node-sass examples/checkout/styles/styles.scss > .dist-test/examples/checkout/index.css",
"examples:copy": "cp -r examples .dist-test/examples",
"------ Script used print out a nice start message once start is ready to go": null,
"start:wait-print-msg": "wait-on file:.dist-test/sdk-testing.js file:.dist-test/tests.js tcp:4200 && echo \"\n\n⚡️⚡️⚡️ Good to go at http://localhost:4200 ⚡️⚡️⚡️\""
},
"author": "Shopify Inc.",
"license": "MIT",
"dependencies": {
"whatwg-fetch": "0.10.1",
"node-fetch": "1.3.3",
"core-js": "2.4.1",
"Base64": "0.3.0"
},
"devDependencies": {
"aws-sdk": "2.2.44",
"babel-cli": "6.11.4",
"babel-core": "6.13.2",
"babel-eslint": "6.1.2",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-add-shopify-header": "1.0.5",
"babel-plugin-eslint-test-generator": "1.0.1",
"babel-plugin-rename-umd-globals": "0.0.3",
"babel-plugin-transform-es2015-modules-amd": "6.8.0",
"babel-plugin-transform-es2015-modules-umd": "6.12.0",
"babel-plugin-transform-es3-member-expression-literals": "6.8.0",
"babel-plugin-transform-es3-property-literals": "6.8.0",
"babel-plugin-transform-es5-property-mutators": "6.8.0",
"babel-plugin-transform-inline-environment-variables": "6.8.0",
"babel-preset-es2015": "6.9.0",
"commander": "2.9.0",
"concurrently": "2.2.0",
"cross-env": "2.0.0",
"eslint": "3.3.1",
"eslint-config-nightmare-mode": "2.3.0",
"fake-xml-http-request": "1.4.0",
"get-project-version": "1.0.3",
"get-stdin": "5.0.1",
"git-rev": "0.2.1",
"glob": "7.0.5",
"http-server": "0.9.0",
"js-string-escape": "1.0.0",
"loader.js": "3.5.0",
"mime-types": "2.1.10",
"mocha": "2.5.3",
"node-sass": "3.8.0",
"nodegit": "0.13.0",
"nodemon": "1.10.0",
"npm-scripts-info": "0.3.6",
"pretender": "0.10.1",
"qunitjs": "1.20.0",
"rimraf": "2.5.4",
"rollup": "0.36.3",
"rollup-plugin-commonjs": "5.0.5",
"rollup-plugin-node-resolve": "2.0.0",
"route-recognizer": "0.1.9",
"selenium-standalone": "5.5.0",
"testem": "0.9.11",
"uglify-js": "2.7.0",
"wait-on": "1.5.2",
"wdio-dot-reporter": "0.0.5",
"wdio-junit-reporter": "0.1.0",
"wdio-mocha-framework": "0.3.1",
"webdriverio": "4.0.9",
"yuidoc-lucid-theme": "git+ssh://git@github.com:Shopify/yuidoc-lucid-theme.git#c9c62ba",
"yuidocjs": "0.10.2"
},
"browser": {
"node-fetch": false
}
}