https://github.com/mtfranchetto/smild
[DEPRECATED] Please have a look at generator-smild
https://github.com/mtfranchetto/smild
Last synced: 2 months ago
JSON representation
[DEPRECATED] Please have a look at generator-smild
- Host: GitHub
- URL: https://github.com/mtfranchetto/smild
- Owner: mtfranchetto
- License: mit
- Created: 2014-09-24T16:11:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-01-23T11:22:54.000Z (over 6 years ago)
- Last Synced: 2025-04-15T14:12:30.374Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 587 KB
- Stars: 26
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: License.txt
Awesome Lists containing this project
README
# Smild

## The Typescript development system
Isomorphic tool to scaffold, build and test frontend/backend projects. Here's what you'll receive with the package:
* Typescript bundling
* Live reloading
* Sass support
* Multi target builds
* Minification
* Source maps
* BDD support
* Code coverage
* Scaffolding
* NodeJS support### Install
`npm install smild -g`### Usage
To create a project just type:
`smild new [projectName] --type [frontend|module|nodejs]`### Default settings
{
projectType: "frontend",
port: 5000,
liveReloadPort: 35729,
distribution: "dist",
targets: "targets",
bootstrapperStyles: "",
watchStyles: [
"styles"
],
test: "test/**/*.ts",
images: "images",
assets: "assets",
autoprefixer: ["last 2 versions", "> 1%"],
scripts: "scripts/**/*.{ts,tsx}",
revisionExclude: [],
nodemon: {},
uglifyjs: {
output: {
"ascii_only": true
}
},
preBuild: VoidHook,
postBuild: VoidHook,
typescriptPath: // path to a custom typescript compiler
}### CLI reference:
`$ smild build [target|all]`
Bundle the application or the module.
Optional: specify a --release option to enable minification and revisioning.
`$ smild watch-build`
Runs the build task every time a dependency change is detected with *watchify*.
On a NodeJS project *nodemon* is used to keep the app rebuilding.`$ smild test`
Run tests with **Mocha**
`$ smild coverage`
Get projection coverage with **nyc**
## Contribute
I am using [Git Flow](https://github.com/nvie/gitflow).