danila-test 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
- # Temporary Holding Version
1
+ # danila-test
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A tiny test package that prints a greeting.
4
+
5
+ ```bash
6
+ npm test # run the test
7
+ npm start -- Danila # prints "Hello, Danila! (from danila-test)"
8
+ npm publish # publishes to Verdaccio at http://localhost:4873/ (see publishConfig)
9
+ ```
10
+
11
+ To publish a change, edit `index.js`, bump the version (`npm version patch`) and publish again.
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const { greet } = require('..');
5
+
6
+ console.log(greet(process.argv[2]));
package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ function greet(name = 'world') {
4
+ return `Hello, ${name}! (from danila-test)`;
5
+ }
6
+
7
+ module.exports = { greet };
package/package.json CHANGED
@@ -1,6 +1,21 @@
1
1
  {
2
2
  "name": "danila-test",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Test npm package that prints a greeting",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "hello-npm": "bin/hello-npm.js"
8
+ },
9
+ "files": [
10
+ "index.js",
11
+ "bin"
12
+ ],
13
+ "scripts": {
14
+ "start": "node bin/hello-npm.js",
15
+ "test": "node test.js"
16
+ },
17
+ "publishConfig": {
18
+ "registry": "http://localhost:4873/"
19
+ },
20
+ "license": "MIT"
21
+ }