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
:
stages
:
-
install
-
build
-
build
-
deploy
-
deploy
variables
:
variables
:
GIT_DEPTH
:
"
1"
GIT_DEPTH
:
"
1"
build
:
npm_ci
:
stage
:
build
stage
:
install
tags
:
tags
:
-
linux
-
linux
script
:
script
:
-
npm ci
-
npm ci
artifacts
:
paths
:
-
node_modules
.build_base
:
stage
:
build
tags
:
-
linux
dependencies
:
-
npm_ci
build
:
extends
:
-
.build_base
script
:
-
npm run build
-
npm run build
artifacts
:
artifacts
:
paths
:
paths
:
-
dist/
-
dist/
unit-test
:
extends
:
-
.build_base
script
:
-
npm run test
deploy_npm
:
deploy_npm
:
stage
:
deploy
stage
:
deploy
dependencies
:
dependencies
:
...
@@ -27,4 +49,4 @@ deploy_npm:
...
@@ -27,4 +49,4 @@ deploy_npm:
-
echo $NPMRC | base64 --decode > ~/.npmrc
-
echo $NPMRC | base64 --decode > ~/.npmrc
-
npm publish . ||
true
-
npm publish . ||
true
only
:
only
:
-
tags
-
master
things/npm/.npmignore
View file @
3506848e
...
@@ -7,3 +7,6 @@
...
@@ -7,3 +7,6 @@
.dockerignore
.dockerignore
Dockerfile
Dockerfile
/src
/src
/coverage
/tests
/dist/tests
things/npm/install-npm.sh
View file @
3506848e
...
@@ -9,3 +9,5 @@ npm install --save-dev \
...
@@ -9,3 +9,5 @@ npm install --save-dev \
'eslint-config-prettier@^8.3.0'
\
'eslint-config-prettier@^8.3.0'
\
'eslint-plugin-prettier@^3.4.0'
\
'eslint-plugin-prettier@^3.4.0'
\
prettier
prettier
mkdir
tests
||
true
things/npm/package.json
View file @
3506848e
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
"scripts"
:
{
"scripts"
:
{
"lint"
:
"eslint --fix ."
,
"lint"
:
"eslint --fix ."
,
"build"
:
"tsc"
,
"build"
:
"tsc"
,
"test"
:
"jest --passWithNoTests"
,
"start"
:
"node dist/index.js"
"start"
:
"node dist/index.js"
},
},
"repository"
:
{
"repository"
:
{
...
@@ -19,5 +20,22 @@
...
@@ -19,5 +20,22 @@
"bugs"
:
{
"bugs"
:
{
"url"
:
"https://code.mycard.moe/3rdeye/myproject/issues"
"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