Skip to content

Commit

Permalink
Add new snowblock for "npm"
Browse files Browse the repository at this point in the history
Created a new snowblock for NPM (1) including the ".npmrc" configuration
file (2) to define

* the "npm init" (3) options
  * init-author-name
  * init-author-email
  * init-author-url
  * init-version
  * init-license
* the "package-lock" option with "false" to disable the generation of
  the "package-lock.json" (4) file
* the "save-exact" option to always save the exact dependency versions
  in the "package.json" (5)

References:
  (1) https://www.npmjs.com
  (2) https://docs.npmjs.com/files/npmrc
  (3) https://docs.npmjs.com/misc/config
  (4) https://docs.npmjs.com/files/package-lock.json
  (5) https://docs.npmjs.com/files/package.json

GH-95
  • Loading branch information
arcticicestudio committed Dec 8, 2017
1 parent 1b564fc commit 45e2cc8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions snowblocks/npm/npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
; Copyright (c) 2016-2017 Arctic Ice Studio <development@arcticicestudio.com>
; Copyright (c) 2016-2017 Sven Greb <code@svengreb.de>

; Project: igloo
; Repository: https://github.com/arcticicestudio/igloo
; License: MIT

init-author-name=Arctic Ice Studio
init-author-email=development@arcticicestudio
init-author-url=http://arcticicestudio.com
init-version=0.0.0
init-license=MIT
package-lock=false
save-exact=true
15 changes: 15 additions & 0 deletions snowblocks/npm/snowblock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"clean": ["~"]
},
{
"link": {
"~/.npmrc": {
"hosts": {
"archbook": "npmrc",
"igloo": "npmrc"
}
}
}
}
]

0 comments on commit 45e2cc8

Please sign in to comment.