velocious 1.0.205 → 1.0.206

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.
Files changed (2) hide show
  1. package/README.md +9 -0
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -19,6 +19,15 @@ npx velocious init
19
19
 
20
20
  By default, Velocious looks for your configuration in `src/config/configuration.js`. If you keep the configuration elsewhere, make sure your app imports it early and calls `configuration.setCurrent()`.
21
21
 
22
+ # Development
23
+
24
+ When working on Velocious itself, npm scripts are cross-platform (Windows `cmd`/PowerShell and POSIX shells):
25
+
26
+ ```bash
27
+ npm run build
28
+ npm run test
29
+ ```
30
+
22
31
  # Testing
23
32
 
24
33
  Tag tests to filter runs.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "velocious": "build/bin/velocious.js"
4
4
  },
5
5
  "name": "velocious",
6
- "version": "1.0.205",
6
+ "version": "1.0.206",
7
7
  "main": "build/index.js",
8
8
  "types": "build/index.d.ts",
9
9
  "files": [
@@ -11,15 +11,15 @@
11
11
  ],
12
12
  "scripts": {
13
13
  "all-checks": "npm run typecheck && npm run lint && npm run test",
14
- "build": "rm -rf build && npm run compile",
15
- "compile": "tsc -b && npm run copy:ejs && npm run copy:templates && chmod +x build/bin/velocious.js",
14
+ "build": "node scripts/clean-build.js && npm run compile",
15
+ "compile": "tsc -b && npm run copy:ejs && npm run copy:templates && node scripts/ensure-bin-executable.js",
16
16
  "copy:ejs": "cpy \"src/routes/**/*.ejs\" build/src/routes",
17
17
  "copy:templates": "cpy \"src/templates/**/*.js\" build/src/templates",
18
18
  "lint": "eslint",
19
19
  "release:patch": "node scripts/release-patch.js",
20
- "test": "cd spec/dummy && VELOCIOUS_TEST_DIR=$(pwd)/.. node ../../bin/velocious.js test",
20
+ "test": "node scripts/run-tests.js",
21
21
  "test:browser": "node scripts/test-browser.js",
22
- "prepublishOnly": "npm run build && chmod +x build/bin/velocious.js",
22
+ "prepublishOnly": "npm run build && node scripts/ensure-bin-executable.js",
23
23
  "typecheck": "tsc --noEmit",
24
24
  "velocious": "asd",
25
25
  "watch": "tsc -w",