Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appc-npm

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appc-npm - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

lib/types/theme.js

25

index.js

@@ -106,3 +106,3 @@ var path = require('path');

// fallback for name
pkg.name = pkg.name || type.prefix + '-' + path.dirname(src);
pkg.name = pkg.name || type.prefix + '-' + path.basename(src);

@@ -119,14 +119,23 @@ if (typeof pkg.scripts !== 'object') {

// ensure keywords
var keywords = ['appcelerator', 'appc-npm', type.prefix];
if (typeof pkg['appc-npm'].target === 'string') {
keywords.push('arrow', 'alloy', 'titanium');
} else {
keywords = keywords.concat(_.keys(pkg['appc-npm'].target));
}
if (!_.isArray(pkg.keywords)) {
pkg.keywords = ['appc-npm', type.prefix];
pkg.keywords = keywords;
} else {
if (pkg.keywords.indexOf('appc-npm') === -1) {
pkg.keywords.push('appc-npm');
}
keywords.forEach(function (keyword) {
if (pkg.keywords.indexOf(type.prefix) === -1) {
pkg.keywords.push(type.prefix);
}
if (pkg.keywords.indexOf(keyword) === -1) {
pkg.keywords.push(keyword);
}
});
}

@@ -133,0 +142,0 @@

var path = require('path');
var fs = require('fs');
var _ = require('underscore');
exports.prefix = 'arrow-connector';

@@ -7,0 +4,0 @@

var path = require('path');
var fs = require('fs');

@@ -4,0 +3,0 @@ var _ = require('underscore');

{
"name": "appc-npm",
"version": "1.3.0",
"description": "Use NPM to distrbute Appcelerator Titanium, Alloy and Arrow components",
"version": "1.4.0",
"description": "Package components for Appcelerator Titanium, Alloy and Arrow projects for distribution via NPM.",
"main": "index.js",

@@ -6,0 +6,0 @@ "bin": {

@@ -1,3 +0,3 @@

# Appcelerator NPM Distribution
Package components for Appcelerator Titanium, Alloy and Arrow projects for distribution and dependency via NPM.
# Appcelerator NPM Distribution ![EXPERIMENTAL](https://img.shields.io/badge/status-experimental-green.svg?style=flat-square)
Package components for Appcelerator Titanium, Alloy and Arrow projects for distribution via NPM.

@@ -8,3 +8,3 @@ * [Browse Appcelerator Components on NPM](https://www.npmjs.com/browse/keyword/appc-npm)

## Install
## Install ![NPM](https://img.shields.io/npm/v/appc-npm.svg?style=flat-square)

@@ -30,18 +30,5 @@ ```

Create or update the `package.json` for your project:
```
{
...
"dependencies": {
"alloy-widget-myWidget": "1.0.0"
}
}
```
$ npm install alloy-widget-myWidget --save
Install the dependencies:
```
$ npm install
> alloy-widget-myWidget@1.0.0 postinstall /Users/fokkezb/myProject/node_modules/alloy-widget-myWidget

@@ -63,3 +50,3 @@ > node ./appc-npm

```
$ npm install
$ npm install alloy-widget-myWidget --save

@@ -104,2 +91,7 @@ > alloy-widget-myWidget@1.0.0 postinstall /Users/fokkezb/myProject/node_modules/alloy-widget-myWidget

### `theme`
Alloy themes. Uses `alloy-sync-<dirname>` as the package name and `1.0.0` for the version. It ignores the generated `package.json` for the installer.
* [Browse Alloy themes adapters on NPM](https://www.npmjs.com/browse/keyword/alloy-theme)
### `lib`

@@ -120,3 +112,22 @@ Titanium, Alloy or Arrow CommonJS libraries. Searches for the first `.js` and uses `alloy-sync-<filename>` as the package name and `1.0.0` for the version. All other files are ignored for the installer.

### TODO: `module`
Titanium modules. Searches for the most recent ZIP file and adds that file to the `files` field of the `package.json` so that only that file and our installer will be published to NPM. It also reads the `manifest` to use in the default package, which is `ti-module-<id>`, and for the version.
### `module` ![TODO](https://img.shields.io/badge/TO-DO-green.svg?style=flat-square)
Titanium modules. Searches for the most recent ZIP file and adds that file to the `files` field of the `package.json` so that only that file and our installer will be published to NPM. It also reads the `manifest` to use in the default package, which is `ti-module-<id>`, and for the version.
## Test
```
$ npm install
$ npm test
```
## Contribute
To add new types of components, provide a PR with a [type](lib/types), [fixture](test/fixtures) and [test](test).
## Issues
Please report issues and features requests in the repo's [issue tracker](https://github.com/fokkezb/appc-npm/issues).
## License
Distributed under [MIT License](LICENSE).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc