Skip to content

Commit 38e5245

Browse files
committed
Merge pull request #3 from NativeScript/build
build script
2 parents 8503fd2 + 7ed2a12 commit 38e5245

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

BuildPackage.cmd

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
call "c:\Program Files (x86)\nodejs\nodevars.bat"
2+
call npm.cmd install -g grunt-cli
3+
4+
set NATIVESCRIPT_SKIP_POSTINSTALL_TASKS=1
5+
call npm.cmd install
6+
set NATIVESCRIPT_SKIP_POSTINSTALL_TASKS=
7+
8+
call grunt.cmd pack --no-color
9+
10+
call npm.cmd cache rm nativescript

Gruntfile.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module.exports = function(grunt) {
1414
grunt.initConfig({
1515
copyPackageTo: "\\\\telerik.com\\Resources\\BlackDragon\\Builds\\nativescript-cli",
1616

17-
deploymentEnvironment: process.env["DeploymentEnvironment"] || "local",
1817
jobName: process.env["JOB_NAME"] || "local",
1918
buildNumber: process.env["BUILD_NUMBER"] || "non-ci",
2019
dateString: now.substr(0, now.indexOf("T")),
@@ -84,11 +83,11 @@ module.exports = function(grunt) {
8483
copy: {
8584
package_to_drop_folder: {
8685
src: "*.tgz",
87-
dest: "<%= copyPackageTo %>/<%= jobName %>/<%= deploymentEnvironment %>/<%= dateString %> #<%= buildNumber %>/"
86+
dest: "<%= copyPackageTo %>/<%= jobName %>/<%= dateString %> #<%= buildNumber %>/"
8887
},
8988
package_to_qa_drop_folder: {
9089
src: "*.tgz",
91-
dest: "<%= copyPackageTo %>/<%= jobName %>/<%= deploymentEnvironment %>/nativescript.tgz"
90+
dest: "<%= copyPackageTo %>/<%= jobName %>/nativescript.tgz"
9291
}
9392
},
9493

@@ -121,10 +120,8 @@ module.exports = function(grunt) {
121120
grunt.registerTask("pack", [
122121
"clean",
123122
"ts:release_build",
124-
"shell:prepare_resources",
125123

126-
"shell:apply_deployment_environment",
127-
"shell:ci_unit_tests",
124+
//"shell:ci_unit_tests",
128125

129126
"set_package_version",
130127
"shell:build_package",

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"name": "nativescript-cli",
2+
"name": "nativescript",
3+
"preferGlobal": true,
34
"version": "0.1.0",
45
"author": "Telerik <[email protected]>",
56
"description": "Command-line interface for building NativeScript projects",
67
"bin": {
8+
"tns": "./bin/nativescript.js",
79
"nativescript": "./bin/nativescript.js"
810
},
911
"main": "./lib/nativescript-cli.js",
@@ -16,11 +18,9 @@
1618
},
1719
"keywords": [
1820
"nativescript",
19-
"appbuilder",
2021
"telerik",
2122
"mobile"
2223
],
23-
"license": "Apache2.0",
2424
"dependencies": {
2525
"fibers": "https://github.com/icenium/node-fibers/tarball/master",
2626
"log4js": "0.6.9",

0 commit comments

Comments
 (0)