mirror of
				https://github.com/NativeScript/NativeScript.git
				synced 2025-11-04 04:18:52 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			161 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			161 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
module.exports = {
 | 
						|
  message: 'NativeScript ~ made with ❤️  Choose a command to start...',
 | 
						|
  pageSize: 32,
 | 
						|
	scripts: {
 | 
						|
		default: 'nps-i',
 | 
						|
		nx: {
 | 
						|
      script: 'nx',
 | 
						|
      description: 'Execute any command with the @nrwl/cli'
 | 
						|
    },
 | 
						|
		format: {
 | 
						|
      script: 'nx format:write',
 | 
						|
      description: 'Format source code of the entire workspace (auto-run on precommit hook)'
 | 
						|
    },
 | 
						|
    "🔧": {
 | 
						|
      script: `npx cowsay "NativeScript apps are key to a user's ❤️"`,
 | 
						|
      description: '_____________  Apps to develop and experiment with  _____________'
 | 
						|
    },
 | 
						|
		// app testing targets
 | 
						|
		apps: {
 | 
						|
      "...Automated...": {
 | 
						|
        script: `npx cowsay "These run fast, watch the fireworks! 🎆"`,
 | 
						|
        description: ` 🔻 Automated test runner which executes e2e tests on the target platform 🎆`
 | 
						|
      },
 | 
						|
			// Automated test runner which executes e2e tests on the target platform
 | 
						|
			automated: {
 | 
						|
				clean: {
 | 
						|
          script: 'nx run apps-automated:clean',
 | 
						|
          description: '⚆  Clean  🧹'
 | 
						|
        },
 | 
						|
				ios: {
 | 
						|
          script: 'nx run apps-automated:ios',
 | 
						|
          description: '⚆  Run iOS  '
 | 
						|
        },
 | 
						|
				android: {
 | 
						|
          script: 'nx run apps-automated:android',
 | 
						|
          description: '⚆  Run Android  🤖'
 | 
						|
        },
 | 
						|
      },
 | 
						|
      "...ToolBox...": {
 | 
						|
        script: `npx cowsay "🎯 The best development target to experiment with ideas and debug core"`,
 | 
						|
        description: ` 🔻 Toolbox for livesyncing changes and experimenting 🎯`
 | 
						|
      },
 | 
						|
			// Toolbox useful for livesyncing changes and experimenting
 | 
						|
			toolbox: {
 | 
						|
				clean: {
 | 
						|
          script: 'nx run apps-toolbox:clean',
 | 
						|
          description: '⚆  Clean  🧹'
 | 
						|
        },
 | 
						|
				ios: {
 | 
						|
          script: 'nx run apps-toolbox:ios',
 | 
						|
          description: '⚆  Run iOS  '
 | 
						|
        },
 | 
						|
				android: {
 | 
						|
          script: 'nx run apps-toolbox:android',
 | 
						|
          description: '⚆  Run Android  🤖'
 | 
						|
        },
 | 
						|
      },
 | 
						|
      "...UI...": {
 | 
						|
        script: `npx cowsay "Tons of ui samples to prove out core behavior and validate github issue fixes ☑️"`,
 | 
						|
        description: ` 🔻 Tons of ui samples to prove out core behavior and validate github issue fixes ☑️`
 | 
						|
      },
 | 
						|
			// Various UI level setups for @nativescript/core testing
 | 
						|
			ui: {
 | 
						|
				clean: {
 | 
						|
          script: 'nx run apps-ui:clean',
 | 
						|
          description: '⚆  Clean  🧹'
 | 
						|
        },
 | 
						|
				ios: {
 | 
						|
          script: 'nx run apps-ui:ios',
 | 
						|
          description: '⚆  Run iOS  '
 | 
						|
        },
 | 
						|
				android: {
 | 
						|
          script: 'nx run apps-ui:android',
 | 
						|
          description: '⚆  Run Android  🤖'
 | 
						|
        },
 | 
						|
			},
 | 
						|
    },
 | 
						|
    "⚙️": {
 | 
						|
      script: `npx cowsay "@nativescript/* packages will keep your ⚙️ cranking"`,
 | 
						|
      description: '_____________  @nativescript/*  _____________'
 | 
						|
    },
 | 
						|
		// packages
 | 
						|
		// build output is always in dist/packages
 | 
						|
		'@nativescript': {
 | 
						|
			// @nativescript/core
 | 
						|
			core: {
 | 
						|
				build: {
 | 
						|
          script: 'nx run core:build',
 | 
						|
          description: '@nativescript/core: Build'
 | 
						|
        },
 | 
						|
				test: {
 | 
						|
          script: 'nx run core:test',
 | 
						|
          description: '@nativescript/core: Unit tests'
 | 
						|
				},
 | 
						|
			},
 | 
						|
      // @nativescript/core API Reference Docs
 | 
						|
      'core-api-docs': {
 | 
						|
				build: {
 | 
						|
          script: 'nx run core-api-docs:build',
 | 
						|
          description: '@nativescript/core: API Reference Docs Build'
 | 
						|
        }
 | 
						|
      },
 | 
						|
			// @nativescript/ui-mobile-base
 | 
						|
			'ui-mobile-base': {
 | 
						|
				build: {
 | 
						|
          script: 'nx run ui-mobile-base:build',
 | 
						|
          description: '@nativescript/ui-mobile-base: Build for npm'
 | 
						|
        },
 | 
						|
			},
 | 
						|
			// @nativescript/webpack
 | 
						|
			webpack: {
 | 
						|
				build: {
 | 
						|
          script: 'nx run webpack:build',
 | 
						|
          description: '@nativescript/webpack: Build for npm'
 | 
						|
        },
 | 
						|
				test: {
 | 
						|
          script: 'nx run webpack:test',
 | 
						|
          description: '@nativescript/webpack: Unit tests'
 | 
						|
        },
 | 
						|
      },
 | 
						|
      // @nativescript/webpack (5)
 | 
						|
			webpack5: {
 | 
						|
				build: {
 | 
						|
          script: 'nx run webpack5:build',
 | 
						|
          description: '@nativescript/webpack(5): Build for npm'
 | 
						|
        },
 | 
						|
			},
 | 
						|
    },
 | 
						|
    "⚡": {
 | 
						|
      script: `npx cowsay "Focus only on source you care about for efficiency ⚡"`,
 | 
						|
      description: '_____________  Focus (VS Code supported)  _____________'
 | 
						|
    },
 | 
						|
    focus: {
 | 
						|
      core: {
 | 
						|
        script: 'nx g @nstudio/focus:mode core',
 | 
						|
        description: 'Focus on @nativescript/core'
 | 
						|
      },
 | 
						|
      types: {
 | 
						|
        script: 'nx g @nstudio/focus:mode types-android,types-ios',
 | 
						|
        description: 'Focus on @nativescript/types'
 | 
						|
      },
 | 
						|
      'ui-mobile-base': {
 | 
						|
        script: 'nx g @nstudio/focus:mode ui-mobile-base',
 | 
						|
        description: 'Focus on @nativescript/ui-mobile-base'
 | 
						|
      },
 | 
						|
      webpack: {
 | 
						|
        script: 'nx g @nstudio/focus:mode webpack',
 | 
						|
        description: 'Focus on @nativescript/webpack'
 | 
						|
      },
 | 
						|
      reset: {
 | 
						|
        script: 'nx g @nstudio/focus:mode',
 | 
						|
        description: 'Reset Focus'
 | 
						|
      }
 | 
						|
    },
 | 
						|
    ".....................": {
 | 
						|
      script: `npx cowsay "That's all for now folks ~"`,
 | 
						|
      description: '.....................'
 | 
						|
    }
 | 
						|
	},
 | 
						|
};
 |