Study
grunt(그런트) 관련
메디츠
2023. 1. 9. 12:41
반응형
npm install grunt-cli -g
// grunt 설치
grunt
grunt-cli: The grunt command line interface (v1.2.0)
// 버전 확인
{
"name": "test",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"grunt": "1.2.0"
}
}
// package.json에 grunt 추가
npm install
// npm 설치하면 node_modules에 grunt 설치됨
grunt build
// 빌드
grunt clean
// 클린
grunt serve
// 서버 시작
grunt test
// karma 테스트
반응형