Skip to content

Commit

Permalink
chore(playground): remove schematics watch task (#1154)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg authored and nnixaa committed Jan 15, 2019
1 parent c83188c commit 78e283c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 49 deletions.
7 changes: 4 additions & 3 deletions DEV_DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ add it to docs/structure.ts

create example usage of your component
src/playground/[with-layout|without-layout]/your-component/your-component-showcase.component.ts
module and route will be created automatically if you running playground or docs app.

run 'npm run gen:playground' to generate boilerplate code, such as modules, routes, etc.

your-component.component.ts (add line in docs section- * @stacked-example(Your component, your-component/your-component-showcase.component)
````
Expand All @@ -415,9 +416,9 @@ Playground is a set of modules containing all Nebular examples.
It has two base directories: `with-layout` and `without-layout`. All components in `with-layout` directory will be nested inside of `nb-layout` component. Components from `without-layout` directory will be direct children of router outlet. Put components into `without-layout` directory, if they don't need to or can't be children of layout component, such as a layout itself.
## Playground schematic
Playground schematic watches playground files and generates all boilerplate code for you. Basically, after adding a new component, directive or service declaration, all needed modules and components routes will be generated or modified.
Playground schematic generates all boilerplate code for you. Basically, after adding a new component, directive or service declaration, all needed modules and components routes will be generated or modified.
Schematic starts if you run playground or docs app with `npm start` or `npm run docs:serve` commands.
You can run it via 'npm run gen:playground' command.
### How it works
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"gulp": "gulp",
"firebase": "firebase",
"conventional-changelog": "conventional-changelog",
"prestart": "run-s build:schematics gen:playground",
"start": "run-p \"ng -- serve {@}\" \"gulp -- watch:gen:playground\" -- ",
"prestart": "npm run gen:playground",
"start": "ng serve",
"start:prod": "npm run start -- --prod --aot",
"start:wp": "npm run start:prod -- playground-wp",
"docs:parse": "gulp docs",
Expand Down
1 change: 0 additions & 1 deletion scripts/gulp/gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import './tasks/bundle/bundle';
import './tasks/docs/docs';
import './tasks/copy-sources';
import './tasks/bump-versions';
import './tasks/playground/playground-schematic';

task('default', ['copy-sources']);
43 changes: 0 additions & 43 deletions scripts/gulp/tasks/playground/playground-schematic.ts

This file was deleted.

0 comments on commit 78e283c

Please sign in to comment.