Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
rabbit-playground
Advanced tools
Copyright (C) Wix.com, Inc - All Rights Reserved Unauthorized copying of this project, via any medium is strictly prohibited Proprietary and confidential Written by Amir Arad , January 2018
Copyright (C) Wix.com, Inc - All Rights Reserved Unauthorized copying of this project, via any medium is strictly prohibited Proprietary and confidential Written by Amir Arad amira@wix.com, January 2018
the playground loader looks for a Wix-playground element, extracts the needed config from its data-* attributes and renders a playground inside it.
attribute name | required | default | description |
---|---|---|---|
data-code-path | true | path to load extra playground bundles | |
data-recipe-path | true | path to playground-recipe | |
data-start-path | true | file to render in preview | |
data-open-tab | false | the first tab | tab to focus by default eg. 'src/index.ts' |
data-tabs | false | all the project files | which tabs to open eg. 'src/index.ts,src/index.st.css' |
data-allow-fullscreen | false | false | show button to toggle fullscreen mode |
in order for the playground to function properly it must have access to a number of assets.
a recipe is a json bundle including the dependencies of the running example.
a prebuilt one is provided in '/recipe/recipe.json'.
set data-recipe-path
attribute to point to the wanted recipe.
the playground uses multiple bundles, you can find them all at '/dist'.
set data-code-path
attribute to point to them.
the playground uses a JSON format to load the project files.
use the provided cli to build your wanted examples.
set data-project-files
attribute to point to the wanted example.
the playground looks for a watch url param. if it exists it polls updates on the project files. use this with the cli watch option to update your playgrounds while working
the playground provides a CLI tool which you can use to build playground project files
this command builds content for the playground from a directory structure. each folder in the srcFolder is built into a separate json file according to the folder name
$ playground-cli build-project-files --rootDir ./ --srcDir playgrounds --outDir build-playgrounds --w
name | required | default | description |
---|---|---|---|
rootDir | false | process.cmd | root path to search for srcDir outDir |
srcDir | true | folder to build from | |
outDir | true | folder to build to | |
w | false | false | if watch on any change in srcDir will trigger rebuild |
FAQs
Copyright (C) Wix.com, Inc - All Rights Reserved Unauthorized copying of this project, via any medium is strictly prohibited Proprietary and confidential Written by Amir Arad , January 2018
The npm package rabbit-playground receives a total of 2 weekly downloads. As such, rabbit-playground popularity was classified as not popular.
We found that rabbit-playground demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.