Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ public
yarn.lock
.sass-cache/*
sass-cache/
source/css/scss/episerver/epi.min.scss
source/css/style.css.map
source/
*.log
npm-debug.log*
.DS_Store
Expand All @@ -19,7 +18,6 @@ npm-debug.log*

linters/
export/
source/fonts/*
**/fonts/DIN*

TestResults/
Expand Down
14 changes: 13 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ gulp.task('patternlab:serve-altinnett', serve('altinnett'));
gulp.task('patternlab:serve-infoportal', serve('infoportal'));
gulp.task('patternlab:serve-portal', serve('portal'));

gulp.task('dist',
gulp.task('dist-include-patterns',
gulp.series(
'pl-clean:dist',
'patternlab:prebuild',
Expand All @@ -439,6 +439,18 @@ gulp.task('dist',
'pl-copy:distribution-js'
)
);


gulp.task('dist',
gulp.series(
'pl-clean:dist',
'pl-copy:distribution-fonts',
'pl-copy:distribution-css',
'pl-copy:distribution-images',
'pl-copy:distribution-js'
)
);

gulp.task('default', gulp.series('patternlab:serve-all'));

/** ***************************************************
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "altinn-designsystem",
"version": "2.7.0",
"version": "3.0.0",
"description": "Altinn Design system based on Pattern Lab.",
"keywords": [
"Altinn",
Expand All @@ -16,7 +16,8 @@
},
"scripts": {
"precommit-msg": "echo 'Pre-commit: Linting js and scss' && exit 0",
"dist": "gulp dist --max_old_space_size=4096",
"dist": "gulp dist",
"dist-include-patterns": "gulp dist-include-patterns --max_old_space_size=8192",
"lint": "eslint source/js/",
"patterns": "gulp patternlab:patternsonly",
"purify": "purifycss public/css/style.css public/**/*.html public/**/*.js --info --rejected --out public/css/index.css",
Expand Down