Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init-things
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
init-things
Commits
3506848e
Commit
3506848e
authored
Dec 03, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unittest
parent
41fa2649
Pipeline
#7351
failed with stages
in 41 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
4 deletions
+49
-4
things/npm/.gitlab-ci.yml
things/npm/.gitlab-ci.yml
+25
-3
things/npm/.npmignore
things/npm/.npmignore
+3
-0
things/npm/install-npm.sh
things/npm/install-npm.sh
+2
-0
things/npm/package.json
things/npm/package.json
+19
-1
No files found.
things/npm/.gitlab-ci.yml
View file @
3506848e
stages
:
-
install
-
build
-
deploy
variables
:
GIT_DEPTH
:
"
1"
build
:
stage
:
build
npm_ci
:
stage
:
install
tags
:
-
linux
script
:
-
npm ci
artifacts
:
paths
:
-
node_modules
.build_base
:
stage
:
build
tags
:
-
linux
dependencies
:
-
npm_ci
build
:
extends
:
-
.build_base
script
:
-
npm run build
artifacts
:
paths
:
-
dist/
unit-test
:
extends
:
-
.build_base
script
:
-
npm run test
deploy_npm
:
stage
:
deploy
dependencies
:
...
...
@@ -27,4 +49,4 @@ deploy_npm:
-
echo $NPMRC | base64 --decode > ~/.npmrc
-
npm publish . ||
true
only
:
-
tags
-
master
things/npm/.npmignore
View file @
3506848e
...
...
@@ -7,3 +7,6 @@
.dockerignore
Dockerfile
/src
/coverage
/tests
/dist/tests
things/npm/install-npm.sh
View file @
3506848e
...
...
@@ -9,3 +9,5 @@ npm install --save-dev \
'eslint-config-prettier@^8.3.0'
\
'eslint-plugin-prettier@^3.4.0'
\
prettier
mkdir
tests
||
true
things/npm/package.json
View file @
3506848e
...
...
@@ -7,6 +7,7 @@
"scripts"
:
{
"lint"
:
"eslint --fix ."
,
"build"
:
"tsc"
,
"test"
:
"jest --passWithNoTests"
,
"start"
:
"node dist/index.js"
},
"repository"
:
{
...
...
@@ -19,5 +20,22 @@
"bugs"
:
{
"url"
:
"https://code.mycard.moe/3rdeye/myproject/issues"
},
"homepage"
:
"https://code.mycard.moe/3rdeye/myproject"
"homepage"
:
"https://code.mycard.moe/3rdeye/myproject"
,
"jest"
:
{
"moduleFileExtensions"
:
[
"js"
,
"json"
,
"ts"
],
"rootDir"
:
"tests"
,
"testRegex"
:
".*
\\
.spec
\\
.ts$"
,
"transform"
:
{
"^.+\\.(t|j)s$"
:
"ts-jest"
},
"collectCoverageFrom"
:
[
"**/*.(t|j)s"
],
"coverageDirectory"
:
"../coverage"
,
"testEnvironment"
:
"node"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment