Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(playground schematics): remove watch task #1154

Merged
merged 4 commits into from
Jan 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.