Verified Commit 5ebecaf2 authored by Roberto Bochet's avatar Roberto Bochet
Browse files

Remove npm modules

parent 6aa98383
Pipeline #328 passed with stage
in 2 minutes and 28 seconds
...@@ -11,12 +11,9 @@ variables: ...@@ -11,12 +11,9 @@ variables:
# Build is in `before_script` because it's the same for both deployments # Build is in `before_script` because it's the same for both deployments
before_script: before_script:
- apk add npm
- npm ci
- bundle install - bundle install
- ./scripts/ci_fix_baseurl.sh - ./scripts/ci_fix_baseurl.sh
- bundle exec jekyll build - bundle exec jekyll build
- ./scripts/minifycssjs.sh _site
- mv _site public - mv _site public
- ln -sf faq_mailinglist/index.html "public/faq_mailinglist.html" - ln -sf faq_mailinglist/index.html "public/faq_mailinglist.html"
...@@ -33,7 +30,6 @@ deploy-prod: ...@@ -33,7 +30,6 @@ deploy-prod:
key: build-deps key: build-deps
paths: paths:
- "bundle/" - "bundle/"
- "node_modules/"
only: only:
- master - master
...@@ -48,6 +44,5 @@ pages: ...@@ -48,6 +44,5 @@ pages:
key: build-deps key: build-deps
paths: paths:
- "bundle/" - "bundle/"
- "node_modules/"
only: only:
- develop - develop
...@@ -4,4 +4,3 @@ gem "jekyll" ...@@ -4,4 +4,3 @@ gem "jekyll"
gem "jekyll-paginate" gem "jekyll-paginate"
gem "support-for" gem "support-for"
gem "jekyll-sitemap" gem "jekyll-sitemap"
gem 'jekyll-purgecss'
...@@ -28,7 +28,6 @@ GEM ...@@ -28,7 +28,6 @@ GEM
rouge (>= 1.7, < 4) rouge (>= 1.7, < 4)
safe_yaml (~> 1.0) safe_yaml (~> 1.0)
jekyll-paginate (1.1.0) jekyll-paginate (1.1.0)
jekyll-purgecss (0.2.0)
jekyll-sass-converter (1.5.2) jekyll-sass-converter (1.5.2)
sass (~> 3.4) sass (~> 3.4)
jekyll-sitemap (1.3.1) jekyll-sitemap (1.3.1)
...@@ -65,7 +64,6 @@ PLATFORMS ...@@ -65,7 +64,6 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
jekyll jekyll
jekyll-paginate jekyll-paginate
jekyll-purgecss
jekyll-sitemap jekyll-sitemap
support-for support-for
......
...@@ -11,7 +11,6 @@ highlighter: rouge ...@@ -11,7 +11,6 @@ highlighter: rouge
plugins: plugins:
- jekyll-paginate - jekyll-paginate
- jekyll-sitemap - jekyll-sitemap
- jekyll-purgecss
paginate: 5 paginate: 5
navigation: navigation:
...@@ -29,7 +28,6 @@ navigation: ...@@ -29,7 +28,6 @@ navigation:
exclude: exclude:
- scripts - scripts
- examples - examples
- node_modules
social: social:
telegram: poulpolimi telegram: poulpolimi
......
This diff is collapsed.
{
"name": "poul-home",
"version": "0.0.0",
"description": "POuL homepage and blog",
"main": "gulpfile.js",
"scripts": {
"build-css": "node-sass --include-path assets/scss/ assets/scss/style.scss assets/css/style.css",
"watch-css": "nodemon -w assets/scss -e scss -x \"npm run build-css\""
},
"author": "Davide Depau",
"license": "MIT",
"devDependencies": {
"browser-sync": "^2.26.7",
"gulp": "^4.0.0",
"gulp-autoprefixer": "1.0.0",
"gulp-cssnano": "^2.1.2",
"gulp-sass": "^4.0.2",
"node-sass": "^4.13.1",
"nodemon": "^1.18.11"
},
"repository": {
"type": "git",
"url": "https://gitlab.poul.org/Depau/poul-home.git"
},
"keywords": [
"jekyll",
"sass",
"browsersync"
],
"dependencies": {
"purgecss": "^1.4.0",
"uglify-js": "^3.6.0",
"uglifycss": "0.0.29"
}
}
module.exports = {
// These are the files that Purgecss will search through
content: ["./_site/**/*.html", "./_site/*.html"],
// These are the stylesheets that will be subjected to the purge
css: ["./_site/assets/css/*.css"]
};
#!/bin/bash
sitedir="$1"
echo "Minifying JavaScript"
find "$sitedir" -type f \
-name "*.js" ! -name "*.min.*" ! -name "vfs_fonts*" \
-exec echo {} \; \
-exec ./node_modules/.bin/uglifyjs -o {}.min {} \; \
-exec rm {} \; \
-exec mv {}.min {} \;
echo "Minifying CSS"
find "$sitedir" -type f \
-name "*.css" ! -name "*.min.*" \
-exec echo {} \; \
-exec ./node_modules/.bin/uglifycss --output {}.min {} \; \
-exec rm {} \; \
-exec mv {}.min {} \;
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