hulix
v0.11.2
Published
A workflow for Angular made with Webpack
Downloads
69
Readme
Hulix
Front-End Workflow.
Features
- ES2015 with babel6
- Component Develop Mode.
- local development environments
- proxy server for debug with backend developer
- css module, scss like syntax with PreCSS
- image compress and dependence, include favicon
- js/css/images merge and compress
- unit test with karma && Jasmine
- ngAnnotate (only for AngularJS)
Install
npm i -g hulix
How to use
hulix dev
start a local server and live translate code
hulix test
start karma for unit test.
all test files' name should append with _test.js
hulix build
compress all code.
UPDATE
0.10
- BIG FEATURE use cssModule and auto Replace same-name-class in HTML.
0.8
- Add PreCSS (plugin of PostCSS) to convert css file.
*.scss
files will use PreCSS
0.7.4
- Add Karma && Jasmine as the UnitTest Framework
- Custom Babel By .babelrc
- Custom dev server host
- update for vagrant
0.6.0
- force use css-loader?modules to modulize less files (except css files). Old project should wrap
:global {}
for all less files
FAQ
Node gyp error?
Some modules need node-gyp
, maybe you should see this https://github.com/nodejs/node-gyp#installation
If you dont want to install visual studio
, you may read this Vagrant as Development Environment.
Error: Unexpected token
try put .babelrc
in project root directory.
may be you use ES2015 features, you should use .babelrc
to declare the presets.
Why url() in less file cause error.
you should read this https://github.com/webpack/css-loader/issues/74#issuecomment-110745359. the hack method is use two dot ../xxx/xxx.jpg
that's why I add PreCSS and LESS will be deprecated.
TODO
- bootstrap tool
- Auto publish to server