Package Exports
- @stackpress/incept
- @stackpress/incept/client
- @stackpress/incept/client.js
- @stackpress/incept/dist/Exception
- @stackpress/incept/dist/Exception.js
- @stackpress/incept/dist/Revisions
- @stackpress/incept/dist/Revisions.js
- @stackpress/incept/dist/assert
- @stackpress/incept/dist/assert.js
- @stackpress/incept/dist/schema/Registry
- @stackpress/incept/dist/schema/Registry.js
- @stackpress/incept/dist/schema/helpers
- @stackpress/incept/dist/schema/helpers.js
- @stackpress/incept/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@stackpress/incept) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
💡 Idea
A meta language to express and transform your ideas to reality. It all starts with an idea...
Install
$ npm i -D @stackpress/idea
Usage
This is an example idea schema.
//my.idea
model Product @label("Product" "Products") @suggested("[name]") @icon("gift") {
name String @label("Name")
@field.text
@is.required("Name is required")
@list.detail @view.text
image String @label("Image")
@field.image
@list.image({ width 20 height 20 })
@view.image({ width 100 height 100 })
description String @label("Description")
@field.textarea
@list.none @view.text
currency String @label("Currency")
@filterable @default("USD")
@field.currency
@is.ceq(3 "Should be valid currency prefix")
@list.text @view.text
srp Float? @label("SRP")
@min(0.00) @step(0.01)
@field.number({ min 0.00 step 0.01 })
@list.price @view.price
price Float? @label("Offer Price")
@min(0.00) @step(0.01)
@field.number({ min 0.00 step 0.01 })
@list.price @view.price
}
"Ideas are worthless without execution" - Many People
To transform an idea, you need to plugin a transformer like the following example.
//my.idea
plugin "@stackpress/idea-typescript" {
ts true
output "./src/types.ts"
}
// ... your idea ...
// model Product ...
You can use other ideas, just import them like the following example.
//my.idea
use "./another.idea"
// ... your idea ...
// model Product ...
To execute an idea, you just need to run the following command.
$ npx idea -i my.idea
Learn more: