Commit dcf1aa82 authored by Marc Shapiro's avatar Marc Shapiro

feature(parcel): set up initial framework for parcel instead of require

parent f61f121f
# depedencies
node_modules
www/bower_components
# configuration files
*.keystore
......@@ -13,17 +12,18 @@ config/*.json
coverage
# app files
www/version.json
www/tabsintConfig.json
www/tabsint_plugins
src/protocols/*
src/tabsint_plugins
# plugins and protocols
/plugins/*
/tabsint_plugins/*
/protocols/*
www/protocols/*
# build files
.cache/
.serve/
www/
platforms/
*.pyc
.tmp/
......
{
"name": "tabsint",
"dependencies": {
"angular": "1.5.9",
"angular-bootstrap": "1.3.1",
"angular-sanitize": "1.5.9",
"jquery": "2.1.4",
"ngstorage": "0.3.9",
"d3": "3.5.6",
"crypto-js": "3.1.9",
"requirejs": "2.1.20",
"ngCordova": "0.1.26-alpha",
"es6-shim": "0.35.0",
"lodash": "4.11.2",
"json-formatter": "0.6.0",
"tv4": "1.2.7",
"angular-mocks": "1.5.9",
"angular-scenario": "1.5.9",
"angular-gettext": "2.3.10",
"jsencrypt": "2.3.0"
},
"resolutions": {
"angular": "1.5.9",
"crypto-js": "3.1.9"
},
"overrides": {
"crypto-js": {
"main": "crypto-js.js"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget android-versionCode="232" id="com.creare.skhr.tabsint" version="2.9.2" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:gap="http://phonegap.com/ns/1.0">
<widget android-versionCode="233" id="com.creare.skhr.tabsint" version="3.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:gap="http://phonegap.com/ns/1.0">
<name>TabSINT</name>
<description>&#xD;&#xD;&#xD;&#xD;&#xD;
Creare TabSINT&#xD;&#xD;&#xD;&#xD;&#xD;
<description>
Creare TabSINT
</description>
<author email="[email protected]" href="http://www.creare.com">&#xD;&#xD;&#xD;&#xD;&#xD;
Creare&#xD;&#xD;&#xD;&#xD;&#xD;
<author email="[email protected]" href="http://www.creare.com">
Creare
</author>
<content src="index.html"/>
<preference name="SplashScreenDelay" value="8000"/>
......@@ -104,4 +104,4 @@
<plugin name="cordova-plugin-ble-central" spec="1.1.4"/>
<plugin name="cordova-plugin-device-motion" spec="2.0.1"/>
<plugin name="cordova-plugin-android-permissions" spec="1.0.0"/>
</widget>
\ No newline at end of file
</widget>
......@@ -5,12 +5,7 @@
"releases": {
"url": "https://gitlab.com/creare-com/tabsint/tags"
},
"server": {
"type": "tabsintServer",
"url": "url",
"username": "username",
"password": "password"
},
"server": "gitlab",
"gitlab": {
"host": "https://gitlab.com/",
"namespace":"namespace",
......
This diff is collapsed.
......@@ -12,45 +12,79 @@
"author": "Creare",
"homepage": "http://tabsint.org",
"license": "Apache-2.0",
"devDependencies": {
"dependencies": {
"angular": "1.5.9",
"angular-gettext": "2.3.10",
"angular-mocks": "1.5.9",
"angular-sanitize": "1.5.9",
"angular-ui-bootstrap": "2.5.6",
"cordova-android": "6.4.0",
"cordova-ios": "4.5.4",
"crypto-js": "3.1.9-1",
"d3": "3.5.6",
"es6-shim": "0.35.5",
"jsencrypt": "2.3.0",
"jsonformatter": "0.7.0",
"lodash": "4.17.11",
"ng-cordova": "0.1.27-alpha",
"ngstorage": "0.3.9",
"parcel-plugin-change-file": "1.3.0",
"requirejs": "2.3.6",
"tv4": "1.3.0"
},
"devDependencies": {
"angular-gettext-cli": "1.2.0",
"bower": "1.8.4",
"com.creare.notifications": "./custom_plugins/com.creare.notifications",
"com.creare.receiver": "./custom_plugins/com.creare.receiver",
"com.creare.tabsintnative": "./custom_plugins/com.creare.tabsintnative",
"concurrently": "4.1.0",
"cordova": "6.5.0",
"dir-compare": "1.3.0",
"fs-extra": "3.0.1",
"istanbul": "0.4.4",
"jasmine-core": "2.5.2",
"jshint": "2.9.4",
"cordova": "^6.5.0",
"cordova-android-support-gradle-release": "1.4.2",
"cordova-plugin-android-permissions": "1.0.0",
"cordova-plugin-ble-central": "1.1.4",
"cordova-plugin-bluetooth-status": "1.0.4",
"cordova-plugin-device": "2.0.2",
"cordova-plugin-device-motion": "2.0.1",
"cordova-plugin-file": "6.0.1",
"cordova-plugin-file-transfer": "1.7.1",
"cordova-plugin-fullscreen": "1.1.0",
"cordova-plugin-geolocation": "4.0.1",
"cordova-plugin-inappbrowser": "3.0.0",
"cordova-plugin-insomnia": "4.2.0",
"cordova-plugin-media": "5.0.2",
"cordova-plugin-network-information": "2.0.1",
"cordova-plugin-splashscreen": "5.0.2",
"cordova-plugin-whitelist": "1.3.3",
"cordova-plugin-zip": "3.1.0",
"cordova-sqlite-storage": "2.0.4",
"dir-compare": "1.7.2",
"fs-extra": "8.0.1",
"ionic-plugin-keyboard": "2.2.1",
"jasmine-core": "3.4.0",
"jshint": "2.10.2",
"jshint-stylish": "2.2.1",
"json": "9.0.6",
"karma": "1.7.1",
"karma": "4.1.0",
"karma-chrome-launcher": "2.2.0",
"karma-coverage": "1.1.1",
"karma-coverage": "1.1.2",
"karma-es6-shim": "1.0.0",
"karma-jasmine": "1.1.0",
"karma-mocha-reporter": "2.2.1",
"karma-jasmine": "2.0.1",
"karma-mocha-reporter": "2.2.5",
"karma-ng-html2js-preprocessor": "1.0.0",
"karma-requirejs": "1.1.0",
"karma-spec-reporter": "0.0.26",
"live-server": "1.2.0",
"lodash": "4.17.4",
"onchange": "3.2.1",
"protractor": "4.0.14",
"karma-spec-reporter": "0.0.32",
"parcel-bundler": "1.12.3",
"phonegap-plugin-barcodescanner": "4.1.0",
"replace": "0.3.0",
"requirejs": "2.3.2",
"shx": "0.2.2",
"tv4": "1.2.7",
"xml2js": "0.4.17"
"shx": "0.3.2",
"xml2js": "0.4.19"
},
"engines": {
"npm": ">=3.10.0",
"node": ">=6.9.0"
"npm": ">=6",
"node": ">=8"
},
"scripts": {
"help": "script-help",
"postinstall": "npm run bower.install",
"set-config": "node bin/node/set-config.js",
"postset-config": "npm run config",
"config": "node bin/node/config-rev.js && npm run show-build",
......@@ -62,37 +96,30 @@
"translations": "npm run extract-translations && npm run compile-translations",
"extract-translations": "angular-gettext-cli --files \"www/+(scripts|tabsint_plugins)/**/*.+(js|html)\" --exclude \"**/*.spec.js\" --dest \"translations/extract.pot\" --marker-name i18n",
"compile-translations": "angular-gettext-cli --compile --files \"translations/*.po\" --dest \"www/res/translations/translations.json\" --format json",
"build": "npm run config && npm run write-version && npm run tabsint-plugins.app && npm run lint",
"parcel.build": "parcel build src/index.html --out-dir www --no-minify --public-url ./",
"parcel.serve": "set changeFile=false&& npm run copy-www && parcel src/index.html --out-dir www",
"build": "npm run clean.app && npm run copy-www && npm run config && npm run write-version && npm run tabsint-plugins.app && npm run lint && npm run parcel.build",
"build.release": "npm run build && npm run test && npm run translations",
"copy-www": "shx mkdir -p www && shx cp -R src/* www/",
"clean": "npm run clean.dist && npm run clean.cordova && npm run clean.app",
"clean.app": "shx rm -rf ./www/tabsint_plugins && shx rm -f ./www/version.json",
"clean.app": "shx rm -rf ./www",
"clean.cordova": "(cordova clean || true) && shx rm -rf ./plugins && shx rm -rf ./platforms",
"clean.dist": "shx rm -rf ./dist",
"bower": "bower",
"bower.install": "bower install",
"lint": "npm run lint.tabsint && npm run lint.tabsint-plugins",
"lint.tabsint": "jshint --reporter=node_modules/jshint-stylish --exclude-path .gitignore ./www/scripts",
"lint.tabsint-plugins": "jshint --reporter=node_modules/jshint-stylish ./www/tabsint_plugins",
"lint.tabsint": "jshint --reporter=node_modules/jshint-stylish --exclude-path .gitignore ./src/scripts",
"lint.tabsint-plugins": "jshint --reporter=node_modules/jshint-stylish ./src/tabsint_plugins",
"test": "npm run lint && npm run test.nolint",
"test.nolint": "karma start test/karma.conf.js",
"test.tabsint-plugins": "npm run tabsint-plugins.app && npm run test",
"test.verbose": "npm run test.nolint -- --log-level debug --client.captureConsole",
"test-watch": "karma start test/karma.conf.js --browsers=Chrome --single-run=false --auto-watch",
"plugins": "npm run plugins.cordova && npm run tabsint-plugins",
"plugins.cordova": "node bin/node/plugins-cordova.js",
"tabsint-plugins": "npm run tabsint-plugins.app",
"tabsint-plugins.app": "node bin/node/plugins-app.js",
"tabsint-plugins.app.dev": "node bin/node/plugins-app-dev.js",
"tabsint-plugins.app.dev.watch": "onchange \"tabsint_plugins\" --wait --kill-others -- npm run tabsint-plugins.app.dev",
"tabsint-plugins.checkout": "node bin/node/plugins-checkout.js",
"tabsint-plugins.debug": "node bin/node/plugins-debug.js",
"preupdate-webdriver": "npm install",
"update-webdriver": "webdriver-manager update",
"preprotractor": "npm run update-webdriver",
"protractor": "protractor test/e2e/protractor.conf.js",
"live-server": "live-server --open=\"www\" --watch=\"www\" --ignore=\"www/res, *.json, *.css\" ",
"serve": "concurrently \"npm run tabsint-plugins.app.dev.watch\" \"npm run live-server\" --kill-others ",
"preserve": "npm run build",
"serve": "npm run parcel.serve",
"cordova": "cordova",
"cordova.reset.ios": "npm run clean.cordova && cordova platform add ios && npm run plugins.cordova",
"cordova.prepare.ios": "cordova prepare ios && shx cp config/ios/TabSINT-Info.plist platforms/ios/tabsint/TabSINT-Info.plist && npm run plugins && npm run build",
......@@ -112,5 +139,39 @@
"dist.ios": "shx echo todo",
"release.ios": "npm run clean && npm run build.release && npm run cordova.prepare.ios && cordova build ios --release --buildConfig config/tabsint-release.json && npm run dist.ios",
"release.android": "npm run clean && npm run build.release && npm run cordova.prepare.android && cordova build android --release --buildConfig config/tabsint-release.json && npm run dist.android"
},
"parcel-plugin-change-file": {},
"cordova": {
"platforms": [
"android",
"ios"
],
"plugins": {
"ionic-plugin-keyboard": {},
"cordova-plugin-file-transfer": {},
"cordova-plugin-zip": {},
"cordova-plugin-geolocation": {},
"cordova-plugin-media": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-network-information": {},
"cordova-plugin-file": {},
"cordova-plugin-device": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-bluetooth-status": {},
"cordova-plugin-insomnia": {},
"cordova-plugin-fullscreen": {},
"phonegap-plugin-barcodescanner": {},
"cordova-sqlite-storage": {},
"com.creare.tabsintnative": {},
"com.creare.notifications": {},
"com.creare.receiver": {},
"cordova-android-support-gradle-release": {
"ANDROID_SUPPORT_VERSION": "26.+"
},
"cordova-plugin-ble-central": {},
"cordova-plugin-device-motion": {},
"cordova-plugin-android-permissions": {}
}
}
}
<!--
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
-->
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport"
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=high-dpi"/>
<meta http-equiv="Content-Security-Policy" content="default-src * gap:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
<link rel="shortcut icon" type="image/ico" href="favicon.ico"/>
<link rel="stylesheet" href="styles/bootstrap.css">
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/fonts/ionicons/ionicons.css"/>
<link rel="stylesheet" href="../node_modules/jsonformatter/dist/json-formatter.min.css"/>
<!-- cordova js script inserted post build (parcel can't build with it here) -->
<!-- see [email protected] -->
<!--[ <script type="text/javascript" src="cordova.js"></script> ]-->
</head>
<body>
<!-- loaded through routes/tabsint-content/tabsint-content -->
<tabsint-content></tabsint-content>
<!-- Load tabsint -->
<script type="text/javascript" src="./scripts/app.js"></script>
</body>
</html>
This diff is collapsed.