Commit 388d8b29 authored by Nikolay Gromov's avatar Nikolay Gromov

Добавил команду npm run delpoy

parent 6794d281
......@@ -100,6 +100,18 @@ src/ # Исходные файлы
```
## Комментирование для разработчиков
Для разметочных файлов можно использовать комментарии вида `<!--DEV Комментарий -->` — такие комментарии не попадут в собранный html.
## Выгрузка на gh-pages
Содержимое проекта можно быстро «выгрузить» на [gh-pages])https://help.github.com/articles/user-organization-and-project-pages/#project-pages) (запушить содержимое папки `build/` в ветку `gh-pages` репозитория проекта). Адрес для просмотра будет таким: http://USERNAME.github.io/PROJECTNAME/ (полное повторений файловой структуры папки `build/`).
```bash
npm run delpoy # собрать проект без карт кода и отправить в gh-pages
```
......@@ -261,7 +261,7 @@ gulp.task('serve', function () {
// Отправка в GH pages (ветку gh-pages репозитория)
gulp.task('deploy', function() {
console.log('---------- Публикация ./build/ на GH pages: ' + pjson.config.deployURL);
console.log('---------- Публикация ./build/ на GH pages');
return gulp.src('./build/**/*')
.pipe(ghPages());
});
......
......@@ -5,6 +5,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "./node_modules/.bin/gulp",
"deploy": "NODE_ENV=production ./node_modules/.bin/gulp build && ./node_modules/.bin/gulp deploy"
},
"author": "Nikolay Gromov",
"license": "MIT",
......@@ -43,7 +44,6 @@
"directories": {
"source": "./src",
"build": "./build"
},
"deployURL": "http://nicothin.github.io/NTH-start-project/blocks_library.html"
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment