-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move docs from @zero-scripts/core to main readme
- Loading branch information
1 parent
6b0d7fb
commit a0636e7
Showing
2 changed files
with
53 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,3 @@ | ||
# @zero-scripts/core | ||
|
||
## Description | ||
|
||
Framework for creating presets, configurations and extensions | ||
|
||
## Process of loading extensions | ||
|
||
Extensions will be all packages, which are in `devDependencies` and match pattern `extension\\.[a-z]*` | ||
|
||
These packages will be automatically loaded and activated by preset | ||
|
||
### Example | ||
|
||
Suppose, we need adding processing JavaScript code transpilation by Babel to our `preset.webpack-spa`: | ||
|
||
``` | ||
{ | ||
"devDependencies": { | ||
"@zero-scripts/preset.webpack-spa": "latest", | ||
"@zero-scripts/extension.webpack-babel": "latest" | ||
} | ||
} | ||
``` | ||
|
||
## Passing options | ||
|
||
You can pass options for config/extension in package.json file by `zero-scripts` field | ||
|
||
### Example | ||
|
||
Suppose, we need add additional preset for `@zero-scripts/extension.webpack-babel` | ||
|
||
``` | ||
{ | ||
"zero-scripts": { | ||
"@zero-scripts/extension.webpack-babel": { | ||
"presets": [ | ||
"@babel/preset-*" | ||
] | ||
} | ||
} | ||
} | ||
``` | ||
|
||
## [General Documentation](https://github.com/zero-scripts/zero-scripts#description) | ||
|
||
## API | ||
|
||
Not documented. We do not have stable version and API can change in any time. **Recommended learn API by examples** |