@sofit/view-locale 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.circleci/config.yml +65 -0
- package/package.json +8 -10
- package/readme.md +1 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Javascript Node CircleCI 2.0 configuration file
|
|
2
|
+
#
|
|
3
|
+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
|
|
4
|
+
#
|
|
5
|
+
version: 2
|
|
6
|
+
|
|
7
|
+
defaults: &defaults
|
|
8
|
+
working_directory: ~/repo
|
|
9
|
+
docker:
|
|
10
|
+
- image: circleci/node:8.11.1
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test:
|
|
14
|
+
<<: *defaults
|
|
15
|
+
steps:
|
|
16
|
+
- checkout
|
|
17
|
+
|
|
18
|
+
# Download and cache dependencies
|
|
19
|
+
- restore_cache:
|
|
20
|
+
keys:
|
|
21
|
+
- v1-dependencies-{{ checksum "package.json" }}
|
|
22
|
+
# fallback to using the latest cache if no exact match is found
|
|
23
|
+
- v1-dependencies-
|
|
24
|
+
|
|
25
|
+
- run: npm install --production
|
|
26
|
+
|
|
27
|
+
- save_cache:
|
|
28
|
+
paths:
|
|
29
|
+
- node_modules
|
|
30
|
+
key: v1-dependencies-{{ checksum "package.json" }}
|
|
31
|
+
|
|
32
|
+
- run:
|
|
33
|
+
name: Run tests
|
|
34
|
+
command: npm test
|
|
35
|
+
|
|
36
|
+
- persist_to_workspace:
|
|
37
|
+
root: ~/repo
|
|
38
|
+
paths: .
|
|
39
|
+
|
|
40
|
+
deploy:
|
|
41
|
+
<<: *defaults
|
|
42
|
+
steps:
|
|
43
|
+
- attach_workspace:
|
|
44
|
+
at: ~/repo
|
|
45
|
+
- run:
|
|
46
|
+
name: Build from typescript to javascript
|
|
47
|
+
command: npm run build
|
|
48
|
+
- run:
|
|
49
|
+
name: Authenticate with registry
|
|
50
|
+
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
|
|
51
|
+
- run:
|
|
52
|
+
name: Publish new version of @sofit/view-auth
|
|
53
|
+
command: npm publish
|
|
54
|
+
|
|
55
|
+
workflows:
|
|
56
|
+
version: 2
|
|
57
|
+
test-build-deploy:
|
|
58
|
+
jobs:
|
|
59
|
+
- test
|
|
60
|
+
- deploy:
|
|
61
|
+
requires:
|
|
62
|
+
- test
|
|
63
|
+
filters:
|
|
64
|
+
branches:
|
|
65
|
+
only: master
|
package/package.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sofit/view-locale",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Traduções do Sofit View",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "jest --config ./jest.config.json",
|
|
9
9
|
"dev": "nodemon",
|
|
10
|
-
"build": "tslint --project ./ && tsc --p ./"
|
|
11
|
-
"preversion": "npm t && tslint --project",
|
|
12
|
-
"prepublish": "npm t && npm run build"
|
|
10
|
+
"build": "tslint --project ./ && tsc --p ./"
|
|
13
11
|
},
|
|
14
12
|
"author": "desenvolvimento@sofit4.com.br",
|
|
15
13
|
"contributors": [
|
|
@@ -22,15 +20,15 @@
|
|
|
22
20
|
},
|
|
23
21
|
"dependencies": {
|
|
24
22
|
"typescript": "^2.8.3",
|
|
25
|
-
"@types/node": "^9.6.6"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
23
|
+
"@types/node": "^9.6.6",
|
|
28
24
|
"@types/jest": "^22.2.3",
|
|
29
25
|
"jest": "^22.4.3",
|
|
30
|
-
"nodemon": "^1.17.3",
|
|
31
26
|
"ts-jest": "^22.4.4",
|
|
32
|
-
"ts-node": "^6.0.0",
|
|
33
27
|
"tslint": "^5.9.1",
|
|
34
28
|
"tslint-eslint-rules": "^5.1.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"nodemon": "^1.17.3",
|
|
32
|
+
"ts-node": "^6.0.0"
|
|
35
33
|
}
|
|
36
|
-
}
|
|
34
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @sofit/view-auth
|