Skip to content

Instantly share code, notes, and snippets.

@magnatronus
Created July 28, 2017 13:46
Show Gist options
  • Save magnatronus/3e15108517ae3b68d8112d63a5df3cd9 to your computer and use it in GitHub Desktop.
Save magnatronus/3e15108517ae3b68d8112d63a5df3cd9 to your computer and use it in GitHub Desktop.
Erbium package.json
{
"name": "erbium",
"version": "1.0.0",
"description": "Erbium ES6 framework for Titanium Development",
"project" :{
"name": "",
"theme": ""
},
"ti" :{
"appId": "uk.spiralarm.",
"loglevel": "info",
"platforms": "ios,android",
"sdk": "6.1.1.GA",
"url": "http://www.spiralarm.uk"
},
"scripts": {
"erb-template": "mkdir ./projects/$npm_package_project_name/app && mkdir ./projects/$npm_package_project_name/assets && mkdir ./projects/$npm_package_project_name/themes",
"appc-tidy": "npm run ti-tidy-resources && npm run ti-tidy-app && npm run ti-tidy-assets && npm run ti-tidy-plugins",
"appc-generate": "cd projects && appc ti create -s $npm_package_ti_sdk -t app --log-level $npm_package_ti_loglevel -n $npm_package_project_name -p $npm_package_ti_platforms --id $npm_package_ti_appId$npm_package_project_name -u $npm_package_ti_url",
"appc-create": "npm run appc-generate && npm run appc-tidy",
"ti-ios-sim": "ti build -p ios --device-id --log-level $npm_package_ti_loglevel",
"ti-android-sim": "ti build -p android --device-id --log-level $npm_package_ti_loglevel",
"ti-ios-device": "ti build -p ios --target --log-level $npm_package_ti_loglevel",
"ti-android-device": "ti build -p android --target --log-level $npm_package_ti_loglevel",
"ti-generate": "ti create -d ./projects -s $npm_package_ti_sdk -t app --log-level $npm_package_ti_loglevel -n $npm_package_project_name -p $npm_package_ti_platforms --id $npm_package_ti_appId$npm_package_project_name -u $npm_package_ti_url",
"ti-tidy-resources" : "rm -rf ./projects/$npm_package_project_name/Resources | true",
"ti-tidy-plugins" : "rm -rf ./projects/$npm_package_project_name/plugins | true",
"ti-tidy-app" : "rm -rf ./projects/$npm_package_project_name/app | true",
"ti-tidy-assets" : "rm -rf ./projects/$npm_package_project_name/assets | true",
"ti-create": "npm run ti-generate && npm run ti-tidy-resources",
"ti-clean": "ti clean",
"clean-root": "rm -rf ./plugins && rm -rf modules",
"clean-project": "rm -rf ./build && rm -rf ./Resources && rm -rf ./i18n && rm -rf ./platform && rm -rf ./tiapp.xml && rm -rf DefaultIcon.png",
"clean-all": "npm run clean-root && npm run clean-project && npm run ti-clean",
"pre-clean": "rm -rf ./src && cp -rf ./erbium ./src",
"pre-build": "cp -rf ./projects/$npm_package_project_name/app/. ./src",
"pre-assets": "cp -rf ./projects/$npm_package_project_name/assets ./src | true",
"pre-theme": "cp ./projects/$npm_package_project_name/themes/$npm_package_project_theme.js ./src/theme.js | true",
"prepare-app": "npm run pre-clean && npm run pre-build && npm run pre-assets && npm run pre-theme",
"copy-platform": "cp -r ./projects/$npm_package_project_name/platform ./ | true",
"copy-plugins": "cp -r ./projects/$npm_package_project_name/plugins ./ | true",
"copy-modules": "cp -r ./projects/$npm_package_project_name/modules ./ | true",
"copy-i18n": "cp -r ./projects/$npm_package_project_name/i18n ./ | true",
"copy-aux": "npm run copy-platform && npm run copy-plugins && npm run copy-modules && npm run copy-i18n",
"copy-p12": "cp ./projects/$npm_package_project_name/distro.p12 ./distro.p12 | true",
"copy-libs": "cp -rf ./src/system/static/. ./Resources/system/static",
"copy-assets": "cp -rf ./src/assets/. ./Resources | true",
"copy-tiapp": "cp ./projects/$npm_package_project_name/tiapp.xml ./tiapp.xml",
"copy-icon": "cp ./projects/$npm_package_project_name/DefaultIcon.png ./DefaultIcon.png",
"copy-all": "npm run copy-libs && npm run copy-assets && npm run copy-tiapp && npm run copy-icon && npm run copy-aux && npm run copy-p12",
"transpile-app": "babel -d ./Resources ./src -s",
"app-build": "npm run pre-build && npm run transpile-app",
"full-build": "npm run clean-project && npm run prepare-app && npm run transpile-app && npm run copy-all"
},
"devDependencies": {
"babel-cli": "~6.24.1",
"babel-preset-env": "~1.4.0",
"babel-preset-stage-2": "~6.24.1"
},
"babel": {
"presets": [
"env",
"stage-2"
],
"ignore": [
"/system/static/*",
"/assets/*"
]
},
"keywords": [],
"author": "SpiralArm Consulting Ltd",
"license": "ISC"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment