Skip to content

Commit

Permalink
add prepublishOnly script to set extendscript scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Herfst committed Jul 15, 2018
1 parent 87c498a commit 0a83b7e
Show file tree
Hide file tree
Showing 47 changed files with 78 additions and 6 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ Here you can find some modules we host inside our [@extendscript](https://www.np

## Contributing

All **modules** are published in the `@extendscript` scope. Please make sure you have read our [Code of Conduct](https://github.com/ExtendScript/organisation-rules/blob/master/CODE_OF_CONDUCT.md), [Contributing Guidelines](https://github.com/ExtendScript/organisation-rules/blob/master/CONTRIBUTING.md) and [Package Naming Conventions](./docs/Package-Naming-Conventions.md). Then publish using the `--access public` flag:

npm publish --access public
Any contribution is very welcome and much appreaciated. Please read our [Code of Conduct](https://github.com/ExtendScript/organisation-rules/blob/master/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/ExtendScript/organisation-rules/blob/master/CONTRIBUTING.md) before you get started. Thanks!


## More info
Expand Down
3 changes: 2 additions & 1 deletion aes/patch/array.every/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@extendscript/aes.patch.array.every",
"version": "0.1.0",
"version": "1.0.0",
"description": "The `every()` method tests whether all elements in the array pass the test implemented by the provided function.",
"main": "array.every.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion aes/patch/array.every/test/results_log.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ As tests may be run by different people on different platforms the results are l
> Version 0
- ✔ Darwin photoshop-18: array.every [pass: 1, fail: 0]
- ✔ Darwin indesign-12: array.every [pass: 1, fail: 0]
- ✔ Darwin indesign-13: array.every [pass: 1, fail: 0]
- ✔ Darwin indesign-12: array.every [pass: 1, fail: 0]
1 change: 1 addition & 0 deletions aes/patch/array.filter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "array.filter.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/array.find/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "array.find.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/array.foreach/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "array.foreach.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/array.from/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "array.from.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/array.indexof/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "array.indexof.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/array.isarray/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"test-cc2017": "node ./test/array.isarray.test.js indesign-12 photoshop-18",
"test-cc2018": "node ./test/array.isarray.test.js indesign-13 photoshop-19",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/array.lastindexof/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "array.lastindexof.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/array.map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "array.map.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/array.reduce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "array.reduce.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/array.reduceright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "array.reduceright.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/array.some/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"buildenv" : "if [ ! -f ./build-node-venv.sh ]; then curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./build-node-venv.sh; fi; chmod +x ./build-node-venv.sh && ./build-node-venv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/bundle.array/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "bundle.array.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js",
"bundle": "./node_modules/.bin/exsbundlr -i ./bundle.source.js -o ./bundle.array.js"
},
Expand Down
1 change: 1 addition & 0 deletions aes/patch/bundle.es5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "bundle.es5.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js",
"bundle": "./node_modules/.bin/exsbundlr -i ./bundle.es5.source.js -o ./bundle.es5.js"
},
Expand Down
1 change: 1 addition & 0 deletions aes/patch/bundle.es6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "bundle.es6.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js",
"bundle": "./node_modules/.bin/exsbundlr -i ./bundle.es6.source.js -o ./bundle.es6.js"
},
Expand Down
1 change: 1 addition & 0 deletions aes/patch/bundle.object/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "bundle.object.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js",
"bundle": "./node_modules/.bin/exsbundlr -i ./bundle.object.source.js -o ./bundle.object.js"
},
Expand Down
1 change: 1 addition & 0 deletions aes/patch/console.log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "console.log.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/function.bind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "function.bind.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/json.clone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "json.clone.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/json.comparable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "json.comparable.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/json.cycle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "json.cycle.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/json.file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "json.file.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/json.parserecurse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "json.parse-recurse.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/json.parsestate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "json.parse-state.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "json.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/number.isfinite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "number.isfinite.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.assign/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.assign.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.create.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.defineproperties/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.defineproperties.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.defineproperty/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.defineproperty.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.freeze/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.freeze.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.getownpropertydescriptor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.getownpropertydescriptor.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.getownpropertynames/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.getownpropertynames.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.getprototypeof/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.getprototypeof.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.isextensible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.isextensible.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.isfrozen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.isfrozen.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.issealed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.issealed.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.keys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.keys.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.preventextensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.preventextensions.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.seal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.seal.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/object.setprototypeof/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "object.setprototypeof.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions aes/patch/string.trim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "string.trim.js",
"scripts": {
"preinstall": "curl https://raw.githubusercontent.com/ESCPP/build-node-venv/master/build-node-venv.sh > ./.bnv.sh && chmod +x ./.bnv.sh && ./.bnv.sh && rm ./.bnv.sh",
"prepublishOnly": "npm config set scope extendscript",
"test": "node ./test/test.js"
},
"repository": {
Expand Down
30 changes: 30 additions & 0 deletions docs/Publishing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Publishing

All **modules** are published in the `@extendscript` scope.

Creating a module comprises of four stages:

## Stage 1: Update the API Registry

The first step is to add your module to the [API Registry](./API-Registry.md)

## Stage 2. Write-n-Test

There are multipple ways to write and validate your code. See our [Testing Guide](./Testing.md) for testing guidelines. It is recommended to use our [Boilerplate Module](../boilerplate).

## Stage 3. Check Package

A couple of things to double check:

1. Name of the package reflects the structure of [API Registry](./API-Registry.md) and follows the [Package Naming Conventions](./Package-Naming-Conventions.md)
2. Version of the package is correct. We use semantic versioning where initial release for public use is `1.0.0`

Some things to look out for if you did not use our [Boilerplate Module](../boilerplate):

* The `package.json` contains a `prepublishOnly` script set to `npm config set scope extendscript`

## 4. Publish your code

Publish your module with the `--access public` flag:

npm publish --access public
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
* [Dev Environment](./Dev-Environment.md)
* [Package Naming Conventions](./Package-Naming-Conventions.md)
* [Testing](./Testing.md)
* [Publishing](./Publishing.md)
Loading

0 comments on commit 0a83b7e

Please sign in to comment.