diff --git a/.vscode/settings.json b/.vscode/settings.json index 9cad62dcd..7ccfbbe61 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -27,9 +27,9 @@ "editorGroup.border": "#1b2c8f" }, "files.exclude": { - "**/coulson/bin/**/*": true + "**/scully/bin/**/*": true }, "files.watcherExclude": { - "**/coulson/bin/**": true + "**/scully/bin/**": true } } diff --git a/Documentation/demosteps.md b/Documentation/demosteps.md index 0c69f6a5e..32ed811bb 100644 --- a/Documentation/demosteps.md +++ b/Documentation/demosteps.md @@ -8,7 +8,7 @@ cd demo # start `ng build --prod --sourceMap --watch` in another terminal # we are working with the build files -ng add @herodevs/coulson-generate +ng add @herodevs/scully-generate # Lets make it look a bit better # replace app-component.html with snippet-2 # add snippet-3 to styles.css @@ -22,14 +22,14 @@ ng g m home --route home --module app.module # paste snippet-4 into home.component.ts # replace home.component.html with snippet-5 -ng g @herodevs/coulson-generate:blog +ng g @herodevs/scully-generate:blog # the following steps should be done by the blog generator # add snippet-1 to app-routing.module ng build -npm run coulson +npm run scully # serve up the static site. -npm run coulson serve +npm run scully serve ``` @@ -106,7 +106,7 @@ body { snippet-4 ```typescript index$ = this.crs.available$; - constructor(private crs: CoulsonRoutesService) {} + constructor(private crs: ScullyRoutesService) {} /** NTS: do not forget to add the import! **/ ``` diff --git a/Documentation/gettingStarted.md b/Documentation/gettingStarted.md index 9302e040a..2724741b2 100644 --- a/Documentation/gettingStarted.md +++ b/Documentation/gettingStarted.md @@ -1,16 +1,16 @@ -# Gettings started with coulson +# Gettings started with scully -In an existing Angular app, first install coulson by using the CLI: +In an existing Angular app, first install scully by using the CLI: ```bash -ng add @herodevs/coulson-generate --blog +ng add @herodevs/scully-generate --blog ``` When that is done, the following things will have happened. 1. We installed all the dependencies most of those are only developer dependencies. -2. We added a `coulson.json` sample configuration. +2. We added a `scully.json` sample configuration. The `--blog` is optional and will add the below in one step. @@ -18,31 +18,31 @@ The `--blog` is optional and will add the below in one step. 1. add a folder `./blog` to the project root. 2. add a lazy loaded blog module to your app. 3. put in a sample route to this module -4. added a blog component, that shows how to sue the `` component +4. added a blog component, that shows how to sue the `` component 5. put in a sample mardown first blog entry in the folder You can do this later on by using: ```bash -ng generate @herodevs/coulson-generate:blog +ng generate @herodevs/scully-generate:blog ``` To add a page to the blog you can use: ```bash -ng g @herodevs/coulson-generate:post --title=MyBeautifulWebApp +ng g @herodevs/scully-generate:post --title=MyBeautifulWebApp ``` This will create a new MD file in the `./blog` folder. if you provided the optional `--title` option, it will use the name given, otherwise it will create a file named `blogxxx.md` where xxx is a number. it warns when the file already exists. A blog file will start with an header. We are using the standard [front-matter](https://github.com/jxson/front-matter) to extract this header. -The meta-data available in there will be available to you by injecting the `CoulsonRoutesService` +The meta-data available in there will be available to you by injecting the `ScullyRoutesService` -Now you are ready run the coulson you can do this by: +Now you are ready run the scully you can do this by: ```bash -npm run coulson:generate +npm run scully:generate ``` When are done with this, inside your dist folder is a static folder, with all pages generated. diff --git a/Documentation/schematics.md b/Documentation/schematics.md index e4da233b8..8c85e388a 100644 --- a/Documentation/schematics.md +++ b/Documentation/schematics.md @@ -1,7 +1,7 @@ # schematics -### @herodevs/coulson +### @herodevs/scully Generate function for create static pages. @@ -10,7 +10,7 @@ Generate function for create static pages. #### Steps to use -- `ng add @herodevs/coulson` +- `ng add @herodevs/scully` #### Options @@ -18,7 +18,7 @@ WIP #### Dev mode -copy the build for get the new coulson version +copy the build for get the new scully version - run `npm run copy:generate` Dev mode @@ -26,7 +26,7 @@ Dev mode - `npm run schematics` -We use : `"schematics": "schematics .:coulson --debug=false --force"` +We use : `"schematics": "schematics .:scully --debug=false --force"` - `debug`is for create the files - `force` is for rewrite the created files diff --git a/README.md b/README.md index d72bd35b1..6616a5c5e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Coulson +# Scully [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) @@ -18,4 +18,4 @@ This is the initial setup. ## bazel things -All with ibazel is watch mode, the same without the i is no-watch \ No newline at end of file +All with ibazel is watch mode, the same without the i is no-watch diff --git a/WORKSPACE b/WORKSPACE index 220f8e872..910897102 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -4,7 +4,7 @@ # See https://docs.bazel.build/versions/master/build-ref.html#workspace workspace( # How this workspace would be referenced with absolute labels from another workspace - name = "coulson", + name = "scully", # Map the @npm bazel workspace to the node_modules directory. # This lets Bazel use the same node_modules as other local tooling. managed_directories = {"@npm": ["node_modules"]}, @@ -39,4 +39,4 @@ load("@npm_bazel_typescript//:index.bzl", "ts_setup_workspace") ts_setup_workspace() load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories") -node_repositories(package_json = ["//:package.json"]) \ No newline at end of file +node_repositories(package_json = ["//:package.json"]) diff --git a/scully.json b/scully.json index 654d4b264..691aff28d 100644 --- a/scully.json +++ b/scully.json @@ -1,8 +1,8 @@ { - // This is a sample Coulson config file + // This is a sample Scully config file // The projectroot is mandatory "projectRoot": "./projects/sampleBlog/src/app", - // Define coulson augmented routes here + // Define scully augmented routes here "routes": { /** * use the exact routename from your Angular application. diff --git a/scully/BUILD.bazel b/scully/BUILD.bazel index 278abb4bc..a313cea4e 100644 --- a/scully/BUILD.bazel +++ b/scully/BUILD.bazel @@ -6,7 +6,7 @@ package(default_visibility=["//visibility:public"]) load("@npm_bazel_typescript//:index.bzl", "ts_library") exports_files([ - "tsconfig.coulson.json" + "tsconfig.scully.json" ]) load("@npm//typescript:index.bzl", "tsc") @@ -21,7 +21,7 @@ tsc( args = [ "--outDir", "$@", - "--lib", + "--lib",scully "es2017,dom", "--downlevelIteration", "--declaration", @@ -32,10 +32,10 @@ tsc( ) ts_library( - name = "coulson-ts", - tsconfig = "tsconfig.coulson.json", + name = "scully-ts", + tsconfig = "tsconfig.scully.json", srcs = glob(["*.ts", "**/*.ts"]), - module_name = "@herodevs/coulson", + module_name = "@herodevs/scully", deps = [ "@npm//fs-extra", "@npm//rxjs", @@ -65,7 +65,7 @@ load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary") nodejs_binary( name = "run", - data = [":coulson-ts"], + data = [":scully-ts"], entry_point = ":index.ts", args = ["serve"], visibility = ["//visibility:public"], diff --git a/scully/tsconfig.scully.json b/scully/tsconfig.scully.json index ab299923f..a7ebe0f36 100644 --- a/scully/tsconfig.scully.json +++ b/scully/tsconfig.scully.json @@ -1,7 +1,7 @@ { "compileOnSave": false, "compilerOptions": { - "baseUrl": "./coulson", + "baseUrl": "./scully", "declaration": true, "downlevelIteration": true, "esModuleInterop": true, diff --git a/testPlgin/tsconfig.custom-coulson.json b/testPlgin/tsconfig.custom-coulson.json index d473e0adc..63d652540 100644 --- a/testPlgin/tsconfig.custom-coulson.json +++ b/testPlgin/tsconfig.custom-coulson.json @@ -16,9 +16,9 @@ "typeRoots": ["../node_modules/@types"], "paths": { "*": ["node_modules/*"], - "@herodevs/coulson": ["../coulson"] + "@herodevs/scully": ["../scully"] } }, - "files": [ "coulson.custom.ts"], + "files": [ "scully.custom.ts"], "exclude": ["./bin/**/*"] }