Skip to content

build script #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions BuildPackage.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
call "c:\Program Files (x86)\nodejs\nodevars.bat"
call npm.cmd install -g grunt-cli

set NATIVESCRIPT_SKIP_POSTINSTALL_TASKS=1
call npm.cmd install
set NATIVESCRIPT_SKIP_POSTINSTALL_TASKS=

call grunt.cmd pack --no-color

call npm.cmd cache rm nativescript
9 changes: 3 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module.exports = function(grunt) {
grunt.initConfig({
copyPackageTo: "\\\\telerik.com\\Resources\\BlackDragon\\Builds\\nativescript-cli",

deploymentEnvironment: process.env["DeploymentEnvironment"] || "local",
jobName: process.env["JOB_NAME"] || "local",
buildNumber: process.env["BUILD_NUMBER"] || "non-ci",
dateString: now.substr(0, now.indexOf("T")),
Expand Down Expand Up @@ -84,11 +83,11 @@ module.exports = function(grunt) {
copy: {
package_to_drop_folder: {
src: "*.tgz",
dest: "<%= copyPackageTo %>/<%= jobName %>/<%= deploymentEnvironment %>/<%= dateString %> #<%= buildNumber %>/"
dest: "<%= copyPackageTo %>/<%= jobName %>/<%= dateString %> #<%= buildNumber %>/"
},
package_to_qa_drop_folder: {
src: "*.tgz",
dest: "<%= copyPackageTo %>/<%= jobName %>/<%= deploymentEnvironment %>/nativescript.tgz"
dest: "<%= copyPackageTo %>/<%= jobName %>/nativescript.tgz"
}
},

Expand Down Expand Up @@ -121,10 +120,8 @@ module.exports = function(grunt) {
grunt.registerTask("pack", [
"clean",
"ts:release_build",
"shell:prepare_resources",

"shell:apply_deployment_environment",
"shell:ci_unit_tests",
//"shell:ci_unit_tests",

"set_package_version",
"shell:build_package",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "nativescript-cli",
"name": "nativescript",
"preferGlobal": true,
"version": "0.1.0",
"author": "Telerik <[email protected]>",
"description": "Command-line interface for building NativeScript projects",
"bin": {
"tns": "./bin/nativescript.js",
"nativescript": "./bin/nativescript.js"
},
"main": "./lib/nativescript-cli.js",
Expand All @@ -16,11 +18,9 @@
},
"keywords": [
"nativescript",
"appbuilder",
"telerik",
"mobile"
],
"license": "Apache2.0",
"dependencies": {
"fibers": "https://github.com/icenium/node-fibers/tarball/master",
"log4js": "0.6.9",
Expand Down