Skip to content

Commit 321cb91

Browse files
committed
#3: Refactor build and test scripts, update version to 0.0.0
1 parent 03111d4 commit 321cb91

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.rultor.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,18 @@ assets:
99
install: |
1010
/usr/bin/install-node.sh
1111
npm install --no-color
12-
sudo npm install --no-color --global grunt-cli
13-
npm uninstall --no-color grunt-cli
14-
npm install --no-color mocha
1512
pdd -f /dev/null -v
1613
release:
1714
pre: false
1815
script: |
1916
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
2017
sed -i "s/0\.0\.0/${tag}/" package.json
21-
sed -i "s/0\.0\.0/${tag}/" src/version.js
22-
sed -i "s/0000-00-00/$(date +%Y-%m-%d)/" src/version.js
23-
grunt --no-color
18+
npm run unit-test
19+
npm run package
2420
git commit -am "set version to ${tag}"
2521
chmod 600 ../npmrc
2622
npm publish --no-color --userconfig=../npmrc
2723
merge:
2824
script: |-
29-
grunt --no-color
25+
npm run unit-test
26+
npm run package

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@
5858
"package": "ncc build ./out/server.js && pkg dist/package.json",
5959
"unit-test": "bash scripts/setTestFixture.sh && jest"
6060
},
61-
"version": "1.0.0"
61+
"version": "0.0.0"
6262
}

0 commit comments

Comments
 (0)