From 6a0447190871add022b44032bf67bc018f1003ce Mon Sep 17 00:00:00 2001 From: scott-wyatt Date: Sat, 29 Sep 2018 18:18:47 -0400 Subject: [PATCH] [fix] archetype --- README.md | 15 +++++++++++---- archetype/package.json | 4 +++- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 149c369..de7d6bc 100755 --- a/README.md +++ b/README.md @@ -12,16 +12,21 @@ Fabrix is a strongly typed modern web application framework for Node.js. It buil ## Getting Started #### Install -The Fabrix CLI is still under development so the following is a placeholder. +Install the Fabrix CLI. This will help you generate a Fabrix app and more quickly. ```sh -$ npm install @fabrix/fab-cli +$ npm install @fabrix/fab-cli -g +``` + +#### Generate A New Fabrix App +```sh +$ fab app ``` #### Start Sewing Fabrix uses a CLI to generate scaffolding for new -applications, and to create resources inside the application. (TODO) +applications, and to create resources inside the application. ```sh $ fab --help @@ -30,6 +35,8 @@ Usage: fab Generators: + Create New App + fab app Create New Model fab model @@ -51,7 +58,7 @@ Generators: Once installation is complete, begin weaving! ```sh -$ npm run build && node dist/server.js +$ npm run compile && node dist/server.js ``` #### Sew on and Sew Forth! diff --git a/archetype/package.json b/archetype/package.json index b182b9c..b03a37c 100755 --- a/archetype/package.json +++ b/archetype/package.json @@ -9,7 +9,8 @@ "watch": "tsc -w -p ./src/tsconfig.release.json", "test": "npm run clean && npm run lint && npm run build && nyc mocha", "prepublishOnly": "npm run compile", - "compile": "npm run clean && npm run build", + "compile": "npm run clean && npm run build && npm run copy", + "copy": "copyfiles -u 1 src/**/*.json dist", "clean": "rm -rf dist" }, "main": "dist/index.js", @@ -22,6 +23,7 @@ "@fabrix/spool-repl": "^1.5", "@fabrix/lint": "^1.0.0-alpha.3", "@types/node": "~10.3.4", + "copyfiles": "^2.0.0", "mocha": "^5", "nyc": "^13.0.1", "supertest": "^3", diff --git a/package-lock.json b/package-lock.json index 0275bd8..c1afdef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@fabrix/fabrix", - "version": "1.5.7", + "version": "1.5.8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 1cfcdca..332fb32 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fabrix/fabrix", - "version": "1.5.7", + "version": "1.5.8", "description": "Strongly Typed Modern Web Application Framework for Node.js", "keywords": [ "framework",